com.sun.speech.freetts
public interface FeatureSet extends Dumpable
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintWriter output,
int pad,
java.lang.String title)
Dumps the FeatureSet in textual form.
|
float |
getFloat(java.lang.String name)
Convenience method that returns the named feature as a float.
|
int |
getInt(java.lang.String name)
Convenience method that returns the named feature as an int.
|
java.lang.Object |
getObject(java.lang.String name)
Returns the named feature as an object.
|
java.lang.String |
getString(java.lang.String name)
Convenience method that returns the named feature as a string.
|
boolean |
isPresent(java.lang.String name)
Determines if the given feature is present.
|
void |
remove(java.lang.String name)
Removes the named feature from this set of features.
|
void |
setFloat(java.lang.String name,
float value)
Convenience method that sets the named feature as a float
|
void |
setInt(java.lang.String name,
int value)
Convenience method that sets the named feature as an int.
|
void |
setObject(java.lang.String name,
java.lang.Object value)
Sets the named feature .
|
void |
setString(java.lang.String name,
java.lang.String value)
Convenience method that sets the named feature as a String.
|
boolean isPresent(java.lang.String name)
name
- the name of the feature of interestvoid remove(java.lang.String name)
name
- the name of the feature of interestjava.lang.String getString(java.lang.String name)
name
- the name of the featurejava.lang.ClassCastException
- if theassociated value is not a
Stringint getInt(java.lang.String name)
name
- the name of the featurejava.lang.ClassCastException
- if the associated value is not an
intfloat getFloat(java.lang.String name)
name
- the name of the featurejava.lang.ClassCastException
- if the associated value is not a
float.java.lang.Object getObject(java.lang.String name)
name
- the name of the featurevoid setInt(java.lang.String name, int value)
name
- the name of the featurevalue
- the value of the featurevoid setFloat(java.lang.String name, float value)
name
- the name of the featurevalue
- the value of the featurevoid setString(java.lang.String name, java.lang.String value)
name
- the name of the featurevalue
- the value of the featurevoid setObject(java.lang.String name, java.lang.Object value)
name
- the name of the featurevalue
- the value of the feature