public class XMLDirectMappingNodeValue extends MappingNodeValue implements NullCapableValue
Purpose: This is how the XML Direct Mapping is handled when used with the TreeObjectBuilder.
Constructor and Description |
---|
XMLDirectMappingNodeValue(DirectMapping xmlDirectMapping) |
Modifier and Type | Method and Description |
---|---|
void |
attribute(UnmarshalRecord unmarshalRecord,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord)
INTERNAL:
|
DirectMapping |
getMapping()
Return the mapping associated with this node value.
|
boolean |
isNullCapableValue()
INTERNAL:
|
boolean |
isOwningNode(XPathFragment xPathFragment)
INTERNAL:
|
boolean |
isWhitespaceAware() |
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
Override this method if the NodeValue is applicable to sequenced objects.
|
boolean |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object objectValue,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
This method provides an optimization in cases where the value has already
been calculated.
|
void |
setNullValue(java.lang.Object object,
CoreSession session)
INTERNAL:
Set the null representation of the (object).
|
void |
setXPathNode(XPathNode xPathNode) |
isMappingNodeValue
buildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, marshalSingleValue, startElement
public XMLDirectMappingNodeValue(DirectMapping xmlDirectMapping)
public void setXPathNode(XPathNode xPathNode)
setXPathNode
in class NodeValue
public boolean isOwningNode(XPathFragment xPathFragment)
NodeValue
isOwningNode
in class NodeValue
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
NodeValue
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValue
marshalSingleValue
in class NodeValue
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
NodeValue
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
NodeValue
endElement
in class NodeValue
public void setNullValue(java.lang.Object object, CoreSession session)
NullCapableValue
setNullValue
in interface NullCapableValue
public boolean isNullCapableValue()
NodeValue
isNullCapableValue
in class NodeValue
NullCapableValue
public DirectMapping getMapping()
MappingNodeValue
getMapping
in class MappingNodeValue
public boolean isWhitespaceAware()
isWhitespaceAware
in class NodeValue
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference