ch.javasoft.xml.config
Enum XmlConfig.XmlAttribute

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

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

Predefined and recognized xml attributes.

In xml, the attribute names equal the enum constant names, only def is called "default" in xml (default cannot be a constant name in java).


Enum Constant Summary
def
           
name
           
ref
           
value
           
 
Method Summary
 String getXmlName()
          The attribute name in xml, same as enum constant name, but "default" for def
static XmlConfig.XmlAttribute valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XmlConfig.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

def

public static final XmlConfig.XmlAttribute def

name

public static final XmlConfig.XmlAttribute name

ref

public static final XmlConfig.XmlAttribute ref

value

public static final XmlConfig.XmlAttribute value
Method Detail

values

public static XmlConfig.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 (XmlConfig.XmlAttribute c : XmlConfig.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 XmlConfig.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()
The attribute name in xml, same as enum constant name, but "default" for def

Specified by:
getXmlName in interface XmlNode