Module org.eclipse.persistence.core
Class XMLVariableXPathCollectionMappingNodeValue
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.XMLVariableXPathMappingNodeValue
org.eclipse.persistence.internal.oxm.XMLVariableXPathCollectionMappingNodeValue
- All Implemented Interfaces:
ContainerValue
public class XMLVariableXPathCollectionMappingNodeValue
extends XMLVariableXPathMappingNodeValue
implements ContainerValue
-
Field Summary
-
Constructor Summary
ConstructorDescriptionXMLVariableXPathCollectionMappingNodeValue
(VariableXPathCollectionMapping variableXPathCollectionMapping) -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecordReturn the mapping associated with this node value.boolean
Return true if the original container on the object should be used if present.boolean
INTERNAL:boolean
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
INTERNAL: Return true if this is the node value representing mixed content.boolean
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, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) INTERNAL:void
setContainerInstance
(Object object, Object containerInstance) void
setIndex
(int index) INTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initializationprotected void
setOrAddAttributeValue
(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection) Methods inherited from class org.eclipse.persistence.internal.oxm.XMLVariableXPathMappingNodeValue
attribute, endElement, findReferenceDescriptor, isOwningNode, marshalSingleValue, setXPathInObject, startElement
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
buildSelfRecord, endElement, endSelfNodeValue, getXPathNode, isAnyMappingNodeValue, isMarshalNodeValue, isMarshalOnlyNodeValue, isNullCapableValue, isUnmarshalNodeValue, isWhitespaceAware, isWrapperNodeValue, marshal, marshal, marshal, marshalSelfAttributes, marshalSingleValue, setXPathNode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.internal.oxm.ContainerValue
marshalSingleValue
-
Constructor Details
-
XMLVariableXPathCollectionMappingNodeValue
public XMLVariableXPathCollectionMappingNodeValue(VariableXPathCollectionMapping variableXPathCollectionMapping)
-
-
Method Details
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection) - Specified by:
setOrAddAttributeValue
in classXMLRelationshipMappingNodeValue
-
getMapping
Description copied from class:MappingNodeValue
Return the mapping associated with this node value.- Specified by:
getMapping
in interfaceContainerValue
- Specified by:
getMapping
in classXMLVariableXPathMappingNodeValue
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) Description copied from class:NodeValue
INTERNAL: -
getContainerInstance
- Specified by:
getContainerInstance
in interfaceContainerValue
-
setContainerInstance
- Specified by:
setContainerInstance
in interfaceContainerValue
-
getContainerPolicy
- Specified by:
getContainerPolicy
in interfaceContainerValue
-
isContainerValue
public boolean isContainerValue()Description copied from class:NodeValue
INTERNAL:- Overrides:
isContainerValue
in classNodeValue
- Returns:
- Returns true if the NodeValue implements ContainerValue.
- See Also:
-
getReuseContainer
public boolean getReuseContainer()Description copied from interface:ContainerValue
Return true if the original container on the object should be used if present. If it is not present then the container policy will be used to create the container.- Specified by:
getReuseContainer
in interfaceContainerValue
-
getIndex
public int getIndex()Description copied from interface:ContainerValue
INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord- Specified by:
getIndex
in interfaceContainerValue
-
isDefaultEmptyContainer
public boolean isDefaultEmptyContainer()Description copied from interface:ContainerValue
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.- Specified by:
isDefaultEmptyContainer
in interfaceContainerValue
-
isWrapperAllowedAsCollectionName
public boolean isWrapperAllowedAsCollectionName()Description copied from interface:ContainerValue
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.- Specified by:
isWrapperAllowedAsCollectionName
in interfaceContainerValue
-
setIndex
public void setIndex(int index) Description copied from interface:ContainerValue
INTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initialization- Specified by:
setIndex
in interfaceContainerValue
-
isMixedContentNodeValue
public boolean isMixedContentNodeValue()Description copied from class:NodeValue
INTERNAL: Return true if this is the node value representing mixed content.- Overrides:
isMixedContentNodeValue
in classXMLVariableXPathMappingNodeValue
-