ch.javasoft.xml.config
Enum StreamConfigParser.XmlAttribute
java.lang.Object
java.lang.Enum<StreamConfigParser.XmlAttribute>
ch.javasoft.xml.config.StreamConfigParser.XmlAttribute
- All Implemented Interfaces:
- XmlNode, Serializable, Comparable<StreamConfigParser.XmlAttribute>
- Enclosing class:
- StreamConfigParser
public static enum StreamConfigParser.XmlAttribute
- extends Enum<StreamConfigParser.XmlAttribute>
- implements XmlNode
name
public static final StreamConfigParser.XmlAttribute name
type
public static final StreamConfigParser.XmlAttribute type
value
public static final StreamConfigParser.XmlAttribute value
level
public static final StreamConfigParser.XmlAttribute level
values
public static StreamConfigParser.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 (StreamConfigParser.XmlAttribute c : StreamConfigParser.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 StreamConfigParser.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