OBEROn SDK

com.oberon.client
Class Configurable

java.lang.Object
  extended by com.oberon.client.Configurable

public abstract class Configurable
extends java.lang.Object

Provides the ability to configure properties about an object.

Version:
5.0

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

PROP_CONFTYPE

public static final java.lang.String PROP_CONFTYPE
"type"

See Also:
Constant Field Values
Constructor Detail

Configurable

public Configurable(java.lang.String name)
Define new configurable object

Method Detail

getName

public java.lang.String getName()
Returns the configurable object name


setName

public void setName(java.lang.String name)
Sets the configurable object name


getPropertyNames

public java.util.Vector<java.lang.String> getPropertyNames()
Returns an Vector of String objects containing the names of the properties


getProperties

public java.util.LinkedHashMap<java.lang.String,java.lang.Object> getProperties()
Gets the property map


setProperties

public void setProperties(java.util.LinkedHashMap<java.lang.String,java.lang.Object> properties)
Sets the property map


getProperty

public java.lang.String getProperty(java.lang.String name)
Returns the value of the property identified by name or null if no property exists.

Parameters:
name - the name of the property to retrieve.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Sets the property name to have the value provided in value.

Parameters:
name - the name of the property to set.
value - the value to set for the property.

setDefaultProperty

public 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

Parameters:
name - the name of the property to set.
value - the value to set for the property.

OBEROn SDK

Copyright © 2008-2014 Mirko Solazzi. All Rights Reserved.