Class EmptyContentProvider
java.lang.Object
com.webmethods.caf.faces.data.object.EmptyContentProvider
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
Always returns empty arrayClass<?>
Always returns nullAlways returns nullboolean
hasProperty
(Object propertyKey) Always returns falseMethods 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 Details
-
EmptyContentProvider
public EmptyContentProvider()
-
-
Method Details
-
getPropertyKeys
Always returns empty array- Specified by:
getPropertyKeys
in interfaceIContentProvider
- Returns:
- array of property keys which is typically of type
String
orInteger
-
hasProperty
Always returns false- Specified by:
hasProperty
in interfaceIContentProvider
- Parameters:
propertyKey
- property key of typeString
orInteger
- Returns:
true
if property is supported
-
getValue
Always returns null- Specified by:
getValue
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- value of the property, can be
null
- Throws:
PropertyNotFoundException
- if property is not supportedELException
-
getType
Always returns null- Specified by:
getType
in interfaceIContentProvider
- Parameters:
propertyKey
- the property key of typeString
orInteger
- Returns:
- property java
Class
- Throws:
PropertyNotFoundException
- if property is not supported
-