dk.brics.servletvalidator.balancing.pimages
Enum ParenthesisType

java.lang.Object
  extended by java.lang.Enum<ParenthesisType>
      extended by dk.brics.servletvalidator.balancing.pimages.ParenthesisType
All Implemented Interfaces:
Serializable, Comparable<ParenthesisType>

public enum ParenthesisType
extends Enum<ParenthesisType>

The two types of parenthesis in the system, namely left and right parenthesis are enumerated by this enum. Many classes are used to represent parenthesis throughout the system and they can declare their parenthesistype using the ParenthesisTypeInfo interface


Enum Constant Summary
LEFT
           
RIGHT
           
 
Method Summary
static ParenthesisType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParenthesisType[] 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

LEFT

public static final ParenthesisType LEFT

RIGHT

public static final ParenthesisType RIGHT
Method Detail

valueOf

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

values

public static final ParenthesisType[] 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(ParenthesisType c : ParenthesisType.values())
        System.out.println(c);

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


Copyright © 2008 Mathias Schwarz.