ch.javasoft.xml.config
Enum ConstConfigParser.XmlAttribute

java.lang.Object
  extended by java.lang.Enum<ConstConfigParser.XmlAttribute>
      extended by 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


Enum Constant Summary
type
           
value
           
 
Method Summary
 String getXmlName()
          The xml version of an attribute or element name.
static ConstConfigParser.XmlAttribute valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConstConfigParser.XmlAttribute[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

type

public static final ConstConfigParser.XmlAttribute type

value

public static final ConstConfigParser.XmlAttribute value
Method Detail

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