Class Link.LocaleSpec

java.lang.Object
org.apache.tools.ant.taskdefs.modules.Link.LocaleSpec
Enclosing class:
Link

public class Link.LocaleSpec extends Object
Child element that contains a pattern matching Java locales.
  • Constructor Details

    • LocaleSpec

      public LocaleSpec()
      Creates an unconfigured element.
    • LocaleSpec

      public LocaleSpec(String name)
      Creates an element with the given name pattern.
      Parameters:
      name - pattern of locale names to match
  • Method Details

    • getName

      public String getName()
      Attribute containing a pattern which matches Java locale names. May be an explicit Java locale, or may contain an asterisk (*) for wildcard matching.
      Returns:
      this element's locale name pattern
    • setName

      public void setName(String name)
      Sets attribute containing a pattern which matches Java locale names. May be an explicit Java locale, or may contain an asterisk (*) for wildcard matching.
      Parameters:
      name - new locale name or pattern matching locale names
    • validate

      public void validate()
      Verifies this element's state.
      Throws:
      BuildException - if name is not set