com.webmethods.caf.faces.data.ws.glue
Class GlueWSClientContentProvider.ParametersProvider

java.lang.Object
  extended by com.webmethods.caf.faces.data.ws.glue.GlueWSClientContentProvider.ParametersProvider
All Implemented Interfaces:
IContentProvider, IUpdateableContentProvider, Serializable
Enclosing class:
GlueWSClientContentProvider

public class GlueWSClientContentProvider.ParametersProvider
extends Object
implements Serializable, IUpdateableContentProvider

See Also:
Serialized Form

Constructor Summary
GlueWSClientContentProvider.ParametersProvider()
           
 
Method Summary
 Object[] getPropertyKeys()
          Returns list of properties supported by this content provider.
 Class getType(Object parameterName)
          Returns java type of the given property
 Object getValue(Object parameterName)
          Returns value of the given property
 boolean hasProperty(Object parameterName)
          Checks if the given property is supported by this content provider
 boolean isReadOnly(Object parameterName)
          Returns true if the given property is readonly.
 void setValue(Object parameterName, Object value)
          Sets new value of the given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
 

Constructor Detail

GlueWSClientContentProvider.ParametersProvider

public GlueWSClientContentProvider.ParametersProvider()
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
Description copied from interface: IContentProvider
Returns list of properties supported by this content provider. Can return Object[0], never null.

Specified by:
getPropertyKeys in interface IContentProvider
Returns:
array of property keys which is typically of type String or Integer

getType

public Class getType(Object parameterName)
              throws PropertyNotFoundException
Description copied from interface: IContentProvider
Returns java type of the given property

Specified by:
getType in interface IContentProvider
Parameters:
parameterName - the property key of type String or Integer
Returns:
property java Class
Throws:
PropertyNotFoundException - if property is not supported

getValue

public Object getValue(Object parameterName)
                throws EvaluationException,
                       PropertyNotFoundException
Description copied from interface: IContentProvider
Returns value of the given property

Specified by:
getValue in interface IContentProvider
Parameters:
parameterName - the property key of type String or Integer
Returns:
value of the property, can be null
Throws:
EvaluationException - if error during property evaluation
PropertyNotFoundException - if property is not supported

hasProperty

public boolean hasProperty(Object parameterName)
Description copied from interface: IContentProvider
Checks if the given property is supported by this content provider

Specified by:
hasProperty in interface IContentProvider
Parameters:
parameterName - property key of type String or Integer
Returns:
true if property is supported

isReadOnly

public boolean isReadOnly(Object parameterName)
                   throws EvaluationException,
                          PropertyNotFoundException
Description copied from interface: IUpdateableContentProvider

Returns true if the given property is readonly. If it is readonly, IUpdateableContentProvider.setValue(Object, Object) will definitely fail.

Specified by:
isReadOnly in interface IUpdateableContentProvider
Parameters:
parameterName - property key of type String or Integer
Returns:
true if the property is readonly
Throws:
EvaluationException
PropertyNotFoundException

setValue

public void setValue(Object parameterName,
                     Object value)
              throws EvaluationException,
                     PropertyNotFoundException
Description copied from interface: IUpdateableContentProvider

Sets new value of the given property

Specified by:
setValue in interface IUpdateableContentProvider
Parameters:
parameterName - property key of type String or Integer
value - new property value
Throws:
EvaluationException - if error happens during property assigment
PropertyNotFoundException - if property is not found