uk.org.ogsadai.common.properties
Class DynamicProperty

java.lang.Object
  |
  +--java.util.Observable
        |
        +--uk.org.ogsadai.common.properties.Property
              |
              +--uk.org.ogsadai.common.properties.DynamicProperty

public class DynamicProperty
extends Property


Field Summary
protected  PropertyCallback mPropertyCallback
           
 
Fields inherited from class uk.org.ogsadai.common.properties.Property
mName, mSecurityContext, mValue
 
Constructor Summary
DynamicProperty()
           
 
Method Summary
 PropertyCallback getCallback()
           
 java.lang.Object getValue()
           
 void setCallback(PropertyCallback callback)
           
 void setSecurityContext(SecurityContext sec)
          Sets the security context in the PropertyCallback object.
 void setValue(java.lang.Object object)
          Sets the value in the PropertyCallback object.
 
Methods inherited from class uk.org.ogsadai.common.properties.Property
getName, setName
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPropertyCallback

protected PropertyCallback mPropertyCallback
Constructor Detail

DynamicProperty

public DynamicProperty()
Method Detail

getCallback

public PropertyCallback getCallback()
Returns:
The PropertyCallback object associated with this DynamicProperty. Null if it has not been set

setCallback

public void setCallback(PropertyCallback callback)
Parameters:
callback - The PropertyCallback object to be associated with this DynamicProperty

getValue

public java.lang.Object getValue()
Overrides:
getValue in class Property
Returns:
the value for the property, retrieved from the PropertyCallback object Null if the PropertyCallback object has not been set.

setValue

public void setValue(java.lang.Object object)
Sets the value in the PropertyCallback object.

Overrides:
setValue in class Property
Parameters:
object - The value for the property

setSecurityContext

public void setSecurityContext(SecurityContext sec)
Sets the security context in the PropertyCallback object.

Overrides:
setSecurityContext in class Property
Parameters:
sec - The security context