Class XMLDirectMappingNodeValue
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.NodeValue
-
- org.eclipse.persistence.internal.oxm.MappingNodeValue
-
- org.eclipse.persistence.internal.oxm.XMLDirectMappingNodeValue
-
- All Implemented Interfaces:
NullCapableValue
public class XMLDirectMappingNodeValue extends MappingNodeValue implements NullCapableValue
INTERNAL:Purpose: This is how the XML Direct Mapping is handled when used with the TreeObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description XMLDirectMappingNodeValue(DirectMapping xmlDirectMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, 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, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
INTERNAL:boolean
marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, 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, Object object, 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(Object object, CoreSession session)
INTERNAL: Set the null representation of the (object).void
setXPathNode(XPathNode xPathNode)
-
Methods inherited from class org.eclipse.persistence.internal.oxm.MappingNodeValue
addTypeAttribute, isMappingNodeValue, updateNamespaces
-
Methods inherited from class org.eclipse.persistence.internal.oxm.NodeValue
buildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, marshalSingleValue, startElement
-
-
-
-
Constructor Detail
-
XMLDirectMappingNodeValue
public XMLDirectMappingNodeValue(DirectMapping xmlDirectMapping)
-
-
Method Detail
-
setXPathNode
public void setXPathNode(XPathNode xPathNode)
- Overrides:
setXPathNode
in classNodeValue
-
isOwningNode
public boolean isOwningNode(XPathFragment xPathFragment)
Description copied from class:NodeValue
INTERNAL:- Overrides:
isOwningNode
in classNodeValue
- Returns:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValue
INTERNAL:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
Description copied from class:NodeValue
INTERNAL: Override this method if the NodeValue is applicable to sequenced objects.
-
marshalSingleValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
Description copied from class:NodeValue
INTERNAL: This method provides an optimization in cases where the value has already been calculated.- Specified by:
marshalSingleValue
in classNodeValue
- Returns:
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value)
Description copied from class:NodeValue
INTERNAL:
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValue
INTERNAL:- Overrides:
endElement
in classNodeValue
-
setNullValue
public void setNullValue(Object object, CoreSession session)
Description copied from interface:NullCapableValue
INTERNAL: Set the null representation of the (object).- Specified by:
setNullValue
in interfaceNullCapableValue
-
isNullCapableValue
public boolean isNullCapableValue()
Description copied from class:NodeValue
INTERNAL:- Overrides:
isNullCapableValue
in classNodeValue
- Returns:
- Returns true if the NodeValue implements NullCapableValue.
- See Also:
NullCapableValue
-
getMapping
public DirectMapping getMapping()
Description copied from class:MappingNodeValue
Return the mapping associated with this node value.- Specified by:
getMapping
in classMappingNodeValue
-
isWhitespaceAware
public boolean isWhitespaceAware()
- Overrides:
isWhitespaceAware
in classNodeValue
-
-