Class Link.LocaleSpec
java.lang.Object
org.apache.tools.ant.taskdefs.modules.Link.LocaleSpec
- Enclosing class:
- Link
Child element that contains a pattern matching Java locales.
-
Constructor Summary
ConstructorDescriptionCreates an unconfigured element.LocaleSpec
(String name) Creates an element with the given name pattern. -
Method Summary
-
Constructor Details
-
LocaleSpec
public LocaleSpec()Creates an unconfigured element. -
LocaleSpec
Creates an element with the given name pattern.- Parameters:
name
- pattern of locale names to match
-
-
Method Details
-
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
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
-