net.sf.cssbean
Enum Weight

java.lang.Object
  extended by java.lang.Enum<Weight>
      extended by net.sf.cssbean.Weight
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Weight>, Value

public enum Weight
extends java.lang.Enum<Weight>
implements Value

Author:
Mike Heath

Enum Constant Summary
BOLD
           
BOLDER
           
LIGHTER
           
NORMAL
           
WEIGHT_100
           
WEIGHT_200
           
WEIGHT_300
           
WEIGHT_400
           
WEIGHT_500
           
WEIGHT_600
           
WEIGHT_700
           
WEIGHT_800
           
WEIGHT_900
           
 
Method Summary
 java.lang.String getValue()
           
static Weight valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Weight[] 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

NORMAL

public static final Weight NORMAL

BOLD

public static final Weight BOLD

BOLDER

public static final Weight BOLDER

LIGHTER

public static final Weight LIGHTER

WEIGHT_100

public static final Weight WEIGHT_100

WEIGHT_200

public static final Weight WEIGHT_200

WEIGHT_300

public static final Weight WEIGHT_300

WEIGHT_400

public static final Weight WEIGHT_400

WEIGHT_500

public static final Weight WEIGHT_500

WEIGHT_600

public static final Weight WEIGHT_600

WEIGHT_700

public static final Weight WEIGHT_700

WEIGHT_800

public static final Weight WEIGHT_800

WEIGHT_900

public static final Weight WEIGHT_900
Method Detail

values

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

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

valueOf

public static Weight valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getValue

public java.lang.String getValue()
Specified by:
getValue in interface Value


Copyright © 2005 Mike Heath. All Rights Reserved.