Module org.eclipse.persistence.core
Interface ContainerValue
-
- All Known Implementing Classes:
XMLAnyAttributeMappingNodeValue,XMLAnyCollectionMappingNodeValue,XMLBinaryDataCollectionMappingNodeValue,XMLChoiceCollectionMappingMarshalNodeValue,XMLChoiceCollectionMappingUnmarshalNodeValue,XMLCollectionReferenceMappingMarshalNodeValue,XMLCollectionReferenceMappingNodeValue,XMLCompositeCollectionMappingNodeValue,XMLCompositeDirectCollectionMappingNodeValue,XMLFragmentCollectionMappingNodeValue,XMLVariableXPathCollectionMappingNodeValue
public interface ContainerValueINTERNAL:Purpose: If an implementation of NodeValue is capable of returning a collection value then it must implement this interface to be handled correctly by the TreeObjectBuilder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetContainerInstance()CoreContainerPolicygetContainerPolicy()intgetIndex()INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecordMappinggetMapping()booleangetReuseContainer()Return true if the original container on the object should be used if present.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.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.booleanmarshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)Marshal only one of the values from the collection.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 initialization
-
-
-
Method Detail
-
getContainerInstance
Object getContainerInstance()
-
getContainerPolicy
CoreContainerPolicy getContainerPolicy()
-
marshalSingleValue
boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
Marshal only one of the values from the collection.
-
getMapping
Mapping getMapping()
-
getReuseContainer
boolean getReuseContainer()
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.
-
getIndex
int getIndex()
INTERNAL: Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
-
isDefaultEmptyContainer
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.- Since:
- EclipseLink 2.3.3
-
isWrapperAllowedAsCollectionName
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.
-
setIndex
void setIndex(int index)
INTERNAL: Set to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord Set during TreeObjectBuilder initialization
-
-