Class XMLSpreadsheetDialect

java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.xmlspreadsheet.XMLSpreadsheetDialect
All Implemented Interfaces:
XMLDialect

@NullMarked public class XMLSpreadsheetDialect extends DefaultXMLDialect
This class specifies the XML Spreadsheet Dialect.
  • Field Details

    • ROOT_PATTERN

      public static final Pattern ROOT_PATTERN
  • Constructor Details

    • XMLSpreadsheetDialect

      public XMLSpreadsheetDialect()
  • Method Details

    • validateIntactTag

      public Boolean validateIntactTag(String tag, @Nullable 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 interface XMLDialect
      Overrides:
      validateIntactTag in class DefaultXMLDialect
      Parameters:
      tag - An XML tag
      atts - The attributes associated with the tag
      Returns:
      false if the content of this tag should be translated, true otherwise