Class LanguageMap


  • public class LanguageMap
    extends Object
    Stores the data for an SRX <languagemap> map element
    • Field Detail

      • pattern

        protected String pattern
        The pattern of this language map.
      • ruleName

        protected String ruleName
        The name of this language map.
    • Constructor Detail

      • LanguageMap

        public LanguageMap()
        Creates an empty LanguageMap object.
      • LanguageMap

        public LanguageMap​(String pattern,
                           String ruleName)
        Creates a LanguageMap object with a given pattern and a given name.
        Parameters:
        pattern - the pattern for the new language map.
        ruleName - the name of the new language map.
    • Method Detail

      • getPattern

        public String getPattern()
        Gets the pattern associated to this language map.
        Returns:
        the pattern associated to this language map.
      • getRuleName

        public String getRuleName()
        Gets the name of this language map.
        Returns:
        the name of this languag emap.