org.base.apps.beans
Class Thing

java.lang.Object
  extended by org.base.apps.beans.Thing
All Implemented Interfaces:
Mutable<Object>

public class Thing
extends Object
implements Mutable<Object>

Represents an instance of something, with mutable bound properties, and acts as an object container (to hold null values, for example).

Author:
Kevan Simpson

Constructor Summary
Thing(Object bean)
           
 
Method Summary
 BoundProperty addProperty(String name)
           
protected  Object getBean()
           
protected  Map<String,BoundProperty> getProperties()
           
 BoundProperty getProperty(String name)
           
 Object getValue()
          Returns the object's Mutable value.
 BoundProperty removeProperty(String name)
           
protected  void setBean(Object bean)
           
protected  void setProperties(Map<String,BoundProperty> properties)
           
 void setValue(Object val)
          Sets the object's Mutable value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Thing

public Thing(Object bean)
Method Detail

getValue

public Object getValue()
Description copied from interface: Mutable
Returns the object's Mutable value.

Specified by:
getValue in interface Mutable<Object>
Returns:
the object's Mutable value.
See Also:
Mutable.getValue()

setValue

public void setValue(Object val)
Description copied from interface: Mutable
Sets the object's Mutable value.

Specified by:
setValue in interface Mutable<Object>
Parameters:
val - The value to set.
See Also:
Mutable.setValue(java.lang.Object)

addProperty

public BoundProperty addProperty(String name)

getProperty

public BoundProperty getProperty(String name)

removeProperty

public BoundProperty removeProperty(String name)

getBean

protected Object getBean()
Returns:
the bean

getProperties

protected Map<String,BoundProperty> getProperties()
Returns:
the properties

setBean

protected void setBean(Object bean)
Parameters:
bean - the bean to set

setProperties

protected void setProperties(Map<String,BoundProperty> properties)
Parameters:
properties - the properties to set

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)