Class XMLSpreadsheetDialect
- java.lang.Object
-
- org.omegat.filters3.xml.DefaultXMLDialect
-
- org.omegat.filters3.xml.xmlspreadsheet.XMLSpreadsheetDialect
-
- All Implemented Interfaces:
XMLDialect
public class XMLSpreadsheetDialect extends DefaultXMLDialect
This class specifies the XML Spreadsheet Dialect.
-
-
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 XMLSpreadsheetDialect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
validateIntactTag(java.lang.String tag, Attributes atts)
In the XML Spreadsheet filter, content should not be translated in the following condition: When the tag is <Data> with the attribute ss:Type="Number".-
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)
In the XML Spreadsheet filter, content should not be translated in the following condition: When the tag is <Data> with the attribute ss:Type="Number".- Specified by:
validateIntactTag
in interfaceXMLDialect
- Overrides:
validateIntactTag
in classDefaultXMLDialect
- Parameters:
tag
- An XML tagatts
- The attributes associated with the tag- Returns:
false
if the content of this tag should be translated,true
otherwise
-
-