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(XMLDirectMapping 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:
|
XMLDirectMapping |
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,
AbstractSession session,
NamespaceResolver namespaceResolver)
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
AbstractSession 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,
AbstractSession 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,
Session session)
INTERNAL:
Set the null representation of the (object).
|
void |
setXPathNode(XPathNode xPathNode) |
isMappingNodeValuebuildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, marshalSingleValue, startElementpublic XMLDirectMappingNodeValue(XMLDirectMapping xmlDirectMapping)
public void setXPathNode(XPathNode xPathNode)
setXPathNode in class NodeValuepublic boolean isOwningNode(XPathFragment xPathFragment)
NodeValueisOwningNode in class NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver)
NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuepublic boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuemarshalSingleValue in class NodeValuepublic void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
NodeValuepublic void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
NodeValueendElement in class NodeValuepublic void setNullValue(java.lang.Object object,
Session session)
NullCapableValuesetNullValue in interface NullCapableValuepublic boolean isNullCapableValue()
NodeValueisNullCapableValue in class NodeValueNullCapableValuepublic XMLDirectMapping getMapping()
MappingNodeValuegetMapping in class MappingNodeValuepublic boolean isWhitespaceAware()
isWhitespaceAware in class NodeValueEclipseLink 2.4.2, "build v20130514-5956486" API Reference