ch.javasoft.xml.config
Enum URLConfigParser.XmlElement
java.lang.Object
java.lang.Enum<URLConfigParser.XmlElement>
ch.javasoft.xml.config.URLConfigParser.XmlElement
- All Implemented Interfaces:
- XmlNode, Serializable, Comparable<URLConfigParser.XmlElement>
- Enclosing class:
- URLConfigParser
public static enum URLConfigParser.XmlElement
- extends Enum<URLConfigParser.XmlElement>
- implements XmlNode
|
Enum Constant Summary |
url
|
url
public static final URLConfigParser.XmlElement url
values
public static URLConfigParser.XmlElement[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (URLConfigParser.XmlElement c : URLConfigParser.XmlElement.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static URLConfigParser.XmlElement valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getXmlName
public String getXmlName()
- Description copied from interface:
XmlNode
- The xml version of an attribute or element name. Constants cannot be
java keywords, and special characters are not supported. They are
usually encoded with underscores for enum constants. When the xml
name is returned, the underscores are replaced by the real characters.
Samples:
enum name: name, const_, log_level, sys_prop
xml name: name, const, log-level, sys-prop
- Specified by:
getXmlName in interface XmlNode