edu.cmu.sphinx.tools.gui
Class RawPropertyData

java.lang.Object
  extended by edu.cmu.sphinx.tools.gui.RawPropertyData

public class RawPropertyData
extends java.lang.Object

Holds the raw property data just as it has come in from the properties file.


Constructor Summary
RawPropertyData(java.lang.String name, java.lang.String className)
          Creates a raw property data item
 
Method Summary
 void add(java.lang.String propName, java.util.List propValue)
          Adds a new property
 void add(java.lang.String propName, java.lang.String propValue)
          Adds a new property
 void change(java.lang.String propName, java.util.List propValue)
          Change property value
 void change(java.lang.String propName, java.lang.String propValue)
          Change property value
 boolean contains(java.lang.String propName)
          Determines if the map already contains an entry for this property
 java.lang.String getClassName()
           
 java.lang.String getName()
           
 java.util.Map getProperties()
           
 void remove(java.lang.String propName)
          Remove property
 java.lang.String toString()
          Provide information stored inside this Object, used mainly for debugging / testing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RawPropertyData

public RawPropertyData(java.lang.String name,
                       java.lang.String className)
Creates a raw property data item

Parameters:
name - the name of the item
className - the class name of the item
Method Detail

add

public void add(java.lang.String propName,
                java.lang.String propValue)
Adds a new property

Parameters:
propName - the name of the property
propValue - the value of the property

add

public void add(java.lang.String propName,
                java.util.List propValue)
Adds a new property

Parameters:
propName - the name of the property
propValue - the value of the property

change

public void change(java.lang.String propName,
                   java.lang.String propValue)
Change property value

Parameters:
propName - the name of the property
propValue - the new value of the property

remove

public void remove(java.lang.String propName)
Remove property

Parameters:
propName - the name of the property

change

public void change(java.lang.String propName,
                   java.util.List propValue)
Change property value

Parameters:
propName - the name of the property
propValue - the new value of the property

getClassName

public java.lang.String getClassName()
Returns:
Returns the className.

getName

public java.lang.String getName()
Returns:
Returns the configuration name.

getProperties

public java.util.Map getProperties()
Returns:
Returns the properties.

toString

public java.lang.String toString()
Provide information stored inside this Object, used mainly for debugging / testing

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

contains

public boolean contains(java.lang.String propName)
Determines if the map already contains an entry for this property

Parameters:
propName - the property of interest
Returns:
true if the map already contains this property