ch.javasoft.xml.config
Enum XmlConfig.XmlElement

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

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

Predefined and recognized xml elements

In xml, the element names equal the enum constant names.


Enum Constant Summary
application
           
arg
           
config
           
line
           
logging
           
property
           
referable
           
usage
           
 
Method Summary
 String getXmlName()
          The element name in xml, same as enum constant name
static XmlConfig.XmlElement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlConfig.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

application

public static final XmlConfig.XmlElement application

referable

public static final XmlConfig.XmlElement referable

config

public static final XmlConfig.XmlElement config

arg

public static final XmlConfig.XmlElement arg

logging

public static final XmlConfig.XmlElement logging

property

public static final XmlConfig.XmlElement property

usage

public static final XmlConfig.XmlElement usage

line

public static final XmlConfig.XmlElement line
Method Detail

values

public static XmlConfig.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 (XmlConfig.XmlElement c : XmlConfig.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 XmlConfig.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()
The element name in xml, same as enum constant name

Specified by:
getXmlName in interface XmlNode