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
-
-
Constructor Summary
Constructors Constructor Description XMLVariableXPathCollectionMappingNodeValue(VariableXPathCollectionMapping variableXPathCollectionMapping)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContainerInstance()CoreContainerPolicygetContainerPolicy()intgetIndex()INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecordVariableXPathCollectionMappinggetMapping()Return the mapping associated with this node value.booleangetReuseContainer()Return true if the original container on the object should be used if present.booleanisContainerValue()INTERNAL:booleanisDefaultEmptyContainer()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.booleanisMixedContentNodeValue()INTERNAL: Return true if this is the node value representing mixed content.booleanisWrapperAllowedAsCollectionName()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.booleanmarshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)INTERNAL:voidsetContainerInstance(java.lang.Object object, java.lang.Object containerInstance)voidsetIndex(int index)INTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initializationprotected voidsetOrAddAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.Object value, XPathFragment xPathFragment, java.lang.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 Detail
-
XMLVariableXPathCollectionMappingNodeValue
public XMLVariableXPathCollectionMappingNodeValue(VariableXPathCollectionMapping variableXPathCollectionMapping)
-
-
Method Detail
-
setOrAddAttributeValue
protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, java.lang.Object value, XPathFragment xPathFragment, java.lang.Object collection)
- Specified by:
setOrAddAttributeValuein classXMLRelationshipMappingNodeValue
-
getMapping
public VariableXPathCollectionMapping getMapping()
Description copied from class:MappingNodeValueReturn the mapping associated with this node value.- Specified by:
getMappingin interfaceContainerValue- Specified by:
getMappingin classXMLVariableXPathMappingNodeValue
-
marshal
public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver)
Description copied from class:NodeValueINTERNAL:
-
getContainerInstance
public java.lang.Object getContainerInstance()
- Specified by:
getContainerInstancein interfaceContainerValue
-
setContainerInstance
public void setContainerInstance(java.lang.Object object, java.lang.Object containerInstance)- Specified by:
setContainerInstancein interfaceContainerValue
-
getContainerPolicy
public CoreContainerPolicy getContainerPolicy()
- Specified by:
getContainerPolicyin interfaceContainerValue
-
isContainerValue
public boolean isContainerValue()
Description copied from class:NodeValueINTERNAL:- Overrides:
isContainerValuein classNodeValue- Returns:
- Returns true if the NodeValue implements ContainerValue.
- See Also:
ContainerValue
-
getReuseContainer
public boolean getReuseContainer()
Description copied from interface:ContainerValueReturn 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:
getReuseContainerin interfaceContainerValue
-
getIndex
public int getIndex()
Description copied from interface:ContainerValueINTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord- Specified by:
getIndexin interfaceContainerValue
-
isDefaultEmptyContainer
public boolean isDefaultEmptyContainer()
Description copied from interface:ContainerValueINTERNAL 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:
isDefaultEmptyContainerin interfaceContainerValue
-
isWrapperAllowedAsCollectionName
public boolean isWrapperAllowedAsCollectionName()
Description copied from interface:ContainerValueFor 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:
isWrapperAllowedAsCollectionNamein interfaceContainerValue
-
setIndex
public void setIndex(int index)
Description copied from interface:ContainerValueINTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initialization- Specified by:
setIndexin interfaceContainerValue
-
isMixedContentNodeValue
public boolean isMixedContentNodeValue()
Description copied from class:NodeValueINTERNAL: Return true if this is the node value representing mixed content.- Overrides:
isMixedContentNodeValuein classXMLVariableXPathMappingNodeValue- Returns:
-
-