Module org.eclipse.persistence.core
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
INTERNAL:
Purpose: This is how the XML Direct Mapping is handled when used with the TreeObjectBuilder.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) INTERNAL:voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) INTERNAL:Return the mapping associated with this node value.booleanINTERNAL:booleanisOwningNode(XPathFragment xPathFragment) INTERNAL:booleanbooleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) INTERNAL: Override this method if the NodeValue is applicable to sequenced objects.booleanmarshalSingleValue(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.voidsetNullValue(Object object, CoreSession session) INTERNAL: Set the null representation of the (object).voidsetXPathNode(XPathNode xPathNode) Methods inherited from class org.eclipse.persistence.internal.oxm.MappingNodeValue
addTypeAttribute, isMappingNodeValue, updateNamespacesMethods 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 Details
-
XMLDirectMappingNodeValue
-
-
Method Details
-
setXPathNode
- Overrides:
setXPathNodein classNodeValue
-
isOwningNode
Description copied from class:NodeValueINTERNAL:- Overrides:
isOwningNodein classNodeValue
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) Description copied from class:NodeValueINTERNAL: -
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) Description copied from class:NodeValueINTERNAL: 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:NodeValueINTERNAL: This method provides an optimization in cases where the value has already been calculated.- Specified by:
marshalSingleValuein classNodeValue
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) Description copied from class:NodeValueINTERNAL: -
endElement
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
setNullValue
Description copied from interface:NullCapableValueINTERNAL: Set the null representation of the (object).- Specified by:
setNullValuein interfaceNullCapableValue
-
isNullCapableValue
public boolean isNullCapableValue()Description copied from class:NodeValueINTERNAL:- Overrides:
isNullCapableValuein classNodeValue- Returns:
- Returns true if the NodeValue implements NullCapableValue.
- See Also:
-
getMapping
Description copied from class:MappingNodeValueReturn the mapping associated with this node value.- Specified by:
getMappingin classMappingNodeValue
-
isWhitespaceAware
public boolean isWhitespaceAware()- Overrides:
isWhitespaceAwarein classNodeValue
-