public class CollectionMetatype extends AbstractCompositeMetatype
Collections.
The reference string generated by this metatype converter has two primary
parts. The first part contains "meta" info about the
Collection. This includes the class name followed by the length
of the qualified reference for each element. Each element of the meta info
is separated by a delimiter.
The second part is the qualified references for each element. Each qualified reference is separated by a delimiter.
A "tag" is inserted between the parts to indicate where the qualified references begin.
DELIM, DELIM_LENGTH, ELEMENT_START| Constructor and Description |
|---|
CollectionMetatype()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName(java.lang.Object dataObject)
Obtain a displayable name that represents the metatype data object.
|
java.lang.String |
getReference(java.lang.Object dataObject)
Return a string representing the data object that can be persisted.
|
java.lang.Object |
resolveReference(java.lang.String refString)
Resolve a string reference back into the corresponding data object.
|
getComposite, getMetatypeHelperadaptSelection, getEditString, getViewerObject, isMetatypeObject, newMetatypeDataManager, resolveEditString, resolveReferencepublic java.lang.String getDisplayName(java.lang.Object dataObject)
AbstractMetatypegetDisplayName in class AbstractMetatypedataObject - the metatype data objectAbstractMetatype.getDisplayName(java.lang.Object)public java.lang.String getReference(java.lang.Object dataObject)
AbstractMetatypegetReference in class AbstractMetatypedataObject - the metatype data object to be persistedAbstractMetatype.getReference(java.lang.Object)public java.lang.Object resolveReference(java.lang.String refString)
AbstractMetatyperesolveReference in class AbstractMetatyperefString - a persistable string that represents the data objectAbstractMetatype.resolveReference(java.lang.String)