Package org.omegat.filters3.xml.android
Class AndroidDialect
- java.lang.Object
-
- org.omegat.filters3.xml.DefaultXMLDialect
-
- org.omegat.filters3.xml.android.AndroidDialect
-
- All Implemented Interfaces:
XMLDialect
public class AndroidDialect extends DefaultXMLDialect
XML dialect declaration for Android filter.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.regex.Pattern
ROOT_PATTERN
-
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 Constructor Description AndroidDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
validateIntactTag(java.lang.String tag, 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
-
-
-
-
Method Detail
-
validateIntactTag
public java.lang.Boolean validateIntactTag(java.lang.String tag, Attributes atts)
Description copied from class:DefaultXMLDialect
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. 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:
validateIntactTag
in interfaceXMLDialect
- Overrides:
validateIntactTag
in classDefaultXMLDialect
- Parameters:
tag
- The tag that could be translatedatts
- The list of the tag attributes- Returns:
true
orfalse
-
-