com.webmethods.caf.faces.data.object
Class EmptyContentProvider

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

public class EmptyContentProvider
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 Summary
EmptyContentProvider()
           
 
Method Summary
 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
 
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

EmptyContentProvider

public EmptyContentProvider()
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
Always returns empty array

Specified by:
getPropertyKeys in interface IContentProvider
Returns:
array of property keys which is typically of type String or Integer

hasProperty

public boolean hasProperty(Object propertyKey)
Always returns false

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

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException,
                       PropertyNotFoundException
Always returns null

Specified by:
getValue in interface IContentProvider
Parameters:
propertyKey - 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

getType

public Class getType(Object propertyKey)
              throws PropertyNotFoundException
Always returns null

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