public interface IProcessor
| Modifier and Type | Field and Description |
|---|---|
static long |
DC_ALL
Flag for all categories (forward compatible).
|
static long |
DC_ALLOWEDCHARS
Flag for the Allowed Characters
data category (ITS 2.0)
|
static long |
DC_DIRECTIONALITY
Flag for the Directionality
data category (ITS 1.0)
|
static long |
DC_DOMAIN
Flag for the Domain
data category (ITS 2.0)
|
static long |
DC_EXTERNALRES
Flag for the External Resource
data category (ITS 2.0)
|
static long |
DC_IDVALUE
Flag for the Id Value
data category (ITS 2.0)
|
static long |
DC_LANGINFO
Flag for the Language Information
data category (ITS 1.0)
|
static long |
DC_LOCFILTER
Flag for the Locale Filter
data category (ITS 2.0)
|
static long |
DC_LOCNOTE
Flag for the Localization Note
data category (ITS 1.0, enhanced in 2.0)
|
static long |
DC_LOCQUALITYISSUE
Flag for the Localization Quality Issue
data category (ITS 2.0)
|
static long |
DC_LOCQUALITYRATING
Flag for the Localization Quality Rating
data category (ITS 2.0)
|
static long |
DC_MTCONFIDENCE
Flag for the MT Confidence
data category (ITS 2.0)
|
static long |
DC_PRESERVESPACE
Flag for the Preserve Space
data category (ITS 2.0)
|
static long |
DC_PROVENANCE
Flag for the Provenance
data category (ITS 2.0)
|
static long |
DC_STORAGESIZE
Flag for the Storage Size
data category (ITS 2.0)
|
static long |
DC_SUBFILTER
Flag for the Sub-Filter definition data category (Extension)
|
static long |
DC_TARGETPOINTER
Flag for the Target Pointer
data category (ITS 2.0)
|
static long |
DC_TERMINOLOGY
Flag for the Terminology
data category (ITS 1.0, enhanced in 2.0)
|
static long |
DC_TEXTANALYSIS
Flag for the Text Analysis
data category (ITS 2.0)
|
static long |
DC_TRANSLATE
Flag for the Translate
data category (ITS 1.0)
|
static long |
DC_WITHINTEXT
Flag for the Elements Within Text
data category (ITS 1.0)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalRules(Document rulesDoc,
URI docURI)
Adds a set of global rules to the document to process.
|
void |
addExternalRules(URI docURI)
Adds a set of global rules to the document to process.
|
void |
applyRules(long dataCategories)
Applies the current ITS rules to the document.
|
void |
disapplyRules()
Removes all the special flags added when applying the ITS rules.
|
static final long DC_TRANSLATE
static final long DC_LOCNOTE
static final long DC_TERMINOLOGY
static final long DC_DIRECTIONALITY
static final long DC_LANGINFO
static final long DC_WITHINTEXT
static final long DC_DOMAIN
static final long DC_TEXTANALYSIS
static final long DC_LOCFILTER
static final long DC_PROVENANCE
static final long DC_EXTERNALRES
static final long DC_TARGETPOINTER
static final long DC_IDVALUE
static final long DC_PRESERVESPACE
static final long DC_LOCQUALITYISSUE
static final long DC_LOCQUALITYRATING
static final long DC_MTCONFIDENCE
static final long DC_ALLOWEDCHARS
static final long DC_STORAGESIZE
static final long DC_SUBFILTER
static final long DC_ALL
void addExternalRules(Document rulesDoc, URI docURI)
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).
rulesDoc - Document where the global rules are declared.docURI - URI of the document. This is needed because xlink:href need a initial location.void addExternalRules(URI docURI)
addExternalRules(Document, URI) for more details.docURI - URI of the document that contains the rules to add.void applyRules(long dataCategories)
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.
void disapplyRules()
applyRules(long) again to be able
to use ITS-aware methods again.Copyright © 2021. All rights reserved.