|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A property sheet defines a collection of properties for a single component in the system.
Method Summary | |
void |
dump(java.io.PrintStream out)
Dumps this sheet to the given stream |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Gets the value associated with this name |
Configurable |
getComponent(java.lang.String name,
java.lang.Class type)
Gets a component associated with the given parameter name |
java.util.List |
getComponentList(java.lang.String name,
java.lang.Class type)
Gets a list of components associated with the given parameter name |
double |
getDouble(java.lang.String name,
double defaultValue)
Gets the value associated with this name |
float |
getFloat(java.lang.String name,
float defaultValue)
Gets the value associated with this name |
int |
getInt(java.lang.String name,
int defaultValue)
Gets the value associated with this name |
java.util.logging.Logger |
getLogger()
Returns a logger to use for this configurable component. |
java.lang.String[] |
getNames()
Retrieves the names of all the properties currently defined for this property sheet |
ConfigurationManager |
getPropertyManager()
Gets the owning property manager |
java.lang.Object |
getRaw(java.lang.String name)
Gets the raw value associated with this name |
java.lang.Object |
getRawNoReplacment(java.lang.String name)
Gets the raw value associated with this name, no global symbol replacement is performed. |
java.net.URL |
getResource(java.lang.String name)
Gets a resource associated with the given parameter name |
java.lang.String |
getString(java.lang.String name,
java.lang.String defaultValue)
Gets the value associated with this name |
java.util.List |
getStrings(java.lang.String name)
Gets the list of strings associated with this name |
void |
setFloat(java.lang.String name,
float value)
Sets the given property to the given name |
void |
setInt(java.lang.String name,
int value)
Sets the given property to the given name |
void |
setRaw(java.lang.String key,
java.lang.Object val)
Sets the raw property to the given name |
void |
setString(java.lang.String name,
java.lang.String value)
Sets the given property to the given name |
Method Detail |
public void setString(java.lang.String name, java.lang.String value) throws PropertyException
name
- the simple property namevalue
- the value for the property
PropertyException
public void setInt(java.lang.String name, int value) throws PropertyException
name
- the simple property namevalue
- the value for the property
PropertyException
public void setFloat(java.lang.String name, float value) throws PropertyException
name
- the simple property namevalue
- the value for the property
PropertyException
public java.lang.String getString(java.lang.String name, java.lang.String defaultValue) throws PropertyException
name
- the namedefaultValue
- the default value for the property
PropertyException
public void setRaw(java.lang.String key, java.lang.Object val) throws PropertyException
key
- the simple property nameval
- the value for the property
PropertyException
public int getInt(java.lang.String name, int defaultValue) throws PropertyException
name
- the namedefaultValue
- the default value for the property
PropertyException
- if the named property is not of this typepublic float getFloat(java.lang.String name, float defaultValue) throws PropertyException
name
- the namedefaultValue
- the default value
PropertyException
- if the named property is not of this typepublic double getDouble(java.lang.String name, double defaultValue) throws PropertyException
name
- the namedefaultValue
- the default value
PropertyException
- if the named property is not of this typepublic boolean getBoolean(java.lang.String name, boolean defaultValue) throws PropertyException
name
- the namedefaultValue
- the default value
PropertyException
- if the named property is not of this typepublic java.net.URL getResource(java.lang.String name) throws PropertyException
name
- the parameter name
PropertyException
- if the resource cannot be foundpublic Configurable getComponent(java.lang.String name, java.lang.Class type) throws PropertyException
name
- the parameter nametype
- the desired component type
PropertyException
- if the component does not exist or is of the wrong type.public java.util.List getComponentList(java.lang.String name, java.lang.Class type) throws PropertyException
name
- the parameter nametype
- the desired component type
PropertyException
- if the component does not exist or is of the wrong type.public java.util.List getStrings(java.lang.String name) throws PropertyException
name
- the name
PropertyException
- if the named property is not of this typepublic java.lang.String[] getNames()
public java.lang.Object getRaw(java.lang.String name) throws PropertyException
name
- the name
PropertyException
public java.lang.Object getRawNoReplacment(java.lang.String name)
name
- the name
public ConfigurationManager getPropertyManager() throws PropertyException
PropertyException
public java.util.logging.Logger getLogger() throws PropertyException
PropertyException
- if an error occurspublic void dump(java.io.PrintStream out)
out
- the print stream to dump the sheet on
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |