public class XMLChoiceCollectionMappingMarshalNodeValue extends MappingNodeValue implements ContainerValue
Constructor and Description |
---|
XMLChoiceCollectionMappingMarshalNodeValue(ChoiceCollectionMapping mapping,
Field xmlField) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<NodeValue> |
getAllNodeValues() |
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
|
ChoiceCollectionMapping |
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 |
isMarshalNodeValue() |
boolean |
isMixedContentNodeValue()
INTERNAL:
Return true if this is the node value representing mixed content.
|
boolean |
isOwningNode(XPathFragment xPathFragment)
INTERNAL:
|
boolean |
isUnmarshalNodeValue() |
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)
INTERNAL:
|
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 |
setFieldToNodeValues(java.util.Map<Field,NodeValue> fieldToNodeValues) |
void |
setIndex(int index)
INTERNAL:
Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
|
void |
setIsMixedNodeValue(boolean b)
INTERNAL:
Indicates that this is the choice mapping node value that represents the mixed content.
|
void |
setXPathNode(XPathNode xPathNode) |
isMappingNodeValue
attribute, buildSelfRecord, endElement, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isMarshalOnlyNodeValue, isNullCapableValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshal, marshalSelfAttributes, marshalSingleValue, startElement
public XMLChoiceCollectionMappingMarshalNodeValue(ChoiceCollectionMapping mapping, Field xmlField)
public boolean isOwningNode(XPathFragment xPathFragment)
NodeValue
isOwningNode
in class NodeValue
public void setFieldToNodeValues(java.util.Map<Field,NodeValue> fieldToNodeValues)
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
NodeValue
public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
NodeValue
marshalSingleValue
in interface ContainerValue
marshalSingleValue
in class NodeValue
public java.util.Collection<NodeValue> getAllNodeValues()
public boolean isMarshalNodeValue()
isMarshalNodeValue
in class NodeValue
public boolean isUnmarshalNodeValue()
isUnmarshalNodeValue
in class NodeValue
public boolean isWrapperAllowedAsCollectionName()
ContainerValue
isWrapperAllowedAsCollectionName
in interface ContainerValue
public java.lang.Object getContainerInstance()
getContainerInstance
in interface ContainerValue
public void setContainerInstance(java.lang.Object object, java.lang.Object containerInstance)
setContainerInstance
in interface ContainerValue
public CoreContainerPolicy getContainerPolicy()
getContainerPolicy
in interface ContainerValue
public boolean isContainerValue()
NodeValue
isContainerValue
in class NodeValue
ContainerValue
public ChoiceCollectionMapping getMapping()
MappingNodeValue
getMapping
in interface ContainerValue
getMapping
in class MappingNodeValue
public boolean getReuseContainer()
ContainerValue
getReuseContainer
in interface ContainerValue
public void setIsMixedNodeValue(boolean b)
public boolean isMixedContentNodeValue()
isMixedContentNodeValue
in class NodeValue
public void setIndex(int index)
setIndex
in interface ContainerValue
public int getIndex()
getIndex
in interface ContainerValue
public boolean isDefaultEmptyContainer()
isDefaultEmptyContainer
in interface ContainerValue
public void setXPathNode(XPathNode xPathNode)
setXPathNode
in class NodeValue
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference