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
-
public class XMLAnyObjectMappingNodeValue extends XMLRelationshipMappingNodeValue
INTERNAL:Purpose: This is how the XML Any Object Mapping is handled when used with the TreeObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description XMLAnyObjectMappingNodeValue(AnyObjectMapping xmlAnyObjectMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)INTERNAL:protected DescriptorfindReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Mapping mapping, UnmarshalKeepAsElementPolicy policy)AnyObjectMappinggetMapping()Return the mapping associated with this node value.booleanisAnyMappingNodeValue()booleanisMixedContentNodeValue()INTERNAL: Return true if this is the node value representing mixed content.booleanisOwningNode(XPathFragment xPathFragment)INTERNAL:booleanisWhitespaceAware()booleanmarshal(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.protected voidsetOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection)booleanstartElement(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 Detail
-
XMLAnyObjectMappingNodeValue
public XMLAnyObjectMappingNodeValue(AnyObjectMapping xmlAnyObjectMapping)
-
-
Method Detail
-
isOwningNode
public boolean isOwningNode(XPathFragment xPathFragment)
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
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
startElementin classNodeValue
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection)
- Specified by:
setOrAddAttributeValuein classXMLRelationshipMappingNodeValue
-
getMapping
public AnyObjectMapping getMapping()
Description copied from class:MappingNodeValueReturn the mapping associated with this node value.- Specified by:
getMappingin classMappingNodeValue
-
isWhitespaceAware
public boolean isWhitespaceAware()
- Overrides:
isWhitespaceAwarein classNodeValue
-
isAnyMappingNodeValue
public boolean isAnyMappingNodeValue()
- Overrides:
isAnyMappingNodeValuein classNodeValue
-
isMixedContentNodeValue
public boolean isMixedContentNodeValue()
Description copied from class:NodeValueINTERNAL: Return true if this is the node value representing mixed content.- Overrides:
isMixedContentNodeValuein classNodeValue
-
findReferenceDescriptor
protected Descriptor findReferenceDescriptor(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts, Mapping mapping, UnmarshalKeepAsElementPolicy policy)
- Overrides:
findReferenceDescriptorin classXMLRelationshipMappingNodeValue
-
-