public interface IContentProvider
Main content provider interface.
Content provider wraps an underlying structured content coming from a data source.
It provides access to this
content using properties. Each property is identified by property key which is typically
a String
name or an Integer
index of the property. Content provider exposes
list of all properties it supports and types of those properties.
It also allows to get property value by its key.
Modifier and Type | Method and Description |
---|---|
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
|
String |
toString()
Returns string representation of content.
|
Object[] getPropertyKeys()
Object[0]
,
never null.String
or Integer
boolean hasProperty(Object propertyKey)
propertyKey
- property key of type String
or Integer
true
if property is supportedObject getValue(Object propertyKey) throws ELException, PropertyNotFoundException
propertyKey
- the property key of type String
or Integer
null
EvaluationException
- if error during property evaluationPropertyNotFoundException
- if property is not supportedELException
Class<?> getType(Object propertyKey) throws PropertyNotFoundException
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supported