Module org.eclipse.persistence.core
Class XMLAnyObjectMappingNodeValue
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.XMLAnyObjectMappingNodeValue
INTERNAL:
Purpose: This is how the XML Any Object Mapping is handled when used with the TreeObjectBuilder.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endElement
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) INTERNAL:protected Descriptor
findReferenceDescriptor
(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Mapping mapping, UnmarshalKeepAsElementPolicy policy) Return the mapping associated with this node value.boolean
boolean
INTERNAL: Return true if this is the node value representing mixed content.boolean
isOwningNode
(XPathFragment xPathFragment) INTERNAL:boolean
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.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, 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
attribute, buildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isNullCapableValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshalSelfAttributes, marshalSingleValue, setXPathNode
-
Constructor Details
-
XMLAnyObjectMappingNodeValue
-
-
Method Details
-
isOwningNode
Description copied from class:NodeValue
INTERNAL:- Overrides:
isOwningNode
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
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection) - Specified by:
setOrAddAttributeValue
in classXMLRelationshipMappingNodeValue
-
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
-
isAnyMappingNodeValue
public boolean isAnyMappingNodeValue()- Overrides:
isAnyMappingNodeValue
in classNodeValue
-
isMixedContentNodeValue
public boolean isMixedContentNodeValue()Description copied from class:NodeValue
INTERNAL: Return true if this is the node value representing mixed content.- Overrides:
isMixedContentNodeValue
in classNodeValue
-
findReferenceDescriptor
protected Descriptor findReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Mapping mapping, UnmarshalKeepAsElementPolicy policy) - Overrides:
findReferenceDescriptor
in classXMLRelationshipMappingNodeValue
-