edu.cmu.sphinx.util.props
Enum PropertyType

java.lang.Object
  extended by java.lang.Enum<PropertyType>
      extended by edu.cmu.sphinx.util.props.PropertyType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PropertyType>

public enum PropertyType
extends java.lang.Enum<PropertyType>

An enum type that defines the possible property types.


Enum Constant Summary
BOOLEAN
           
COMPONENT
           
COMPONENT_LIST
           
DOUBLE
           
FLOAT
           
INT
           
RESOURCE
          A Resource type.
STRING
           
STRING_LIST
           
 
Method Summary
 boolean isValid(java.lang.Object obj)
          Determines if the given object can be converted to this type.
 java.lang.String toString()
           
static PropertyType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropertyType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INT

public static final PropertyType INT

BOOLEAN

public static final PropertyType BOOLEAN

FLOAT

public static final PropertyType FLOAT

DOUBLE

public static final PropertyType DOUBLE

COMPONENT

public static final PropertyType COMPONENT

COMPONENT_LIST

public static final PropertyType COMPONENT_LIST

STRING

public static final PropertyType STRING

RESOURCE

public static final PropertyType RESOURCE
A Resource type. Resources are in one of the following forms:


STRING_LIST

public static final PropertyType STRING_LIST
Method Detail

values

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

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

valueOf

public static PropertyType 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
java.lang.NullPointerException - if the argument is null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<PropertyType>

isValid

public boolean isValid(java.lang.Object obj)
Determines if the given object can be converted to this type.

Parameters:
obj - the object to verify
Returns:
true if the object can be converted to an object of this type.