Class SchematronDialect
java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.schematron.SchematronDialect
- All Implemented Interfaces:
XMLDialect
This class specifies the Schematron XML Dialect.
-
Field Summary
Fields inherited from interface org.omegat.filters3.xml.XMLDialect
CONSTRAINT_DOCTYPE, CONSTRAINT_DOCTYPE_UNBOXED, CONSTRAINT_PUBLIC_DOCTYPE, CONSTRAINT_PUBLIC_DOCTYPE_UNBOXED, CONSTRAINT_ROOT, CONSTRAINT_ROOT_UNBOXED, CONSTRAINT_SYSTEM_DOCTYPE, CONSTRAINT_SYSTEM_DOCTYPE_UNBOXED, CONSTRAINT_XMLNS, CONSTRAINT_XMLNS_UNBOXED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidateIntactTag(String tag, @Nullable Attributes atts) For a given tag, return whether the content of this tag should be translated, depending on the content of one attribute and the presence or absence of other attributes.Methods inherited from class org.omegat.filters3.xml.DefaultXMLDialect
constructShortcuts, defineConstraint, defineContentBasedTag, defineIntactTag, defineIntactTags, defineOutOfTurnTag, defineOutOfTurnTags, defineParagraphTag, defineParagraphTags, definePreformatTag, definePreformatTags, defineShortcut, defineShortcuts, defineTranslatableAttribute, defineTranslatableAttributes, defineTranslatableTagAttribute, defineTranslatableTagAttributes, defineTranslatableTagsAttribute, getClosingTagRequired, getConstraints, getContentBasedTags, getForceSpacePreserving, getIntactTags, getOutOfTurnTags, getParagraphTags, getPreformatTags, getShortcuts, getTagsAggregationEnabled, getTranslatableAttributes, getTranslatableTagAttributes, handleXMLTag, resolveEntity, setClosingTagRequired, setForceSpacePreserving, setTagsAggregationEnabled, validateContentBasedTag, validateParagraphTag, validatePreformatTag, validateTranslatableTag, validateTranslatableTagAttribute
-
Constructor Details
-
SchematronDialect
public SchematronDialect()
-
-
Method Details
-
validateIntactTag
Description copied from class:DefaultXMLDialectFor a given tag, return whether the content of this tag should be translated, depending on the content of one attribute and the presence or absence of other attributes. For instance, in the ResX filter, tags should not be translated when they contain the attribute "type", or when the attribute "name" starts with ">";- Specified by:
validateIntactTagin interfaceXMLDialect- Overrides:
validateIntactTagin classDefaultXMLDialect- Parameters:
tag- The tag that could be translatedatts- The list of the tag attributes- Returns:
trueorfalse
-