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
ConstructorsConstructorDescriptionXMLVariableXPathCollectionMappingNodeValue(VariableXPathCollectionMapping variableXPathCollectionMapping) -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecordReturn the mapping associated with this node value.booleanReturn true if the original container on the object should be used if present.booleanINTERNAL:booleanINTERNAL Return true if an empty container should be set on the object if there is no presence of the collection in the XML document.booleanINTERNAL: Return true if this is the node value representing mixed content.booleanFor 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, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) INTERNAL:voidsetContainerInstance(Object object, 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, Object value, XPathFragment xPathFragment, Object collection) Methods inherited from class org.eclipse.persistence.internal.oxm.XMLVariableXPathMappingNodeValue
attribute, endElement, findReferenceDescriptor, isOwningNode, marshalSingleValue, setXPathInObject, startElementMethods inherited from class org.eclipse.persistence.internal.oxm.XMLRelationshipMappingNodeValue
addTypeAttribute, endElementProcessText, getClassForQName, processChild, setOrAddAttributeValueForKeepAsElement, setupHandlerForKeepAsElementPolicy, writeExtraNamespacesMethods inherited from class org.eclipse.persistence.internal.oxm.MappingNodeValue
addTypeAttribute, isMappingNodeValue, updateNamespacesMethods 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, setXPathNodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setOrAddAttributeValuein classXMLRelationshipMappingNodeValue
-
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, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver) Description copied from class:NodeValueINTERNAL: -
getContainerInstance
- Specified by:
getContainerInstancein interfaceContainerValue
-
setContainerInstance
- Specified by:
setContainerInstancein interfaceContainerValue
-
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:
-
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
-