Class PropertiesDialect

java.lang.Object
org.omegat.filters3.xml.DefaultXMLDialect
org.omegat.filters3.xml.properties.PropertiesDialect
All Implemented Interfaces:
XMLDialect

@NullMarked public class PropertiesDialect extends DefaultXMLDialect
This class specifies the Java Properties XML Dialect.
  • Field Details

    • PROPERTIES_ROOT_TAG

      public static final Pattern PROPERTIES_ROOT_TAG
  • Constructor Details

    • PropertiesDialect

      public PropertiesDialect()
  • 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