public interface ContainerValue
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.
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContainerInstance() |
CoreContainerPolicy |
getContainerPolicy() |
int |
getIndex()
INTERNAL:
Used to track the index of the corresponding containerInstance in the containerInstances Object[] on UnmarshalRecord
|
Mapping |
getMapping() |
boolean |
getReuseContainer()
Return true if the original container on the object should be used if
present.
|
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 |
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 |
marshalSingleValue(XPathFragment xPathFragment,
MarshalRecord marshalRecord,
java.lang.Object object,
java.lang.Object value,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
Marshal only one of the values from the collection.
|
void |
setContainerInstance(java.lang.Object object,
java.lang.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 initialization
|
java.lang.Object getContainerInstance()
void setContainerInstance(java.lang.Object object, java.lang.Object containerInstance)
CoreContainerPolicy getContainerPolicy()
boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, java.lang.Object object, java.lang.Object value, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext)
xPathFragment
- marshalRecord
- object
- value
- session
- namespaceResolver
- marshalContext
- Mapping getMapping()
boolean getReuseContainer()
int getIndex()
boolean isDefaultEmptyContainer()
boolean isWrapperAllowedAsCollectionName()
void setIndex(int index)
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference