Package org.w3c.its
Interface IProcessor
-
- All Known Implementing Classes:
ITSEngine
public interface IProcessorProvides the mathods to apply ITS rules and markup to a given document.
-
-
Field Summary
Fields Modifier and Type Field Description static longDC_ALLFlag for all categories (forward compatible).static longDC_ALLOWEDCHARSFlag for the Allowed Characters data category (ITS 2.0)static longDC_DIRECTIONALITYFlag for the Directionality data category (ITS 1.0)static longDC_DOMAINFlag for the Domain data category (ITS 2.0)static longDC_EXTERNALRESFlag for the External Resource data category (ITS 2.0)static longDC_IDVALUEFlag for the Id Value data category (ITS 2.0)static longDC_LANGINFOFlag for the Language Information data category (ITS 1.0)static longDC_LOCFILTERFlag for the Locale Filter data category (ITS 2.0)static longDC_LOCNOTEFlag for the Localization Note data category (ITS 1.0, enhanced in 2.0)static longDC_LOCQUALITYISSUEFlag for the Localization Quality Issue data category (ITS 2.0)static longDC_LOCQUALITYRATINGFlag for the Localization Quality Rating data category (ITS 2.0)static longDC_MTCONFIDENCEFlag for the MT Confidence data category (ITS 2.0)static longDC_PRESERVESPACEFlag for the Preserve Space data category (ITS 2.0)static longDC_PROVENANCEFlag for the Provenance data category (ITS 2.0)static longDC_STORAGESIZEFlag for the Storage Size data category (ITS 2.0)static longDC_SUBFILTERFlag for the Sub-Filter definition data category (Extension)static longDC_TARGETPOINTERFlag for the Target Pointer data category (ITS 2.0)static longDC_TERMINOLOGYFlag for the Terminology data category (ITS 1.0, enhanced in 2.0)static longDC_TEXTANALYSISFlag for the Text Analysis data category (ITS 2.0)static longDC_TRANSLATEFlag for the Translate data category (ITS 1.0)static longDC_WITHINTEXTFlag for the Elements Within Text data category (ITS 1.0)
-
Method Summary
All Methods Instance Methods Abstract 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.voiddisapplyRules()Removes all the special flags added when applying the ITS rules.
-
-
-
Field Detail
-
DC_TRANSLATE
static final long DC_TRANSLATE
Flag for the Translate data category (ITS 1.0)- See Also:
- Constant Field Values
-
DC_LOCNOTE
static final long DC_LOCNOTE
Flag for the Localization Note data category (ITS 1.0, enhanced in 2.0)- See Also:
- Constant Field Values
-
DC_TERMINOLOGY
static final long DC_TERMINOLOGY
Flag for the Terminology data category (ITS 1.0, enhanced in 2.0)- See Also:
- Constant Field Values
-
DC_DIRECTIONALITY
static final long DC_DIRECTIONALITY
Flag for the Directionality data category (ITS 1.0)- See Also:
- Constant Field Values
-
DC_LANGINFO
static final long DC_LANGINFO
Flag for the Language Information data category (ITS 1.0)- See Also:
- Constant Field Values
-
DC_WITHINTEXT
static final long DC_WITHINTEXT
Flag for the Elements Within Text data category (ITS 1.0)- See Also:
- Constant Field Values
-
DC_DOMAIN
static final long DC_DOMAIN
Flag for the Domain data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_TEXTANALYSIS
static final long DC_TEXTANALYSIS
Flag for the Text Analysis data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_LOCFILTER
static final long DC_LOCFILTER
Flag for the Locale Filter data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_PROVENANCE
static final long DC_PROVENANCE
Flag for the Provenance data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_EXTERNALRES
static final long DC_EXTERNALRES
Flag for the External Resource data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_TARGETPOINTER
static final long DC_TARGETPOINTER
Flag for the Target Pointer data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_IDVALUE
static final long DC_IDVALUE
Flag for the Id Value data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_PRESERVESPACE
static final long DC_PRESERVESPACE
Flag for the Preserve Space data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_LOCQUALITYISSUE
static final long DC_LOCQUALITYISSUE
Flag for the Localization Quality Issue data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_LOCQUALITYRATING
static final long DC_LOCQUALITYRATING
Flag for the Localization Quality Rating data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_MTCONFIDENCE
static final long DC_MTCONFIDENCE
Flag for the MT Confidence data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_ALLOWEDCHARS
static final long DC_ALLOWEDCHARS
Flag for the Allowed Characters data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_STORAGESIZE
static final long DC_STORAGESIZE
Flag for the Storage Size data category (ITS 2.0)- See Also:
- Constant Field Values
-
DC_SUBFILTER
static final long DC_SUBFILTER
Flag for the Sub-Filter definition data category (Extension)- See Also:
- Constant Field Values
-
DC_ALL
static final long DC_ALL
Flag for all categories (forward compatible).- See Also:
- Constant Field Values
-
-
Method Detail
-
addExternalRules
void addExternalRules(Document rulesDoc, URI docURI)
Adds 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
applyRules(long).- Parameters:
rulesDoc- Document where the global rules are declared.docURI- URI of the document. This is needed because xlink:href need a initial location.
-
addExternalRules
void addExternalRules(URI docURI)
Adds a set of global rules to the document to process. SeeaddExternalRules(Document, URI)for more details.- Parameters:
docURI- URI of the document that contains the rules to add.
-
applyRules
void applyRules(long dataCategories)
Applies 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.- 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
void disapplyRules()
Removes all the special flags added when applying the ITS rules. Once you have called this method you should callapplyRules(long)again to be able to use ITS-aware methods again.
-
-