|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.client.Configurable
public abstract class Configurable
Provides the ability to configure properties about an object.
Field Summary | |
---|---|
static java.lang.String |
PROP_CONFTYPE
"type" |
Constructor Summary | |
---|---|
Configurable(java.lang.String name)
Define new configurable object |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the configurable object name |
java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
getProperties()
Gets the property map |
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the property identified by name or null if no property exists. |
java.util.Vector<java.lang.String> |
getPropertyNames()
Returns an Vector of String objects containing the names of the properties |
void |
setDefaultProperty(java.lang.String name,
java.lang.Object value)
Sets the property name to have the value provided in value; do nothing when the property already has a value set |
void |
setName(java.lang.String name)
Sets the configurable object name |
void |
setProperties(java.util.LinkedHashMap<java.lang.String,java.lang.Object> properties)
Sets the property map |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the property name to have the value provided in value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_CONFTYPE
Constructor Detail |
---|
public Configurable(java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Vector<java.lang.String> getPropertyNames()
public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getProperties()
public void setProperties(java.util.LinkedHashMap<java.lang.String,java.lang.Object> properties)
public java.lang.String getProperty(java.lang.String name)
name
- the name of the property to retrieve.public void setProperty(java.lang.String name, java.lang.Object value)
name
- the name of the property to set.value
- the value to set for the property.public void setDefaultProperty(java.lang.String name, java.lang.Object value)
name
- the name of the property to set.value
- the value to set for the property.
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |