Class AndroidDialect

java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.android.AndroidDialect
All Implemented Interfaces:
XMLDialect

@NullMarked public class AndroidDialect extends DefaultXMLDialect
XML dialect declaration for Android filter.
  • Field Details

    • ROOT_PATTERN

      public static final Pattern ROOT_PATTERN
  • Constructor Details

    • AndroidDialect

      public AndroidDialect()
  • Method Details

    • validateIntactTag

      public Boolean validateIntactTag(String tag, @Nullable 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 "&gt";
      Specified by:
      validateIntactTag in interface XMLDialect
      Overrides:
      validateIntactTag in class DefaultXMLDialect
      Parameters:
      tag - The tag that could be translated
      atts - The list of the tag attributes
      Returns:
      true or false