edu.cmu.sphinx.tools.gui.util
Class ConfigurableProperty

java.lang.Object
  extended by edu.cmu.sphinx.tools.gui.util.ConfigurableProperty

public class ConfigurableProperty
extends java.lang.Object

This class holds information about a Configurable property that is owned by a Configurable class. The information includes name of property, default value, and description

Author:
Ariani
See Also:
ConfigurableComponent

Constructor Summary
ConfigurableProperty(java.lang.String name, java.lang.String defaultval, PropertyType type, java.lang.String desc, java.lang.String original)
          Creates a new instance of ConfigurableProperty
ConfigurableProperty(java.lang.String name, java.lang.String defaultval, PropertyType type, java.lang.String desc, java.lang.String original, java.lang.String class_type)
          Creates a new instance of ConfigurableProperty, and this property needs a certain class type as value
 
Method Summary
 java.lang.String getClassType()
           
 java.lang.String getDefault()
           
 java.lang.String getDesc()
           
 java.lang.String getName()
           
 java.lang.String getOriginalName()
           
 PropertyType getType()
           
 java.lang.String toString()
          This method is used to desribe the values of the ConfigurableProperty It is used mainly for debugging and testing purposes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableProperty

public ConfigurableProperty(java.lang.String name,
                            java.lang.String defaultval,
                            PropertyType type,
                            java.lang.String desc,
                            java.lang.String original)
Creates a new instance of ConfigurableProperty

Parameters:
name - Name of property
defaultval - Default value
type - Property type
desc - Description about this property
original - Original name of property in the source code

ConfigurableProperty

public ConfigurableProperty(java.lang.String name,
                            java.lang.String defaultval,
                            PropertyType type,
                            java.lang.String desc,
                            java.lang.String original,
                            java.lang.String class_type)
Creates a new instance of ConfigurableProperty, and this property needs a certain class type as value

Parameters:
name - Name of property
defaultval - Default value
type - Property type
desc - Description about this property
original - Original name of property in the source code
class_type - The type of class for this property
Method Detail

toString

public java.lang.String toString()
This method is used to desribe the values of the ConfigurableProperty It is used mainly for debugging and testing purposes

Overrides:
toString in class java.lang.Object
Returns:
Description of this property

getName

public java.lang.String getName()
Returns:
Property name

getDefault

public java.lang.String getDefault()
Returns:
Default value of property

getType

public PropertyType getType()
Returns:
Type of property

getClassType

public java.lang.String getClassType()
Returns:
Type of class that's required for this property

getOriginalName

public java.lang.String getOriginalName()
Returns:
original property name inside the source code

getDesc

public java.lang.String getDesc()
Returns:
Description of property