uk.org.ogsadai.common.properties
Interface PropertyCallback

All Known Implementing Classes:
ActivityFactoryImpl, MetaDataExtractor, StatusOfDataServices

public interface PropertyCallback

A callback class for objects that provide values for Property objects.

Author:
the OGSA-DAI team.

Method Summary
 java.lang.Object getValue(javax.xml.namespace.QName name)
          Return the value of the property with the given name.
 void setSecurityContext(SecurityContext sec)
          Set a security context to be used if authorisation needs to be done when get/setting the value.
 void setValue(javax.xml.namespace.QName name, java.lang.Object value)
          Set the value of the property with the given name.
 

Method Detail

getValue

public java.lang.Object getValue(javax.xml.namespace.QName name)
                          throws PropertyValueException
Return the value of the property with the given name.

Parameters:
name - Property name.
Returns:
property value
Throws:
PropertyValueException - if a problem occurs.

setValue

public void setValue(javax.xml.namespace.QName name,
                     java.lang.Object value)
              throws PropertyImmutableException,
                     PropertyValueException
Set the value of the property with the given name.

Parameters:
name - Property name.
value - Property value.
Throws:
PropertyImmutableException - if the property is immutable and so cannot be updated.
PropertyValueException - if a problem occurs.

setSecurityContext

public void setSecurityContext(SecurityContext sec)
Set a security context to be used if authorisation needs to be done when get/setting the value.

Parameters:
sec - Security context.