Class TaskData

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

public class TaskData extends Object implements ITaskData, ITaskData, IContentProvider
TaskData is the concrete implementation of ITaskData and IContentProvider. NOTE: implements com.webmethods.caf.faces.data.task.ITaskData only for backward compatibility for already existing code
See Also:
  • Field Details

    • m_propertyKeyList

      protected List<String> m_propertyKeyList
  • Constructor Details

    • TaskData

      public TaskData()
  • Method Details

    • 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 ELException, 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:
      PropertyNotFoundException - if property is not supported
      ELException
    • 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
    • getPropertyKeyList

      protected List<String> getPropertyKeyList()
    • 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