Class DataCategory

    • Constructor Detail

      • DataCategory

        public DataCategory()
    • Method Detail

      • setAnnotatorRef

        public void setAnnotatorRef​(String annotatorRef)
        Description copied from interface: IITSItem
        Sets the annotator reference information for this data category.
        Specified by:
        setAnnotatorRef in interface IITSItem
        Parameters:
        annotatorRef - the reference string to set (can be null).
      • setAnnotatorRef

        public void setAnnotatorRef​(AnnotatorsRef ar)
        Description copied from interface: IITSItem
        Sets the annotator reference information for this data category.
        Specified by:
        setAnnotatorRef in interface IITSItem
        Parameters:
        ar - 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.
      • getAnnotatorRef

        public String getAnnotatorRef()
        Description copied from interface: IITSItem
        Gets the annotator reference currently set for this data category. This method is not be supported for items that are data category groups.
        Specified by:
        getAnnotatorRef in interface IITSItem
        Returns:
        the annotator reference currently set for this data category.
      • isGroup

        public boolean isGroup()
        Description copied from interface: IITSItem
        Indicates if this item is a group.
        Specified by:
        isGroup in interface IITSItem
        Returns:
        true if it is a group, false if it is a standalone data category instance.
      • hasUnresolvedGroup

        public boolean hasUnresolvedGroup()
        Description copied from interface: IITSItem
        Indicates if this item has currently a reference to a stand-off element that has not been resolved yet.

        This 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.

        Specified by:
        hasUnresolvedGroup in interface IITSItem
        Returns:
        true if this item has currently an unresolved reference to a stand-off element.