|
|||||||||||
| 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
Abstract class representing a property - a qualified name and a value.
The notion of a security context is supported in case accessing the value requires authorisation of some kind.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
protected javax.xml.namespace.QName |
mName
Property name |
protected SecurityContext |
mSecurityContext
Security context for property access authorisation |
| Fields inherited from class java.util.Observable |
|
| Constructor Summary | |
Property()
|
|
| Method Summary | |
javax.xml.namespace.QName |
getName()
Return the name of the property. |
abstract java.lang.Object |
getValue()
Return the property value. |
void |
setName(javax.xml.namespace.QName name)
Set the property name. |
void |
setSecurityContext(SecurityContext sec)
Set the security context for authorising property accessing and updating. |
abstract void |
setValue(java.lang.Object object)
Set the property value. |
| 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 javax.xml.namespace.QName mName
protected SecurityContext mSecurityContext
| Constructor Detail |
public Property()
| Method Detail |
public javax.xml.namespace.QName getName()
public abstract java.lang.Object getValue()
throws PropertyValueException
null if it has not
been set.
PropertyValueException - if an error occurs when obtaining the
value.public void setName(javax.xml.namespace.QName name)
name - Property name.
public abstract void setValue(java.lang.Object object)
throws PropertyImmutableException,
PropertyValueException
object - Property value.
PropertyValueException - if an error occurs when setting the
value.
PropertyImmutableException - if the property is immutable and
so cannot be updated.public void setSecurityContext(SecurityContext sec)
sec - Security context.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||