org.base.apps.beans
Class Thing
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Thing
public Thing(Object bean)
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
Copyright 2011, Blue Agate Software Entity (BASE)