Class AndroidDialect

  • All Implemented Interfaces:
    XMLDialect

    public class AndroidDialect
    extends DefaultXMLDialect
    XML dialect declaration for Android filter.
    • Field Detail

      • ROOT_PATTERN

        public static final java.util.regex.Pattern ROOT_PATTERN
    • Constructor Detail

      • AndroidDialect

        public AndroidDialect()
    • 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 "&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