public class XmlFieldInvocationHandler extends Object implements InvocationHandler
InvocationHandler
à utiliser sur les proxies chargés à la
lecture des nœuds XML.Constructor and Description |
---|
XmlFieldInvocationHandler(XmlField xmlField,
XmlFieldNode node,
Class<?> type)
T .
|
Modifier and Type | Method and Description |
---|---|
<T> T |
add(Object root,
String xpath,
Class<T> type)
Add a bonded element add the end of a list located by the xpath.
|
<T> T |
add(XmlFieldNode root,
String xpath,
Class<T> type)
Add a binded instance at the end of the nodes located by the xpath.
|
XmlFieldNode |
addNode(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add the specified binded node at the end of the xpath location.
|
XmlFieldNode |
addParentNodes(XmlFieldNode root,
String fieldXPath,
Class<?> type)
Add parent nodes to a specified node.
|
XmlFieldNode |
getNode() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public XmlFieldInvocationHandler(XmlField xmlField, XmlFieldNode node, Class<?> type)
xmlField
- l'objet reader, qui permet notamment de récupérer des
sous-champs.node
- le nœud de l'objet Java.type
- le type de l'objet Java.selector
- selector object to use for that proxy.modifier
- TODOpublic <T> T add(Object root, String xpath, Class<T> type) throws XmlFieldXPathException
root
- root elementxpath
- xpath location to the element listtype
- element type to addXmlFieldXPathException
- xpath exceptionpublic <T> T add(XmlFieldNode root, String xpath, Class<T> type) throws XmlFieldXPathException
root
- root elementxpath
- xpath location to the element listtype
- element type to addXmlFieldXPathException
- xpath exceptionpublic XmlFieldNode addNode(XmlFieldNode root, String fieldXPath, Class<?> type) throws XmlFieldXPathException
root
- root elementfieldXPath
- xpath location relative to the root element where we want to
add the new elementtype
- element type to addXmlFieldXPathException
- xpath exceptionpublic XmlFieldNode addParentNodes(XmlFieldNode root, String fieldXPath, Class<?> type) throws XmlFieldXPathException
root
- root elementfieldXPath
- type
- XmlFieldXPathException
public XmlFieldNode getNode()
Copyright © 2011–2014. All rights reserved.