|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.Observable
|
+--uk.org.ogsadai.common.properties.Property
|
+--uk.org.ogsadai.common.properties.DynamicProperty
A property consisting of a name and a value - the value is not stored within this class. Rather requests for the value are forwarded to the class via a callback.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
protected PropertyCallback |
mPropertyCallback
Object to callback to for the value of the property |
| Fields inherited from class uk.org.ogsadai.common.properties.Property |
mName, mSecurityContext |
| Fields inherited from class java.util.Observable |
|
| Constructor Summary | |
DynamicProperty()
|
|
| Method Summary | |
static DynamicProperty |
createDynamicProperty(javax.xml.namespace.QName name,
java.lang.String callback)
Creates a dynamic resource property. |
PropertyCallback |
getCallback()
Return the property callback object. |
java.lang.Object |
getValue()
Return the property value. |
void |
setCallback(PropertyCallback callback)
Set the property callback object. |
void |
setSecurityContext(SecurityContext sec)
Set the security context for authorising property accessing and updating. |
void |
setValue(java.lang.Object object)
Set the property value. |
| 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 |
private static final java.lang.String COPYRIGHT_NOTICE
protected PropertyCallback mPropertyCallback
| Constructor Detail |
public DynamicProperty()
| Method Detail |
public PropertyCallback getCallback()
public void setCallback(PropertyCallback callback)
callback - The callback object.
public java.lang.Object getValue()
throws PropertyValueException
Property
getValue in class Propertynull if it has not
been set.
PropertyValueException - if an error occurs when obtaining the
value.
public void setValue(java.lang.Object object)
throws PropertyValueException
Property
setValue in class Propertyobject - Property value.
PropertyValueException - if an error occurs when setting the
value.public void setSecurityContext(SecurityContext sec)
Property
setSecurityContext in class Propertysec - Security context.
public static DynamicProperty createDynamicProperty(javax.xml.namespace.QName name,
java.lang.String callback)
throws DynamicPropertyCreationException
name - Qualified name of the resource property.callback - Name of callback class. This class must implement the
PropertyCallback class.
DynamicPropertyCreationException - if the callback class
cannot be loaded or found, an instance of this class cannot be
created or if the class does not implement the
PropertyCallback interface.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||