public class XMLCompositeDirectCollectionMappingNodeValue extends MappingNodeValue implements ContainerValue
Purpose: This is how the XML Composite Direct Collection Mapping is handled when used with the TreeObjectBuilder.
| Constructor and Description |
|---|
XMLCompositeDirectCollectionMappingNodeValue(DirectCollectionMapping xmlCompositeDirectCollectionMapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(UnmarshalRecord unmarshalRecord,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord)
INTERNAL:
|
void |
endElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord,
java.lang.Object collection) |
java.lang.Object |
getContainerInstance() |
CoreContainerPolicy |
getContainerPolicy() |
int |
getIndex()
INTERNAL:
Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
Set during TreeObjectBuilder initialization
|
DirectCollectionMapping |
getMapping()
Return the mapping associated with this node value.
|
boolean |
getReuseContainer()
Return true if the original container on the object should be used if
present.
|
boolean |
isContainerValue()
INTERNAL:
|
boolean |
isDefaultEmptyContainer()
INTERNAL
Return true if an empty container should be set on the object if there
is no presence of the collection in the XML document.
|
boolean |
isOwningNode(XPathFragment xPathFragment)
INTERNAL:
|
boolean |
isWhitespaceAware() |
boolean |
isWrapperAllowedAsCollectionName()
For media types that provide a native representation of collections (such
as JSON arrays), can the representation be simplified so that the
grouping element can be used as the collection name.
|
boolean |
marshal(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
CoreAbstractSession session,
NamespaceResolver namespaceResolver)
Override the method in XPathNode such that the marshaller can be set on the
marshalRecord - this is required for XMLConverter usage.
|
boolean |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object value,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
INTERNAL:
This method provides an optimization in cases where the value has already
been calculated.
|
void |
setContainerInstance(java.lang.Object object,
java.lang.Object containerInstance) |
void |
setIndex(int index)
INTERNAL:
Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
|
boolean |
startElement(XPathFragment xPathFragment,
UnmarshalRecord unmarshalRecord,
org.xml.sax.Attributes atts)
INTERNAL:
|
isMappingNodeValuebuildSelfRecord, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isMixedContentNodeValue, isNullCapableValue, isUnmarshalNodeValue, isWrapperNodeValue, marshal, marshal, marshal, marshalSelfAttributes, marshalSingleValue, setXPathNodepublic XMLCompositeDirectCollectionMappingNodeValue(DirectCollectionMapping xmlCompositeDirectCollectionMapping)
public boolean isOwningNode(XPathFragment xPathFragment)
NodeValueisOwningNode in class NodeValuepublic boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
public void attribute(UnmarshalRecord unmarshalRecord, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
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 endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, java.lang.Object collection)
endElement in class NodeValuepublic java.lang.Object getContainerInstance()
getContainerInstance in interface ContainerValuepublic void setContainerInstance(java.lang.Object object,
java.lang.Object containerInstance)
setContainerInstance in interface ContainerValuepublic CoreContainerPolicy getContainerPolicy()
getContainerPolicy in interface ContainerValuepublic boolean isContainerValue()
NodeValueisContainerValue in class NodeValueContainerValuepublic boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValuemarshalSingleValue in interface ContainerValuemarshalSingleValue in class NodeValuepublic DirectCollectionMapping getMapping()
MappingNodeValuegetMapping in interface ContainerValuegetMapping in class MappingNodeValuepublic boolean isWhitespaceAware()
isWhitespaceAware in class NodeValuepublic boolean getReuseContainer()
ContainerValuegetReuseContainer in interface ContainerValuepublic void setIndex(int index)
setIndex in interface ContainerValuepublic int getIndex()
getIndex in interface ContainerValuepublic boolean isDefaultEmptyContainer()
isDefaultEmptyContainer in interface ContainerValuepublic boolean isWrapperAllowedAsCollectionName()
ContainerValueisWrapperAllowedAsCollectionName in interface ContainerValueEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference