com.webmethods.caf.faces.bean.nav
Class BaseAppNavBean.SubNavsContentProvider

java.lang.Object
  extended by com.webmethods.caf.faces.bean.nav.BaseAppNavBean.SubNavsContentProvider
All Implemented Interfaces:
IContentProvider
Enclosing class:
BaseAppNavBean

protected class BaseAppNavBean.SubNavsContentProvider
extends Object
implements IContentProvider

Map of a sub-BaseAppNavBean for each page in the navigation hierarchy, keyed by id. For example, if there is a page with an id of "/foo/bar.view" in the navigation hierarchy, getSubNavs().getValue("/foo/bar.view") will return a BaseAppNavBean for the sub-hierarchy rooted by the page with an id of "/foo/bar.view" (if there is no such page, it will return null).


Constructor Summary
protected BaseAppNavBean.SubNavsContentProvider()
           
 
Method Summary
 Object[] getPropertyKeys()
          List of all page ids in the navigation hierarchy.
 Class getType(Object propertyKey)
          Returns the BaseAppNavBean class.
 Object getValue(Object propertyKey)
          Returns a sub-BaseAppNavBean for the page with the specified id, or null.
 boolean hasProperty(Object propertyKey)
          Returns true.
 
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

BaseAppNavBean.SubNavsContentProvider

protected BaseAppNavBean.SubNavsContentProvider()
Method Detail

getPropertyKeys

public Object[] getPropertyKeys()
List of all page ids in the navigation hierarchy.

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

getType

public Class getType(Object propertyKey)
              throws PropertyNotFoundException
Returns the BaseAppNavBean class.

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

getValue

public Object getValue(Object propertyKey)
                throws EvaluationException,
                       PropertyNotFoundException
Returns a sub-BaseAppNavBean for the page with the specified id, or 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

hasProperty

public boolean hasProperty(Object propertyKey)
Returns true.

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