public interface ITraversal
| Modifier and Type | Field and Description |
|---|---|
static int |
DIR_LRO
Flag indicating a Left-To-Right directionality override.
|
static int |
DIR_LTR
Flag indicating a Left-To-Right directionality.
|
static int |
DIR_RLO
Flag indicating a Right-To-Left directionality override.
|
static int |
DIR_RTL
Flag indicating a Right-To-Left directionality.
|
static int |
WITHINTEXT_NESTED
Flag indicating an element that is nested.
|
static int |
WITHINTEXT_NO
Flag indicating an element that is not within text.
|
static int |
WITHINTEXT_YES
Flag indicating an element that is within text (inline).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
backTracking()
Indicates whether the current node is found while backtracking.
|
String |
getAllowedCharacters(Attr attribute)
Gets the pattern of allowed characters for the current element or one of its attributes.
|
String |
getAnnotatorRef(String dc)
Gets the annotator reference for a given data category.
|
String |
getAnnotatorsRef()
Gets the tools references associated with the current element of the traversal and its attributes.
|
int |
getDirectionality(Attr attribute)
Gets the directionality for the text of a given attribute of the current
node of the traversal.
|
String |
getDomains(Attr attribute)
Gets the domain or domains for the current element
or one of its attributes.
|
String |
getExternalResourceRef(Attr attribute)
Gets the external resource reference for the current element of the traversal
or one of its attributes.
|
String |
getIdValue(Attr attribute)
Gets the id value for the current element of the traversal or one of its attributes.
|
String |
getLanguage()
Gets the language for the current element of the traversal and its attributes.
|
String |
getLineBreakType(Attr attribute)
Gets the storage line-break type for the current element or one of its attributes.
|
String |
getLocaleFilter()
Gets the locale filter information.
|
String |
getLocNote(Attr attribute)
Gets the localization note of the current element of the traversal or
one of its attributes.
|
String |
getLocNoteType(Attr attribute) |
String |
getLocQualityIssueComment(Attr attribute,
int index)
Gets the comment of the Localization Quality Issue instance for the current element
or one of its attribute, for the given index.
|
int |
getLocQualityIssueCount(Attr attribute)
Gets the number of Localization Quality Issue annotations for the current element
or one of its attributes.
|
Boolean |
getLocQualityIssueEnabled(Attr attribute,
int index)
Gets the enabled/disabled flag of the Localization Quality Issue instance for the current element
or one of its attribute, for the given index.
|
String |
getLocQualityIssueProfileRef(Attr attribute,
int index)
Gets the comment of the Localization Quality Issue instance for the current element
or one of its attribute, for the given index.
|
Double |
getLocQualityIssueSeverity(Attr attribute,
int index)
Gets the severity of the Localization Quality Issue instance for the current element
or one of its attribute, for the given index.
|
String |
getLocQualityIssuesRef(Attr attribute)
Gets the standoff location of the Localization Quality Issue records for the current element
or one of its attributes.
|
String |
getLocQualityIssueType(Attr attribute,
int index)
Gets the type of the Localization Quality Issue instance for the current element
or one of its attribute, for the given index.
|
String |
getLocQualityRatingProfileRef(Attr attribute) |
Double |
getLocQualityRatingScore(Attr attribute) |
Double |
getLocQualityRatingScoreThreshold(Attr attribute) |
Integer |
getLocQualityRatingVote(Attr attribute) |
Integer |
getLocQualityRatingVoteThreshold(Attr attribute) |
Double |
getMtConfidence(Attr attribute)
Gets the MT Confidence value for the current element of the traversal or one
of its attributes.
|
String |
getProvOrg(Attr attribute,
int index) |
String |
getProvPerson(Attr attribute,
int index) |
int |
getProvRecordCount(Attr attribute) |
String |
getProvRecordsRef(Attr attribute) |
String |
getProvRef(Attr attribute,
int index) |
String |
getProvRevOrg(Attr attribute,
int index) |
String |
getProvRevPerson(Attr attribute,
int index) |
String |
getProvRevTool(Attr attribute,
int index) |
String |
getProvTool(Attr attribute,
int index) |
String |
getStorageEncoding(Attr attribute)
Gets the storage encoding for the current element or one of its attributes.
|
Integer |
getStorageSize(Attr attribute)
Gets the storage size for the current element or one of its attributes.
|
String |
getTargetPointer(Attr attribute)
Gets the target pointer for the current element of the traversal or one of its attributes.
|
boolean |
getTerm(Attr attribute)
Indicates if a given attribute of the current element of the traversal or
one of its attributes is a term.
|
Double |
getTermConfidence(Attr attribute)
Gets the confidence associated with a given term node or one of its
attributes.
|
String |
getTermInfo(Attr attribute)
Gets the information associated with a given term node or one of its
attributes.
|
String |
getTextAnalysisClass(Attr attribute) |
Double |
getTextAnalysisConfidence(Attr attribute) |
String |
getTextAnalysisIdent(Attr attribute) |
String |
getTextAnalysisSource(Attr attribute) |
boolean |
getTranslate(Attr attribute)
Indicates if the current element or one of its attributes is
translatable.
|
int |
getWithinText()
Gets the element-withinText-related information for the current element.
|
Node |
nextNode()
Moves to the next node in the traversal of the document.
|
boolean |
preserveWS(Attr attribute)
Indicates if the white spaces of the current element of the traversal
or the given attribute must be preserved.
|
void |
startTraversal()
Starts the traversal of the document.
|
static final int DIR_LTR
static final int DIR_RTL
static final int DIR_LRO
static final int DIR_RLO
static final int WITHINTEXT_NO
static final int WITHINTEXT_YES
static final int WITHINTEXT_NESTED
void startTraversal()
nextNode().Node nextNode()
boolean backTracking()
boolean getTranslate(Attr attribute)
attribute - the attribute to query or null to query the element.String getTargetPointer(Attr attribute)
attribute - the attribute to query or null to query the element.String getIdValue(Attr attribute)
attribute - the attribute to query or null to query the element.
This method is used for both the ITS 2.0 feature and the deprecated extension to ITS 1.0.int getDirectionality(Attr attribute)
String getExternalResourceRef(Attr attribute)
attribute - the attribute to query or null to query the element.String getLocQualityIssuesRef(Attr attribute)
attribute - the attribute to query, or null to query the current element.int getLocQualityIssueCount(Attr attribute)
attribute - the attribute to query, or null to query the current element.String getLocQualityIssueType(Attr attribute, int index)
attribute - the attribute to query, or null to query the current element.index - the index of the issue in the list (zero-based).getLocQualityIssueCount(Attr)String getLocQualityIssueComment(Attr attribute, int index)
attribute - the attribute to query, or null to query the current element.index - the index of the issue in the list (zero-based).getLocQualityIssueCount(Attr)Double getLocQualityIssueSeverity(Attr attribute, int index)
attribute - the attribute to query, or null to query the current element.index - the index of the issue in the list (zero-based).getLocQualityIssueCount(Attr)String getLocQualityIssueProfileRef(Attr attribute, int index)
attribute - the attribute to query, or null to query the current element.index - the index of the issue in the list (zero-based).getLocQualityIssueCount(Attr)Boolean getLocQualityIssueEnabled(Attr attribute, int index)
attribute - the attribute to query, or null to query the current element.index - the index of the issue in the list (zero-based).getLocQualityIssueCount(Attr)int getWithinText()
boolean getTerm(Attr attribute)
attribute - The attribute to query or null for the element.String getTermInfo(Attr attribute)
attribute - The attribute to query or null for the element.Double getTermConfidence(Attr attribute)
attribute - The attribute to query or null for the element.String getLocNote(Attr attribute)
attribute - the attribute to query or null for the element.String getDomains(Attr attribute)
attribute - the attribute to query or null to query the current element.String getLocaleFilter()
boolean preserveWS(Attr attribute)
String getLanguage()
Integer getStorageSize(Attr attribute)
attribute - the attribute to query or null to query the current element.String getStorageEncoding(Attr attribute)
attribute - the attribute to query or null to query the current element.String getLineBreakType(Attr attribute)
attribute - the attribute to query or null to query the current element.String getAllowedCharacters(Attr attribute)
attribute - the attribute to query or null to query the current element.String getAnnotatorsRef()
The returned value is sorted by data category and hold all data categories within scope (not just the ones set on the given node).
String getAnnotatorRef(String dc)
dc - the name of the data category to look up.Double getMtConfidence(Attr attribute)
attribute - the attribute to query or null for the element.int getProvRecordCount(Attr attribute)
Copyright © 2021. All rights reserved.