com.mcdermottroe.exemplar.input.dtd
Enum ParameterEntityType

java.lang.Object
  extended by java.lang.Enum<ParameterEntityType>
      extended by com.mcdermottroe.exemplar.input.dtd.ParameterEntityType
All Implemented Interfaces:
Serializable, Comparable<ParameterEntityType>

public enum ParameterEntityType
extends Enum<ParameterEntityType>

Enumerated type for the two types of parameter entity.

Since:
0.2

Enum Constant Summary
URI
          A parameter entity referencing its content via a URI.
VALUE
          A parameter entity having an immediate value.
 
Method Summary
static ParameterEntityType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParameterEntityType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VALUE

public static final ParameterEntityType VALUE
A parameter entity having an immediate value.


URI

public static final ParameterEntityType URI
A parameter entity referencing its content via a URI.

Method Detail

values

public static final ParameterEntityType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ParameterEntityType c : ParameterEntityType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ParameterEntityType 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