ch.javasoft.xml.config
Enum ConstConfigParser.XmlAttribute
java.lang.Object
java.lang.Enum<ConstConfigParser.XmlAttribute>
ch.javasoft.xml.config.ConstConfigParser.XmlAttribute
- All Implemented Interfaces:
- XmlNode, Serializable, Comparable<ConstConfigParser.XmlAttribute>
- Enclosing class:
- ConstConfigParser
public static enum ConstConfigParser.XmlAttribute
- extends Enum<ConstConfigParser.XmlAttribute>
- implements XmlNode
type
public static final ConstConfigParser.XmlAttribute type
value
public static final ConstConfigParser.XmlAttribute value
values
public static ConstConfigParser.XmlAttribute[] 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 (ConstConfigParser.XmlAttribute c : ConstConfigParser.XmlAttribute.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConstConfigParser.XmlAttribute 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