|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.util.props.RawPropertyData
public class RawPropertyData
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. |
|
RawPropertyData(java.lang.String name,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> properties)
Creates a raw property data item, using a given property map. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String propName,
java.util.List<java.lang.String> propValue)
Adds a new property with a List<String> value. |
void |
add(java.lang.String propName,
java.lang.String propValue)
Adds a new property with a String value. |
boolean |
contains(java.lang.String propName)
Determines if the map already contains an entry for a property. |
RawPropertyData |
flatten(ConfigurationManager cm)
Returns a copy of this property data instance with all ${}-fields resolved. |
java.lang.String |
getClassName()
Returns the className. |
java.lang.String |
getGlobalProperty(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> globalProperties)
Lookup a global symbol with a given name (and resolves |
java.lang.String |
getName()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
|
void |
remove(java.lang.String propName)
Removes an existing 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 |
|---|
public RawPropertyData(java.lang.String name,
java.lang.String className)
name - the name of the itemclassName - the class name of the item
public RawPropertyData(java.lang.String name,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> properties)
name - the name of the itemclassName - the class name of the itemproperties - existing property map to use| Method Detail |
|---|
public void add(java.lang.String propName,
java.lang.String propValue)
String value.
propName - the name of the propertypropValue - the value of the property
public void add(java.lang.String propName,
java.util.List<java.lang.String> propValue)
List<String> value.
propName - the name of the propertypropValue - the value of the propertypublic void remove(java.lang.String propName)
propName - the name of the propertypublic java.lang.String getClassName()
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public boolean contains(java.lang.String propName)
propName - the property of interest
public RawPropertyData flatten(ConfigurationManager cm)
public java.lang.String getGlobalProperty(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> globalProperties)
key - the name of the propertyglobalProperties -
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||