public class EmptyResourcesContentProvider extends Object implements IContentProvider
Content provider implementation that does not have any properties
EmptyContentProvider provider = new EmptyContentProvider(); provider.hasProperty("anypropertyname"); // returns false provider.getValue("anyotherroperty); // returns null
Constructor and Description |
---|
EmptyResourcesContentProvider() |
Modifier and Type | Method and Description |
---|---|
Object[] |
getPropertyKeys()
Always returns empty array
|
Class<?> |
getType(Object propertyKey)
Always returns null
|
Object |
getValue(Object propertyKey)
Always returns null
|
boolean |
hasProperty(Object propertyKey)
Always returns false
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public Object[] getPropertyKeys()
getPropertyKeys
in interface IContentProvider
String
or Integer
public boolean hasProperty(Object propertyKey)
hasProperty
in interface IContentProvider
propertyKey
- property key of type String
or Integer
true
if property is supportedpublic Object getValue(Object propertyKey) throws ELException, PropertyNotFoundException
getValue
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
null
PropertyNotFoundException
- if property is not supportedELException
public Class<?> getType(Object propertyKey) throws PropertyNotFoundException
getType
in interface IContentProvider
propertyKey
- the property key of type String
or Integer
Class
PropertyNotFoundException
- if property is not supported