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 an EventObjectBuilder 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 NullCapableValue getNullCapableValue()
public void setNullCapableValue(NullCapableValue nullCapableValue)
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 boolean isChildrenLookupTableFilled(boolean isAttribute)
public void setChildrenLookupTableFilled(boolean isAttribute)
public java.util.Map<java.lang.String,XPathNode> getChildrenLookupTable(boolean isAttribute)
public void setAnyAttributeNodeValue(MappingNodeValue nodeValue)
public MappingNodeValue getAnyAttributeNodeValue()
public XPathNode getAnyAttributeNode()
public XPathNode getAnyNode()
public void setAnyNode(XPathNode xPathNode)
public XPathNode getNextNode()
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, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller, MarshalContext marshalContext, XPathFragment rootFragment)
public boolean startElement(MarshalRecord marshalRecord, XPathFragment anXPathFragment, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, ObjectBuilder compositeObjectBuilder, java.lang.Object compositeObject)
public boolean marshalSelfAttributes(MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller)
marshalRecord
- object
- session
- namespaceResolver
- marshaller
- public boolean isWhitespaceAware()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference