com.webmethods.caf.faces.data.task.impl
Class TaskData

java.lang.Object
  extended by com.webmethods.caf.faces.data.task.impl.TaskData
All Implemented Interfaces:
IContentProvider, ITaskData, Serializable

public class TaskData
extends Object
implements ITaskData, IContentProvider

TaskData is the concrete implementation of ITaskData and IContentProvider.

See Also:
Serialized Form

Field Summary
protected  List m_propertyKeyList
           
 
Constructor Summary
TaskData()
           
 
Method Summary
static PropertyDescriptor[] getPropertyDescriptors(Class instanceClass)
          Returns property descriptor list for a given object class selected object instance.
 Object[] getPropertyKeys()
          Returns list of properties supported by this content provider.
 Class getType(Object propertyKey)
          Returns java type of the given property
 Object getValue(Object propertyKey)
          Returns value of the given property
 boolean hasProperty(Object propertyKey)
          Checks if the given property is supported by this content provider
 
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
 

Field Detail

m_propertyKeyList

protected List m_propertyKeyList
Constructor Detail

TaskData

public TaskData()
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
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 propertyKey)
              throws PropertyNotFoundException
Returns java type of the given property

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

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException,
                       PropertyNotFoundException
Returns value of the given property

Specified by:
getValue in interface IContentProvider
Parameters:
propertyKey - 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 propertyKey)
Checks if the given property is supported by this content provider

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

getPropertyDescriptors

public static PropertyDescriptor[] getPropertyDescriptors(Class instanceClass)
Returns property descriptor list for a given object class selected object instance.

Parameters:
instanceClass -
Returns:
PropertyDescriptor[] for passed in class