public class CSPContentDefinition extends Object implements IContentProvider
Constructor and Description |
---|
CSPContentDefinition(String contentDefinitionId) |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public CSPContentDefinition(String contentDefinitionId)
public String getContentDefinitionId()
public void setContentDefinitionId(String contentDefinitionId)
public CSPIndexDefinitionProvider getIndexDefinitionProvider()
public void setIndexDefinitionProvider(CSPIndexDefinitionProvider indexDefinitionProvider)
public Object[] getPropertyKeys()
IContentProvider
Object[0]
,
never null.getPropertyKeys
in interface IContentProvider
String
or Integer
public Class getType(Object contentDefinitionId) throws PropertyNotFoundException
IContentProvider
getType
in interface IContentProvider
contentDefinitionId
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supportedpublic Object getValue(Object indexId) throws EvaluationException, PropertyNotFoundException
IContentProvider
getValue
in interface IContentProvider
indexId
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluationPropertyNotFoundException
- if property is not supportedpublic boolean hasProperty(Object indexId)
IContentProvider
hasProperty
in interface IContentProvider
indexId
- property key of type String
or Integer
true
if property is supported