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.
-
-
Constructor Summary
Constructors Constructor Description XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping)XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping, boolean isInverse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)INTERNAL:UnmarshalRecordbuildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)INTERNAL:voidendElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)INTERNAL:voidendSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)CompositeObjectMappinggetMapping()Return the mapping associated with this node value.booleanisNullCapableValue()INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)INTERNAL:booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)INTERNAL: Override this method if the NodeValue is applicable to sequenced objects.booleanmarshalSelfAttributes(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller)Marshal any 'self' mapped attributes.booleanmarshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)INTERNAL: This method provides an optimization in cases where the value has already been calculated.voidsetNullValue(java.lang.Object object, CoreSession session)INTERNAL: Set the null representation of the (object).protected voidsetOrAddAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.Object value, XPathFragment xPathFragment, java.lang.Object collection)booleanstartElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.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 Detail
-
XMLCompositeObjectMappingNodeValue
public XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping)
-
XMLCompositeObjectMappingNodeValue
public XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping, boolean isInverse)
-
-
Method Detail
-
attribute
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Description copied from class:NodeValueINTERNAL:
-
marshalSelfAttributes
public boolean marshalSelfAttributes(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller)
Marshal any 'self' mapped attributes.- Overrides:
marshalSelfAttributesin classNodeValue- Parameters:
xPathFragment-marshalRecord-object-session-namespaceResolver-marshaller-- Returns:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValueINTERNAL:
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.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, java.lang.Object object, java.lang.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- Returns:
-
startElement
public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
startElementin classNodeValue- Returns:
-
endElement
public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
Description copied from class:NodeValueINTERNAL:- Overrides:
endElementin classNodeValue
-
endSelfNodeValue
public void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)
- Overrides:
endSelfNodeValuein classNodeValue
-
buildSelfRecord
public UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
Description copied from class:NodeValueINTERNAL:- Overrides:
buildSelfRecordin classNodeValue- Returns:
-
setNullValue
public void setNullValue(java.lang.Object object, CoreSession session)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:
NullCapableValue
-
getMapping
public CompositeObjectMapping getMapping()
Description copied from class:MappingNodeValueReturn the mapping associated with this node value.- Specified by:
getMappingin classMappingNodeValue
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.Object value, XPathFragment xPathFragment, java.lang.Object collection)
- Specified by:
setOrAddAttributeValuein classXMLRelationshipMappingNodeValue
-
-