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 |
---|---|
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,
Object object,
Object value,
CoreAbstractSession session,
NamespaceResolver namespaceResolver,
MarshalContext marshalContext)
Marshal only one of the values from the collection.
|
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 initialization
|
Object getContainerInstance()
CoreContainerPolicy getContainerPolicy()
boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, 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.5.2, "build v20140319-9ad6abd" API Reference