com.webmethods.caf.faces.data.csp
Class CSPContentDefinition

java.lang.Object
  extended by com.webmethods.caf.faces.data.csp.CSPContentDefinition
All Implemented Interfaces:
IContentProvider

public class CSPContentDefinition
extends Object
implements IContentProvider

This is a content provider which exposes index definitions based on a Content Definition id.


Constructor Summary
CSPContentDefinition(String contentDefinitionId)
           
 
Method Summary
 String getContentDefinitionId()
           
 CSPIndexDefinitionProvider getIndexDefinitionProvider()
           
 Object[] getPropertyKeys()
          Returns list of properties supported by this content provider.
 Class getType(Object contentDefinitionId)
          Returns java type of the given property
 Object getValue(Object indexId)
          Returns value of the given property
 boolean hasProperty(Object indexId)
          Checks if the given property is supported by this content provider
 void setContentDefinitionId(String contentDefinitionId)
           
 void setIndexDefinitionProvider(CSPIndexDefinitionProvider indexDefinitionProvider)
           
 
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

CSPContentDefinition

public CSPContentDefinition(String contentDefinitionId)
Method Detail

getContentDefinitionId

public String getContentDefinitionId()

setContentDefinitionId

public void setContentDefinitionId(String contentDefinitionId)

getIndexDefinitionProvider

public CSPIndexDefinitionProvider getIndexDefinitionProvider()

setIndexDefinitionProvider

public void setIndexDefinitionProvider(CSPIndexDefinitionProvider indexDefinitionProvider)

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 contentDefinitionId)
              throws PropertyNotFoundException
Description copied from interface: IContentProvider
Returns java type of the given property

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

getValue

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

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

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