public interface FeatureSet extends Dumpable
Modifier and Type | Method and Description |
---|---|
void |
dump(PrintWriter output,
int pad,
String title)
Dumps the FeatureSet in textual form.
|
float |
getFloat(String name)
Convenience method that returns the named feature as a float.
|
int |
getInt(String name)
Convenience method that returns the named feature as an int.
|
Object |
getObject(String name)
Returns the named feature as an object.
|
String |
getString(String name)
Convenience method that returns the named feature as a string.
|
boolean |
isPresent(String name)
Determines if the given feature is present.
|
void |
remove(String name)
Removes the named feature from this set of features.
|
void |
setFloat(String name,
float value)
Convenience method that sets the named feature as a float
|
void |
setInt(String name,
int value)
Convenience method that sets the named feature as an int.
|
void |
setObject(String name,
Object value)
Sets the named feature .
|
void |
setString(String name,
String value)
Convenience method that sets the named feature as a String.
|
boolean isPresent(String name)
name
- the name of the feature of interestvoid remove(String name)
name
- the name of the feature of interestString getString(String name)
name
- the name of the featureClassCastException
- if the associated value is not a
Stringint getInt(String name)
name
- the name of the featureClassCastException
- if the associated value is not an
intfloat getFloat(String name)
name
- the name of the featureClassCastException
- if the associated value is not a
float.Object getObject(String name)
name
- the name of the featurevoid setInt(String name, int value)
name
- the name of the featurevalue
- the value of the featurevoid setFloat(String name, float value)
name
- the name of the featurevalue
- the value of the featurevoid setString(String name, String value)
name
- the name of the featurevalue
- the value of the featurevoid setObject(String name, Object value)
name
- the name of the featurevalue
- the value of the featurevoid dump(PrintWriter output, int pad, String title)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses