Module org.eclipse.persistence.core
Class XMLCompositeObjectMappingNodeValue
java.lang.Object
org.eclipse.persistence.internal.oxm.NodeValue
org.eclipse.persistence.internal.oxm.MappingNodeValue
org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue
org.eclipse.persistence.internal.oxm.XMLCompositeObjectMappingNodeValue
- All Implemented Interfaces:
NullCapableValue
public class XMLCompositeObjectMappingNodeValue
extends XMLRelationshipMappingNodeValue
implements NullCapableValue
INTERNAL:
Purpose: This is how the XML Composite Object Mapping is handled when used with the TreeObjectBuilder.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXMLCompositeObjectMappingNodeValue
(CompositeObjectMapping xmlCompositeObjectMapping) XMLCompositeObjectMappingNodeValue
(CompositeObjectMapping xmlCompositeObjectMapping, boolean isInverse) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attribute
(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) INTERNAL:buildSelfRecord
(UnmarshalRecord unmarshalRecord, Attributes atts) INTERNAL:void
endElement
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) INTERNAL:void
endSelfNodeValue
(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) Return the mapping associated with this node value.boolean
INTERNAL: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
marshalSelfAttributes
(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller) Marshal any 'self' mapped attributes.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).protected void
setOrAddAttributeValue
(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection) boolean
startElement
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) INTERNAL:Methods inherited from class org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue
addTypeAttribute, endElementProcessText, findReferenceDescriptor, getClassForQName, processChild, setOrAddAttributeValueForKeepAsElement, setupHandlerForKeepAsElementPolicy, writeExtraNamespaces
Methods inherited from class org.eclipse.persistence.internal.oxm.MappingNodeValue
addTypeAttribute, isMappingNodeValue, updateNamespaces
Methods inherited from class org.eclipse.persistence.internal.oxm.NodeValue
endElement, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isOwningNode, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshalSingleValue, setXPathNode
-
Constructor Details
-
XMLCompositeObjectMappingNodeValue
-
XMLCompositeObjectMappingNodeValue
public XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping, boolean isInverse)
-
-
Method Details
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) Description copied from class:NodeValue
INTERNAL: -
marshalSelfAttributes
public boolean marshalSelfAttributes(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller) Marshal any 'self' mapped attributes.- Overrides:
marshalSelfAttributes
in classNodeValue
-
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
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) Description copied from class:NodeValue
INTERNAL:- Overrides:
startElement
in classNodeValue
-
endElement
Description copied from class:NodeValue
INTERNAL:- Overrides:
endElement
in classNodeValue
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, Attributes attributes) - Overrides:
endSelfNodeValue
in classNodeValue
-
buildSelfRecord
Description copied from class:NodeValue
INTERNAL:- Overrides:
buildSelfRecord
in classNodeValue
-
setNullValue
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:
-
getMapping
Description copied from class:MappingNodeValue
Return the mapping associated with this node value.- Specified by:
getMapping
in classMappingNodeValue
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection) - Specified by:
setOrAddAttributeValue
in classXMLRelationshipMappingNodeValue
-