public class ITSReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATORSREF |
static String |
DOMAINS |
static String |
LOCQUALITYISSUE |
static String |
LOCQUALITYISSUECOMMENT |
static String |
LOCQUALITYISSUEENABLED |
static String |
LOCQUALITYISSUEPROFILEREF |
static String |
LOCQUALITYISSUES |
static String |
LOCQUALITYISSUESEVERITY |
static String |
LOCQUALITYISSUESREF |
static String |
LOCQUALITYISSUETYPE |
static String |
MTCONFIDENCE |
static String |
PROVENANCERECORD |
static String |
PROVENANCERECORDS |
static String |
PROVENANCERECORDSREF |
static String |
PROVORG |
static String |
PROVORGREF |
static String |
PROVPERSON |
static String |
PROVPERSONREF |
static String |
PROVREF |
static String |
PROVREVORG |
static String |
PROVREVORGREF |
static String |
PROVREVPERSON |
static String |
PROVREVPERSONREF |
static String |
PROVREVTOOL |
static String |
PROVREVTOOLREF |
static String |
PROVTOOL |
static String |
PROVTOOLREF |
static String |
TACLASSREF |
static String |
TACONFIDENCE |
static String |
TAIDENT |
static String |
TAIDENTREF |
static String |
TASOURCE |
static String |
TERMCONFIDENCE |
| Constructor and Description |
|---|
ITSReader(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(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 String ANNOTATORSREF
public static final String MTCONFIDENCE
public static final String DOMAINS
public static final String TACONFIDENCE
public static final String TACLASSREF
public static final String TASOURCE
public static final String TAIDENT
public static final String TAIDENTREF
public static final String LOCQUALITYISSUES
public static final String LOCQUALITYISSUE
public static final String LOCQUALITYISSUETYPE
public static final String LOCQUALITYISSUECOMMENT
public static final String LOCQUALITYISSUEENABLED
public static final String LOCQUALITYISSUESEVERITY
public static final String LOCQUALITYISSUEPROFILEREF
public static final String LOCQUALITYISSUESREF
public static final String PROVENANCERECORDS
public static final String PROVENANCERECORD
public static final String PROVTOOL
public static final String PROVTOOLREF
public static final String PROVREVTOOL
public static final String PROVREVTOOLREF
public static final String PROVPERSON
public static final String PROVPERSONREF
public static final String PROVREVPERSON
public static final String PROVREVPERSONREF
public static final String PROVORG
public static final String PROVORGREF
public static final String PROVREVORG
public static final String PROVREVORGREF
public static final String PROVREF
public static final String PROVENANCERECORDSREF
public static final String TERMCONFIDENCE
public ITSReader(XMLStreamReader reader)
ITSReader object for a given reader.reader - the XML stream reader to associate with this object.public void readStandOffElements(String initialLocName, IWithITSGroups groupHolder, AnnotatorsRef ar) throws XMLStreamException
initialLocName - name of the element on which the method is called.groupHolder - object where the group is located.ar - the annotator reference context.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.Copyright © 2020. All rights reserved.