public class XPathNode
extends java.lang.Object
Purpose: XPathNodes are used together to build a tree. The tree is built from all of the XPath statements specified in the mapping metadata (mappings and policies). This tree is then navigated by the TreeObjectBuilder to perform marshal and unmarshal operations.
The XPaths "a/b" and "a/c" would result in a tree with the root "a" and two child nodes "b" and "c".
Responsibilities:
Constructor and Description |
---|
XPathNode() |
public XPathFragment getXPathFragment()
public void setXPathFragment(XPathFragment xPathFragment)
public NodeValue getNodeValue()
public void setNodeValue(NodeValue nodeValue)
public NodeValue getUnmarshalNodeValue()
public void setUnmarshalNodeValue(NodeValue nodeValue)
public NodeValue getMarshalNodeValue()
public void setMarshalNodeValue(NodeValue nodeValue)
public XPathNode getParent()
public void setParent(XPathNode parent)
public java.util.List<XPathNode> getAttributeChildren()
public java.util.List<XPathNode> getNonAttributeChildren()
public java.util.List<XPathNode> getSelfChildren()
public java.util.Map<XPathFragment,XPathNode> getNonAttributeChildrenMap()
public java.util.Map<XPathFragment,XPathNode> getAttributeChildrenMap()
public void setAnyAttributeNodeValue(XMLAnyAttributeMappingNodeValue nodeValue)
public XMLAnyAttributeMappingNodeValue getAnyAttributeNodeValue()
public XPathNode getAnyAttributeNode()
public XPathNode getAnyNode()
public void setAnyNode(XPathNode xPathNode)
public XPathNode getTextNode()
public void setTextNode(XPathNode xPathNode)
public boolean hasTypeChild()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public XPathNode addChild(XPathFragment anXPathFragment, NodeValue aNodeValue, NamespaceResolver namespaceResolver)
public boolean hasPredicateSiblings()
public boolean marshal(MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, XMLMarshaller marshaller, MarshalContext marshalContext, XPathFragment rootFragment)
public boolean startElement(MarshalRecord marshalRecord, XPathFragment anXPathFragment, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, TreeObjectBuilder compositeObjectBuilder, java.lang.Object compositeObject)
public boolean marshalSelfAttributes(MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, XMLMarshaller marshaller)
marshalRecord
- object
- session
- namespaceResolver
- marshaller
- public boolean isWhitespaceAware()
EclipseLink 2.4.2, "build v20130514-5956486" API Reference