ch.javasoft.xml.config
Enum FileConfigParser.XmlElement

java.lang.Object
  extended by java.lang.Enum<FileConfigParser.XmlElement>
      extended by ch.javasoft.xml.config.FileConfigParser.XmlElement
All Implemented Interfaces:
XmlNode, Serializable, Comparable<FileConfigParser.XmlElement>
Enclosing class:
FileConfigParser

public static enum FileConfigParser.XmlElement
extends Enum<FileConfigParser.XmlElement>
implements XmlNode


Enum Constant Summary
file
           
 
Method Summary
 String getXmlName()
          The xml version of an attribute or element name.
static FileConfigParser.XmlElement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileConfigParser.XmlElement[] 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

file

public static final FileConfigParser.XmlElement file
Method Detail

values

public static FileConfigParser.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 (FileConfigParser.XmlElement c : FileConfigParser.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 FileConfigParser.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