public abstract class DataCategoryGroup<T extends DataCategory> extends java.lang.Object implements IITSItem
| Constructor and Description |
|---|
DataCategoryGroup(java.lang.String id)
Creates a new
DataCategoryGroup object with a given identifier. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAnnotatorRef()
Gets the annotator reference currently set for this data category.
|
java.lang.String |
getGroupId()
Gets the identifier for this group.
|
java.util.List<T> |
getList()
Gets the list of instances for this group.
|
boolean |
hasUnresolvedGroup()
Indicates if this item has currently a reference to a stand-off element that
has not been resolved yet.
|
boolean |
isGroup()
Indicates if this item is a group.
|
void |
setAnnotatorRef(AnnotatorsRef ar)
Sets the annotator reference information for this data category.
|
void |
setAnnotatorRef(java.lang.String annotatorRef)
Sets the annotator reference information for this data category.
|
void |
setGroupId(java.lang.String id)
Sets the identifier for this group.
|
void |
validate()
Validates the data category.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCopy, getDataCategoryNamepublic DataCategoryGroup(java.lang.String id)
DataCategoryGroup object with a given identifier.id - the identifier to use (use null to create one automatically)public boolean isGroup()
IITSItempublic boolean hasUnresolvedGroup()
IITSItemThis occurs for example when a unit element has a reference to a set of Provenance instances and the stand-off element has not been read yet (because the reading of the unit's element is done after the reading of its attributes.
hasUnresolvedGroup in interface IITSItempublic java.lang.String getGroupId()
public void setGroupId(java.lang.String id)
id - the identifier to set.public java.util.List<T> getList()
public void setAnnotatorRef(java.lang.String annotatorRef)
IITSItemsetAnnotatorRef in interface IITSItemannotatorRef - the reference string to set (can be null).public void setAnnotatorRef(AnnotatorsRef ar)
IITSItemsetAnnotatorRef in interface IITSItemar - the set of references read from its:annotatorsRef.
If it is null, or if there is no reference for the relevant data category: no change is made.public java.lang.String getAnnotatorRef()
IITSItemgetAnnotatorRef in interface IITSItem