public class ITSReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOTATORSREF |
static java.lang.String |
DOMAINS |
static java.lang.String |
LOCQUALITYISSUE |
static java.lang.String |
LOCQUALITYISSUECOMMENT |
static java.lang.String |
LOCQUALITYISSUEENABLED |
static java.lang.String |
LOCQUALITYISSUEPROFILEREF |
static java.lang.String |
LOCQUALITYISSUES |
static java.lang.String |
LOCQUALITYISSUESEVERITY |
static java.lang.String |
LOCQUALITYISSUESREF |
static java.lang.String |
LOCQUALITYISSUETYPE |
static java.lang.String |
MTCONFIDENCE |
static java.lang.String |
PROVENANCERECORD |
static java.lang.String |
PROVENANCERECORDS |
static java.lang.String |
PROVENANCERECORDSREF |
static java.lang.String |
PROVORG |
static java.lang.String |
PROVORGREF |
static java.lang.String |
PROVPERSON |
static java.lang.String |
PROVPERSONREF |
static java.lang.String |
PROVREF |
static java.lang.String |
PROVREVORG |
static java.lang.String |
PROVREVORGREF |
static java.lang.String |
PROVREVPERSON |
static java.lang.String |
PROVREVPERSONREF |
static java.lang.String |
PROVREVTOOL |
static java.lang.String |
PROVREVTOOLREF |
static java.lang.String |
PROVTOOL |
static java.lang.String |
PROVTOOLREF |
static java.lang.String |
TACLASSREF |
static java.lang.String |
TACONFIDENCE |
static java.lang.String |
TAIDENT |
static java.lang.String |
TAIDENTREF |
static java.lang.String |
TASOURCE |
static java.lang.String |
TERMCONFIDENCE |
| Constructor and Description |
|---|
ITSReader(javax.xml.stream.XMLStreamReader reader)
Creates a new
ITSReader object for a given reader. |
| Modifier and Type | Method and Description |
|---|---|
void |
fetchUnresolvedITSGroups(IWithITSAttributes parent)
Tries to resolve any un-resolved reference to ITS stand-off group.
|
AnnotatorsRef |
readAnnotatorsRef(boolean local,
AnnotatorsRef parentAR)
Reads the annotatorsRef attribute from the current element.
|
boolean |
readAttributes(IWithITSGroups groupHolder,
IWithITSAttributes object,
AnnotatorsRef ar)
Reads the ITS attributes for the current element.
|
void |
readStandOffElements(java.lang.String initialLocName,
IWithITSGroups groupHolder,
AnnotatorsRef ar)
Reads the stand-off ITS elements
|
void |
readTerminology(TermTag marker,
AnnotatorsRef ar)
Reads the ITS attributes for terminology.
|
public static final java.lang.String ANNOTATORSREF
public static final java.lang.String MTCONFIDENCE
public static final java.lang.String DOMAINS
public static final java.lang.String TACONFIDENCE
public static final java.lang.String TACLASSREF
public static final java.lang.String TASOURCE
public static final java.lang.String TAIDENT
public static final java.lang.String TAIDENTREF
public static final java.lang.String LOCQUALITYISSUES
public static final java.lang.String LOCQUALITYISSUE
public static final java.lang.String LOCQUALITYISSUETYPE
public static final java.lang.String LOCQUALITYISSUECOMMENT
public static final java.lang.String LOCQUALITYISSUEENABLED
public static final java.lang.String LOCQUALITYISSUESEVERITY
public static final java.lang.String LOCQUALITYISSUEPROFILEREF
public static final java.lang.String LOCQUALITYISSUESREF
public static final java.lang.String PROVENANCERECORDS
public static final java.lang.String PROVENANCERECORD
public static final java.lang.String PROVTOOL
public static final java.lang.String PROVTOOLREF
public static final java.lang.String PROVREVTOOL
public static final java.lang.String PROVREVTOOLREF
public static final java.lang.String PROVPERSON
public static final java.lang.String PROVPERSONREF
public static final java.lang.String PROVREVPERSON
public static final java.lang.String PROVREVPERSONREF
public static final java.lang.String PROVORG
public static final java.lang.String PROVORGREF
public static final java.lang.String PROVREVORG
public static final java.lang.String PROVREVORGREF
public static final java.lang.String PROVREF
public static final java.lang.String PROVENANCERECORDSREF
public static final java.lang.String TERMCONFIDENCE
public ITSReader(javax.xml.stream.XMLStreamReader reader)
ITSReader object for a given reader.reader - the XML stream reader to associate with this object.public void readStandOffElements(java.lang.String initialLocName,
IWithITSGroups groupHolder,
AnnotatorsRef ar)
throws javax.xml.stream.XMLStreamException
initialLocName - name of the element on which the method is called.groupHolder - object where the group is located.ar - the annotator reference context.javax.xml.stream.XMLStreamException - if a reading error occurs.public boolean readAttributes(IWithITSGroups groupHolder, IWithITSAttributes object, AnnotatorsRef ar)
groupHolder - the object where any stand-off group for the object being looked at is expected to be.object - the object where to read from.ar - the current annotators references (can be null).public void readTerminology(TermTag marker, AnnotatorsRef ar)
marker - the marker where to set the informationar - the current annotators references (can be null).public void fetchUnresolvedITSGroups(IWithITSAttributes parent)
parent - the object where the attribute(s) referencing the stand-off group is.public AnnotatorsRef readAnnotatorsRef(boolean local, AnnotatorsRef parentAR)
local - true to use the local namespace, false to use ITS prefix.parentAR - optional parent values to inherit (can be null).AnnotatorsRef object read, or null if none was present.