com.webmethods.caf.faces.data.tree.object
Class BoundChildrenNode.PermissiveContentProviderWrapper

java.lang.Object
  extended by com.webmethods.caf.faces.bean.PageFlowScopeAdapter
      extended by com.webmethods.caf.faces.data.object.ELPropertyContentProvider
          extended by com.webmethods.caf.faces.data.tree.object.BoundChildrenNode.PermissiveContentProviderWrapper
All Implemented Interfaces:
IPageFlowScopeAdapter, IContentProvider, IUpdateableContentProvider, Serializable
Enclosing class:
BoundChildrenNode

public static class BoundChildrenNode.PermissiveContentProviderWrapper
extends ELPropertyContentProvider

Eats PropertyNotFoundExceptions raised by standard content-providers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.webmethods.caf.faces.data.object.ELPropertyContentProvider
m_o
 
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
 
Constructor Summary
BoundChildrenNode.PermissiveContentProviderWrapper()
           
BoundChildrenNode.PermissiveContentProviderWrapper(Object o)
           
 
Method Summary
 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
 boolean isReadOnly(Object propertyKey)
          Returns true if the given property is readonly.
 void setValue(Object propertyKey, Object value)
          Sets new value of the given property
 
Methods inherited from class com.webmethods.caf.faces.data.object.ELPropertyContentProvider
getObject, getPropertyKeys, setObject, toString
 
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundChildrenNode.PermissiveContentProviderWrapper

public BoundChildrenNode.PermissiveContentProviderWrapper()

BoundChildrenNode.PermissiveContentProviderWrapper

public BoundChildrenNode.PermissiveContentProviderWrapper(Object o)
Method Detail

hasProperty

public boolean hasProperty(Object propertyKey)
Description copied from interface: IContentProvider
Checks if the given property is supported by this content provider

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

getType

public Class getType(Object propertyKey)
Description copied from interface: IContentProvider
Returns java type of the given property

Specified by:
getType in interface IContentProvider
Overrides:
getType in class ELPropertyContentProvider
Parameters:
propertyKey - the property key of type String or Integer
Returns:
property java Class

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException
Description copied from interface: IContentProvider
Returns value of the given property

Specified by:
getValue in interface IContentProvider
Overrides:
getValue in class ELPropertyContentProvider
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

isReadOnly

public boolean isReadOnly(Object propertyKey)
                   throws EvaluationException
Description copied from interface: IUpdateableContentProvider

Returns true if the given property is readonly. If it is readonly, IUpdateableContentProvider.setValue(Object, Object) will definitely fail.

Specified by:
isReadOnly in interface IUpdateableContentProvider
Overrides:
isReadOnly in class ELPropertyContentProvider
Parameters:
propertyKey - property key of type String or Integer
Returns:
true if the property is readonly
Throws:
EvaluationException

setValue

public void setValue(Object propertyKey,
                     Object value)
              throws EvaluationException
Description copied from interface: IUpdateableContentProvider

Sets new value of the given property

Specified by:
setValue in interface IUpdateableContentProvider
Overrides:
setValue in class ELPropertyContentProvider
Parameters:
propertyKey - property key of type String or Integer
value - new property value
Throws:
EvaluationException - if error happens during property assigment