com.bea.content.manager.faces.component
Class ResolverComponent

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by com.bea.content.manager.faces.component.ResolverComponent
All Implemented Interfaces
StateHolder
Direct Known Subclasses:
GetPropertyComponent

public abstract class ResolverComponent
extends UIComponentBase

Abstract base class for AttributeResolver components.


Field Summary
static String ATTR_FAIL_ON_ERROR
           
static String ATTR_RESULT
           
protected static Debug debug
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
ResolverComponent()
           
 
Method Summary
protected  Object getAttributeBinding(String attrName, Object defaultValue)
          This method is convenient for retrieving the value binding for a given attribute name, or return the default value if no value binding exists.
 String getFamily()
           
protected  void handleException(Throwable e)
           
 boolean isFailOnError()
          Get the value of failOnError
abstract  void resolve(Writer writer)
           
 void setFailOnError(boolean failOnError)
          Set the value of failOnError
protected  void throwAttributeTypeException(String attrName, Class<?> clazz)
           
protected  void throwMissingAttributeError(String attrName)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static final Debug debug

ATTR_FAIL_ON_ERROR

public static final String ATTR_FAIL_ON_ERROR
See Also
Constants Summary

ATTR_RESULT

public static final String ATTR_RESULT
See Also
Constants Summary
Constructor Detail

ResolverComponent

public ResolverComponent()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class UIComponent

isFailOnError

public boolean isFailOnError()
Get the value of failOnError


setFailOnError

public void setFailOnError(boolean failOnError)
Set the value of failOnError


getAttributeBinding

protected Object getAttributeBinding(String attrName,
                                     Object defaultValue)
This method is convenient for retrieving the value binding for a given attribute name, or return the default value if no value binding exists.

Parameters
attrName - The name of the attribute to retrieve.
defaultValue - The value to return if no value binding exists.
Returns
an object representing resolved value binding.

resolve

public abstract void resolve(Writer writer)

throwMissingAttributeError

protected void throwMissingAttributeError(String attrName)

throwAttributeTypeException

protected void throwAttributeTypeException(String attrName,
                                           Class<?> clazz)

handleException

protected void handleException(Throwable e)


Copyright © 2011, Oracle. All rights reserved.