Package org.w3c.its
Class ITSEngine
- java.lang.Object
-
- org.w3c.its.ITSEngine
-
- All Implemented Interfaces:
IProcessor,ITraversal
public class ITSEngine extends Object implements IProcessor, ITraversal
Implements the ITSIProcessorandITraversalinterfaces.This class allows you to apply ITS (the Internationalization Tag Set) to a given document and retrieve the corresponding metadata on each node.
See http://www.w3.org/TR/its20/ for more details on ITS.
-
-
Field Summary
Fields Modifier and Type Field Description static StringITS_MIMETYPEstatic StringITS_VERSION1static StringITS_VERSION2-
Fields inherited from interface org.w3c.its.IProcessor
DC_ALL, DC_ALLOWEDCHARS, DC_DIRECTIONALITY, DC_DOMAIN, DC_EXTERNALRES, DC_IDVALUE, DC_LANGINFO, DC_LOCFILTER, DC_LOCNOTE, DC_LOCQUALITYISSUE, DC_LOCQUALITYRATING, DC_MTCONFIDENCE, DC_PRESERVESPACE, DC_PROVENANCE, DC_STORAGESIZE, DC_SUBFILTER, DC_TARGETPOINTER, DC_TERMINOLOGY, DC_TEXTANALYSIS, DC_TRANSLATE, DC_WITHINTEXT
-
Fields inherited from interface org.w3c.its.ITraversal
DIR_LRO, DIR_LTR, DIR_RLO, DIR_RTL, WITHINTEXT_NESTED, WITHINTEXT_NO, WITHINTEXT_YES
-
-
Constructor Summary
Constructors Constructor Description ITSEngine(Document doc, URI docURI)ITSEngine(Document doc, URI docURI, boolean isHTML5, Map<String,String> map)ITSEngine(Document doc, URI docURI, String docEncoding, boolean isHTML5, Map<String,String> map)Creates a new ITSEngine object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExternalRules(URI docURI)Adds a set of global rules to the document to process.voidaddExternalRules(Document rulesDoc, URI docURI)Adds a set of global rules to the document to process.voidapplyRules(long dataCategories)Applies the current ITS rules to the document.booleanbackTracking()Indicates whether the current node is found while backtracking.voiddisapplyRules()Removes all the special flags added when applying the ITS rules.StringgetAllowedCharacters(Attr attribute)Gets the pattern of allowed characters for the current element or one of its attributes.StringgetAnnotatorRef(String dc)Gets the annotator reference for a given data category.StringgetAnnotatorsRef()Gets the tools references associated with the current element of the traversal and its attributes.intgetDirectionality(Attr attribute)Gets the directionality for the text of a given attribute of the current node of the traversal.StringgetDomains(Attr attribute)Gets the domain or domains for the current element or one of its attributes.StringgetExternalResourceRef(Attr attribute)Gets the external resource reference for the current element of the traversal or one of its attributes.StringgetIdValue(Attr attribute)Gets the id value for the current element of the traversal or one of its attributes.StringgetLanguage()Gets the language for the current element of the traversal and its attributes.StringgetLineBreakType(Attr attribute)Gets the storage line-break type for the current element or one of its attributes.StringgetLocaleFilter()Gets the locale filter information.StringgetLocNote(Attr attribute)Gets the localization note of the current element of the traversal or one of its attributes.StringgetLocNoteType(Attr attribute)GenericAnnotationsgetLocQualityIssueAnnotations(Attr attribute)Gets the localization quality issue annotations for the current element or one of its attributes.StringgetLocQualityIssueComment(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.intgetLocQualityIssueCount(Attr attribute)Gets the number of Localization Quality Issue annotations for the current element or one of its attributes.BooleangetLocQualityIssueEnabled(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.StringgetLocQualityIssueProfileRef(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.DoublegetLocQualityIssueSeverity(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.StringgetLocQualityIssuesRef(Attr attribute)Gets the standoff location of the Localization Quality Issue records for the current element or one of its attributes.StringgetLocQualityIssueType(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.GenericAnnotationsgetLocQualityRatingAnnotation()Gets the localization quality rating annotation set for the current element.StringgetLocQualityRatingProfileRef(Attr attribute)DoublegetLocQualityRatingScore(Attr attribute)DoublegetLocQualityRatingScoreThreshold(Attr attribute)IntegergetLocQualityRatingVote(Attr attribute)IntegergetLocQualityRatingVoteThreshold(Attr attribute)DoublegetMtConfidence(Attr attribute)Gets the MT Confidence value for the current element of the traversal or one of its attributes.GenericAnnotationsgetProvenanceAnnotations(Attr attribute)Gets the annotations for the Provenance data category for the current element or for one of its attributes.StringgetProvOrg(Attr attribute, int index)StringgetProvPerson(Attr attribute, int index)intgetProvRecordCount(Attr attribute)StringgetProvRecordsRef(Attr attribute)StringgetProvRef(Attr attribute, int index)StringgetProvRevOrg(Attr attribute, int index)StringgetProvRevPerson(Attr attribute, int index)StringgetProvRevTool(Attr attribute, int index)StringgetProvTool(Attr attribute, int index)StringgetStorageEncoding(Attr attribute)Gets the storage encoding for the current element or one of its attributes.IntegergetStorageSize(Attr attribute)Gets the storage size for the current element or one of its attributes.GenericAnnotationsgetStorageSizeAnnotation(Attr attribute)StringgetSubFilter(Attr attribute)StringgetTargetPointer(Attr attribute)Gets the target pointer for the current element of the traversal or one of its attributes.booleangetTargetPointerRuleTriggered()Indicates if the processed document has triggered a target pointer rule.booleangetTerm(Attr attribute)Indicates if a given attribute of the current element of the traversal or one of its attributes is a term.DoublegetTermConfidence(Attr attribute)Gets the confidence associated with a given term node or one of its attributes.StringgetTermInfo(Attr attribute)Gets the information associated with a given term node or one of its attributes.GenericAnnotationsgetTerminologyAnnotation(Attr attribute)Gets the terminology annotation set for the current element or one of its attributes.GenericAnnotationsgetTextAnalysisAnnotation(Attr attribute)Gets the text analysis annotations for the current element or one of its attributes.StringgetTextAnalysisClass(Attr attribute)DoublegetTextAnalysisConfidence(Attr attribute)StringgetTextAnalysisIdent(Attr attribute)StringgetTextAnalysisSource(Attr attribute)static StringgetTextContent(Node node)Gets the text content of the first TEXT child of an element node.booleangetTranslatableAttributeRuleTriggered()Indicates if the processed document has triggered a rule for a translatable attribute.booleangetTranslate(Attr attribute)Indicates if the current element or one of its attributes is translatable.intgetWithinText()Gets the element-withinText-related information for the current element.XPathgetXPath()Gets internal XPath object used in this ITS engine.NodenextNode()Moves to the next node in the traversal of the document.booleanpreserveWS(Attr attribute)Indicates if the white spaces of the current element of the traversal or the given attribute must be preserved.voidsetVariables(Map<String,String> map)voidstartTraversal()Starts the traversal of the document.
-
-
-
Field Detail
-
ITS_VERSION1
public static final String ITS_VERSION1
- See Also:
- Constant Field Values
-
ITS_VERSION2
public static final String ITS_VERSION2
- See Also:
- Constant Field Values
-
ITS_MIMETYPE
public static final String ITS_MIMETYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ITSEngine
public ITSEngine(Document doc, URI docURI, String docEncoding, boolean isHTML5, Map<String,String> map)
Creates a new ITSEngine object.- Parameters:
doc- the document to process.docURI- the URI of the document to process.docEncoding- the default encoding for the document.isHTML5- true if the document is an HTML5 document.map- map of the parameters key-value pairs (can be null).
-
-
Method Detail
-
getTranslatableAttributeRuleTriggered
public boolean getTranslatableAttributeRuleTriggered()
Indicates if the processed document has triggered a rule for a translatable attribute. This must be called only afterapplyRules(long).- Returns:
- true if the document has triggered a rule for a translatable attribute.
-
getTargetPointerRuleTriggered
public boolean getTargetPointerRuleTriggered()
Indicates if the processed document has triggered a target pointer rule. This must be called only afterapplyRules(long).- Returns:
- true if the processed document has triggered a target pointer rule.
-
getXPath
public XPath getXPath()
Gets internal XPath object used in this ITS engine.- Returns:
- the internal XPath object used in this ITS engine.
-
addExternalRules
public void addExternalRules(URI docURI)
Description copied from interface:IProcessorAdds a set of global rules to the document to process. SeeIProcessor.addExternalRules(Document, URI)for more details.- Specified by:
addExternalRulesin interfaceIProcessor- Parameters:
docURI- URI of the document that contains the rules to add.
-
addExternalRules
public void addExternalRules(Document rulesDoc, URI docURI)
Description copied from interface:IProcessorAdds a set of global rules to the document to process.The rules are added to the internal storage of the document, not to the document tree.
Use this method to add one rule set or more before calling
IProcessor.applyRules(long).- Specified by:
addExternalRulesin interfaceIProcessor- Parameters:
rulesDoc- Document where the global rules are declared.docURI- URI of the document. This is needed because xlink:href need a initial location.
-
applyRules
public void applyRules(long dataCategories)
Description copied from interface:IProcessorApplies the current ITS rules to the document. This method decorates the document tree with special flags that are used for getting the different ITS information later.- Specified by:
applyRulesin interfaceIProcessor- Parameters:
dataCategories- Flag indicating what data categories to apply. The value must be one of the DC_* values or several combined with a OR operator. For example:applyRules(DC_TRANSLATE | DC_LOCNOTE);Use DC_ALL to apply all data categories.
-
disapplyRules
public void disapplyRules()
Description copied from interface:IProcessorRemoves all the special flags added when applying the ITS rules. Once you have called this method you should callIProcessor.applyRules(long)again to be able to use ITS-aware methods again.- Specified by:
disapplyRulesin interfaceIProcessor
-
backTracking
public boolean backTracking()
Description copied from interface:ITraversalIndicates whether the current node is found while backtracking. For example, for an element node, this indicate the equivalent of a closing tag.- Specified by:
backTrackingin interfaceITraversal- Returns:
- true if the current node is found while backtracking, false otherwise.
-
nextNode
public Node nextNode()
Description copied from interface:ITraversalMoves to the next node in the traversal of the document.- Specified by:
nextNodein interfaceITraversal- Returns:
- the current node of the traversal. Null if the document is traversed.
-
startTraversal
public void startTraversal()
Description copied from interface:ITraversalStarts the traversal of the document. This method must be called once before you callITraversal.nextNode().- Specified by:
startTraversalin interfaceITraversal
-
getTextContent
public static String getTextContent(Node node)
Gets the text content of the first TEXT child of an element node. This is to use instead of node.getTextContent() which does not work with some Macintosh Java VMs. Note this work-around get only the first TEXT node.- Parameters:
node- the container element.- Returns:
- the text of the first TEXT child node.
-
getTranslate
public boolean getTranslate(Attr attribute)
Description copied from interface:ITraversalIndicates if the current element or one of its attributes is translatable.- Specified by:
getTranslatein interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the element.- Returns:
- true if the queried element or attribute is translatable, false otherwise.
-
getTargetPointer
public String getTargetPointer(Attr attribute)
Description copied from interface:ITraversalGets the target pointer for the current element of the traversal or one of its attributes.- Specified by:
getTargetPointerin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the element.- Returns:
- the XPath relative to the current element or attribute to the node where the translation should be placed.
-
getIdValue
public String getIdValue(Attr attribute)
Description copied from interface:ITraversalGets the id value for the current element of the traversal or one of its attributes.- Specified by:
getIdValuein interfaceITraversal- Parameters:
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.- Returns:
- the value of the identifier for the queried part.
-
getDirectionality
public int getDirectionality(Attr attribute)
Description copied from interface:ITraversalGets the directionality for the text of a given attribute of the current node of the traversal.- Specified by:
getDirectionalityin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the element.- Returns:
- the directionality information
(
ITraversal.DIR_LTR,ITraversal.DIR_RTL,ITraversal.DIR_LROorITraversal.DIR_RLO) for the queried part.
-
getWithinText
public int getWithinText()
Description copied from interface:ITraversalGets the element-withinText-related information for the current element. This data category applies only to elements.- Specified by:
getWithinTextin interfaceITraversal- Returns:
- One of the WINTINTEXT_* values.
-
getTerm
public boolean getTerm(Attr attribute)
Description copied from interface:ITraversalIndicates if a given attribute of the current element of the traversal or one of its attributes is a term.- Specified by:
getTermin interfaceITraversal- Parameters:
attribute- The attribute to query or null for the element.- Returns:
- True if the queried part is a term, false otherwise.
-
getTermInfo
public String getTermInfo(Attr attribute)
Description copied from interface:ITraversalGets the information associated with a given term node or one of its attributes.- Specified by:
getTermInfoin interfaceITraversal- Parameters:
attribute- The attribute to query or null for the element.- Returns:
- the information associated with the queried part.
-
getTermConfidence
public Double getTermConfidence(Attr attribute)
Description copied from interface:ITraversalGets the confidence associated with a given term node or one of its attributes.- Specified by:
getTermConfidencein interfaceITraversal- Parameters:
attribute- The attribute to query or null for the element.- Returns:
- the confidence associated with the queried part.
-
getTerminologyAnnotation
public GenericAnnotations getTerminologyAnnotation(Attr attribute)
Gets the terminology annotation set for the current element or one of its attributes. Note that the returned object is not the same at each each call.- Parameters:
attribute- the attribute to look up, or null for the element.- Returns:
- the annotation set for the queried node (can be null).
-
getLocNote
public String getLocNote(Attr attribute)
Description copied from interface:ITraversalGets the localization note of the current element of the traversal or one of its attributes.- Specified by:
getLocNotein interfaceITraversal- Parameters:
attribute- the attribute to query or null for the element.- Returns:
- The localization note of the queried part.
-
getLocNoteType
public String getLocNoteType(Attr attribute)
- Specified by:
getLocNoteTypein interfaceITraversal
-
getDomains
public String getDomains(Attr attribute)
Description copied from interface:ITraversalGets the domain or domains for the current element or one of its attributes.- Specified by:
getDomainsin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the current element.- Returns:
- a comma-separated string representing the list of domains for the queried part. See http://www.w3.org/TR/its20/#domain-implementation for details on the format of the string.
-
preserveWS
public boolean preserveWS(Attr attribute)
Description copied from interface:ITraversalIndicates if the white spaces of the current element of the traversal or the given attribute must be preserved.- Specified by:
preserveWSin interfaceITraversal- Returns:
- True if the white spaces of the current element or the given attribute must be preserve, false if they may or may not be preserved.
-
getLanguage
public String getLanguage()
Description copied from interface:ITraversalGets the language for the current element of the traversal and its attributes.- Specified by:
getLanguagein interfaceITraversal- Returns:
- The language code for the current element and its attributes.
-
getExternalResourceRef
public String getExternalResourceRef(Attr attribute)
Description copied from interface:ITraversalGets the external resource reference for the current element of the traversal or one of its attributes.- Specified by:
getExternalResourceRefin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the element.- Returns:
- the external resource reference for the queried part, or null.
-
getLocaleFilter
public String getLocaleFilter()
Description copied from interface:ITraversalGets the locale filter information.- Specified by:
getLocaleFilterin interfaceITraversal- Returns:
- A a comma-separated list of extended language ranges as defined in BCP-47 (and possibly empty). If the first character is '!' the type is 'exclude' otherwise the type is 'include'.
-
getLocQualityIssuesRef
public String getLocQualityIssuesRef(Attr attribute)
Description copied from interface:ITraversalGets the standoff location of the Localization Quality Issue records for the current element or one of its attributes.- Specified by:
getLocQualityIssuesRefin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.- Returns:
- the standoff location of the records for the queried parts (can be null).
-
getLocQualityIssueCount
public int getLocQualityIssueCount(Attr attribute)
Description copied from interface:ITraversalGets the number of Localization Quality Issue annotations for the current element or one of its attributes.- Specified by:
getLocQualityIssueCountin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.- Returns:
- the number of issues for the queried part.
-
getLocQualityIssueAnnotations
public GenericAnnotations getLocQualityIssueAnnotations(Attr attribute)
Gets the localization quality issue annotations for the current element or one of its attributes. Note that the returned objects are not the same at each each call.- Parameters:
attribute- the attribute to look up, or null for the element.- Returns:
- the annotation set for the queried node (can be null).
-
getLocQualityIssueType
public String getLocQualityIssueType(Attr attribute, int index)
Description copied from interface:ITraversalGets the type of the Localization Quality Issue instance for the current element or one of its attribute, for the given index.- Specified by:
getLocQualityIssueTypein interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.index- the index of the issue in the list (zero-based).- Returns:
- the type for the issue at the given index for the queried part (can be null).
- See Also:
ITraversal.getLocQualityIssueCount(Attr)
-
getLocQualityIssueComment
public String getLocQualityIssueComment(Attr attribute, int index)
Description copied from interface:ITraversalGets the comment of the Localization Quality Issue instance for the current element or one of its attribute, for the given index.- Specified by:
getLocQualityIssueCommentin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.index- the index of the issue in the list (zero-based).- Returns:
- the comment for the issue at the given index for the queried part (can be null).
- See Also:
ITraversal.getLocQualityIssueCount(Attr)
-
getLocQualityIssueSeverity
public Double getLocQualityIssueSeverity(Attr attribute, int index)
Description copied from interface:ITraversalGets the severity of the Localization Quality Issue instance for the current element or one of its attribute, for the given index.- Specified by:
getLocQualityIssueSeverityin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.index- the index of the issue in the list (zero-based).- Returns:
- the severity for the issue at the given index for the queried part (can be null).
- See Also:
ITraversal.getLocQualityIssueCount(Attr)
-
getLocQualityIssueProfileRef
public String getLocQualityIssueProfileRef(Attr attribute, int index)
Description copied from interface:ITraversalGets the comment of the Localization Quality Issue instance for the current element or one of its attribute, for the given index.- Specified by:
getLocQualityIssueProfileRefin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.index- the index of the issue in the list (zero-based).- Returns:
- the comment for the issue at the given index for the queried part (can be null).
- See Also:
ITraversal.getLocQualityIssueCount(Attr)
-
getLocQualityIssueEnabled
public Boolean getLocQualityIssueEnabled(Attr attribute, int index)
Description copied from interface:ITraversalGets the enabled/disabled flag of the Localization Quality Issue instance for the current element or one of its attribute, for the given index.- Specified by:
getLocQualityIssueEnabledin interfaceITraversal- Parameters:
attribute- the attribute to query, or null to query the current element.index- the index of the issue in the list (zero-based).- Returns:
- the enabled/disabled flag for the issue at the given index for the queried part (can be null).
- See Also:
ITraversal.getLocQualityIssueCount(Attr)
-
getTextAnalysisAnnotation
public GenericAnnotations getTextAnalysisAnnotation(Attr attribute)
Gets the text analysis annotations for the current element or one of its attributes. Note that the returned objects are not the same instances at each each call.- Parameters:
attribute- the attribute to look up, or null for the element.- Returns:
- the annotations for the queried node (can be null).
-
getTextAnalysisClass
public String getTextAnalysisClass(Attr attribute)
- Specified by:
getTextAnalysisClassin interfaceITraversal
-
getTextAnalysisSource
public String getTextAnalysisSource(Attr attribute)
- Specified by:
getTextAnalysisSourcein interfaceITraversal
-
getTextAnalysisIdent
public String getTextAnalysisIdent(Attr attribute)
- Specified by:
getTextAnalysisIdentin interfaceITraversal
-
getTextAnalysisConfidence
public Double getTextAnalysisConfidence(Attr attribute)
- Specified by:
getTextAnalysisConfidencein interfaceITraversal
-
getLocQualityRatingAnnotation
public GenericAnnotations getLocQualityRatingAnnotation()
Gets the localization quality rating annotation set for the current element.- Returns:
- the annotation set for the queried node (can be null).
-
getLocQualityRatingScore
public Double getLocQualityRatingScore(Attr attribute)
- Specified by:
getLocQualityRatingScorein interfaceITraversal
-
getLocQualityRatingVote
public Integer getLocQualityRatingVote(Attr attribute)
- Specified by:
getLocQualityRatingVotein interfaceITraversal
-
getLocQualityRatingScoreThreshold
public Double getLocQualityRatingScoreThreshold(Attr attribute)
- Specified by:
getLocQualityRatingScoreThresholdin interfaceITraversal
-
getLocQualityRatingVoteThreshold
public Integer getLocQualityRatingVoteThreshold(Attr attribute)
- Specified by:
getLocQualityRatingVoteThresholdin interfaceITraversal
-
getLocQualityRatingProfileRef
public String getLocQualityRatingProfileRef(Attr attribute)
- Specified by:
getLocQualityRatingProfileRefin interfaceITraversal
-
getStorageSizeAnnotation
public GenericAnnotations getStorageSizeAnnotation(Attr attribute)
-
getStorageSize
public Integer getStorageSize(Attr attribute)
Description copied from interface:ITraversalGets the storage size for the current element or one of its attributes.- Specified by:
getStorageSizein interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the current element.- Returns:
- the storage size for the queried part.
-
getStorageEncoding
public String getStorageEncoding(Attr attribute)
Description copied from interface:ITraversalGets the storage encoding for the current element or one of its attributes.- Specified by:
getStorageEncodingin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the current element.- Returns:
- the storage encoding for the queried part.
-
getLineBreakType
public String getLineBreakType(Attr attribute)
Description copied from interface:ITraversalGets the storage line-break type for the current element or one of its attributes.- Specified by:
getLineBreakTypein interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the current element.- Returns:
- the storage line-break type for the queried part.
-
getAllowedCharacters
public String getAllowedCharacters(Attr attribute)
Description copied from interface:ITraversalGets the pattern of allowed characters for the current element or one of its attributes.- Specified by:
getAllowedCharactersin interfaceITraversal- Parameters:
attribute- the attribute to query or null to query the current element.- Returns:
- the pattern of allowed characters for the queried part.
-
getAnnotatorsRef
public String getAnnotatorsRef()
Description copied from interface:ITraversalGets the tools references associated with the current element of the traversal and its attributes.The returned value is sorted by data category and hold all data categories within scope (not just the ones set on the given node).
- Specified by:
getAnnotatorsRefin interfaceITraversal- Returns:
- the tools references associated with the current element of the traversal and its attributes.
-
getAnnotatorRef
public String getAnnotatorRef(String dc)
Description copied from interface:ITraversalGets the annotator reference for a given data category.- Specified by:
getAnnotatorRefin interfaceITraversal- Parameters:
dc- the name of the data category to look up.- Returns:
- the reference for the given data category, or null.
-
getMtConfidence
public Double getMtConfidence(Attr attribute)
Description copied from interface:ITraversalGets the MT Confidence value for the current element of the traversal or one of its attributes.- Specified by:
getMtConfidencein interfaceITraversal- Parameters:
attribute- the attribute to query or null for the element.- Returns:
- the MT Confidence value or null if none is set.
-
getProvenanceAnnotations
public GenericAnnotations getProvenanceAnnotations(Attr attribute)
Gets the annotations for the Provenance data category for the current element or for one of its attributes.- Parameters:
attribute- the attribute to query, or null to query the current element.- Returns:
- the annotations for the queried part, or null if there is none.
-
getProvRecordsRef
public String getProvRecordsRef(Attr attribute)
- Specified by:
getProvRecordsRefin interfaceITraversal
-
getProvRecordCount
public int getProvRecordCount(Attr attribute)
- Specified by:
getProvRecordCountin interfaceITraversal
-
getProvPerson
public String getProvPerson(Attr attribute, int index)
- Specified by:
getProvPersonin interfaceITraversal
-
getProvOrg
public String getProvOrg(Attr attribute, int index)
- Specified by:
getProvOrgin interfaceITraversal
-
getProvTool
public String getProvTool(Attr attribute, int index)
- Specified by:
getProvToolin interfaceITraversal
-
getProvRevPerson
public String getProvRevPerson(Attr attribute, int index)
- Specified by:
getProvRevPersonin interfaceITraversal
-
getProvRevOrg
public String getProvRevOrg(Attr attribute, int index)
- Specified by:
getProvRevOrgin interfaceITraversal
-
getProvRevTool
public String getProvRevTool(Attr attribute, int index)
- Specified by:
getProvRevToolin interfaceITraversal
-
getProvRef
public String getProvRef(Attr attribute, int index)
- Specified by:
getProvRefin interfaceITraversal
-
-