public class XMLCompositeObjectMappingNodeValue extends XMLRelationshipMappingNodeValue implements NullCapableValue
Purpose: This is how the XML Composite Object Mapping is handled when used with the TreeObjectBuilder.
| Constructor and Description |
|---|
XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping) |
XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping,
boolean isInverse) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(UnmarshalRecord unmarshalRecord,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
INTERNAL:
|
UnmarshalRecord |
buildSelfRecord(UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord)
INTERNAL:
|
void |
endSelfNodeValue(UnmarshalRecord unmarshalRecord,
UnmarshalRecord selfRecord,
org.xml.sax.Attributes attributes) |
CompositeObjectMapping |
getMapping()
Return the mapping associated with this node value.
|
boolean |
isNullCapableValue()
INTERNAL:
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver)
INTERNAL:
|
boolean |
marshal(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.
|
boolean |
marshalSelfAttributes(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
Marshaller marshaller)
Marshal any 'self' mapped attributes.
|
boolean |
marshalSingleValue(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.
|
void |
setNullValue(java.lang.Object object,
CoreSession session)
INTERNAL:
Set the null representation of the (object).
|
boolean |
startElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
processChildisMappingNodeValueendElement, getXPathNode, isAnyMappingNodeValue, isContainerValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isOwningNode, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshalSingleValue, setXPathNodepublic XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping)
public XMLCompositeObjectMappingNodeValue(CompositeObjectMapping xmlCompositeObjectMapping, boolean isInverse)
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
NodeValuepublic boolean marshalSelfAttributes(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, Marshaller marshaller)
marshalSelfAttributes in class NodeValuexPathFragment - marshalRecord - object - session - namespaceResolver - marshaller - public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuepublic boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object objectValue, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuemarshalSingleValue in class NodeValuepublic boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
NodeValuestartElement in class NodeValuepublic void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord)
NodeValueendElement in class NodeValuepublic void endSelfNodeValue(UnmarshalRecord unmarshalRecord, UnmarshalRecord selfRecord, org.xml.sax.Attributes attributes)
endSelfNodeValue in class NodeValuepublic UnmarshalRecord buildSelfRecord(UnmarshalRecord unmarshalRecord, org.xml.sax.Attributes atts)
NodeValuebuildSelfRecord in class NodeValuepublic void setNullValue(java.lang.Object object,
CoreSession session)
NullCapableValuesetNullValue in interface NullCapableValuepublic boolean isNullCapableValue()
NodeValueisNullCapableValue in class NodeValueNullCapableValuepublic CompositeObjectMapping getMapping()
MappingNodeValuegetMapping in class MappingNodeValueEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference