Package org.omegat.filters3.xml.resx
Class ResXDialect
java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.resx.ResXDialect
- All Implemented Interfaces:
XMLDialect
This class specifies the ResX 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) In the ResX filter, content should be translated in the following condition: It should be contained in <data>.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
-
ResXDialect
public ResXDialect()
-
-
Method Details
-
validateIntactTag
In the ResX filter, content should be translated in the following condition: It should be contained in <data>. If there is the attribute "type" or "mimetype", the content shouldn't be translated. If there is the attribute "name", the content shouldn't be translated if the content of "name" starts with > or ends with "FieldName"- Specified by:
validateIntactTagin interfaceXMLDialect- Overrides:
validateIntactTagin classDefaultXMLDialect- Parameters:
tag- An XML tagatts- The attributes associated with the tag- Returns:
falseif the content of this tag should be translated,trueotherwise
-