org.springframework.webflow.executor.jsf
Class AbstractFlowExecutionPropertyResolver

java.lang.Object
  extended by javax.faces.el.PropertyResolver
      extended by org.springframework.webflow.executor.jsf.AbstractFlowExecutionPropertyResolver
Direct Known Subclasses:
FlowExecutionPropertyResolver, FlowPropertyResolver

public abstract class AbstractFlowExecutionPropertyResolver
extends javax.faces.el.PropertyResolver

Base class for property resolvers that get and set flow execution attributes.

Author:
Keith Donald

Constructor Summary
AbstractFlowExecutionPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
          Creates a new flow executon property resolver
 
Method Summary
protected abstract  java.lang.Object doGetAttribute(FlowExecution execution, java.lang.String attributeName)
          Gets the value of the flow execution attribute.
protected abstract  java.lang.Class doGetAttributeType(FlowExecution execution, java.lang.String attributeName)
          Gets the type of value returned by the flow execution attribute.
protected abstract  void doSetAttribute(FlowExecution execution, java.lang.String attributeName, java.lang.Object attributeValue)
          Sets the value of the flow execution attribute.
protected  javax.faces.el.PropertyResolver getResolverDelegate()
          Returns the property resolver this resolver delegates to if necessary.
 java.lang.Class getType(java.lang.Object base, int index)
           
 java.lang.Class getType(java.lang.Object base, java.lang.Object property)
           
 java.lang.Object getValue(java.lang.Object base, int index)
           
 java.lang.Object getValue(java.lang.Object base, java.lang.Object property)
           
 boolean isReadOnly(java.lang.Object base, int index)
           
 boolean isReadOnly(java.lang.Object base, java.lang.Object property)
           
 void setValue(java.lang.Object base, int index, java.lang.Object value)
           
 void setValue(java.lang.Object base, java.lang.Object property, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFlowExecutionPropertyResolver

public AbstractFlowExecutionPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
Creates a new flow executon property resolver

Parameters:
resolverDelegate - the resolver to delegate to when the property is not a flow execution attribute
Method Detail

getResolverDelegate

protected final javax.faces.el.PropertyResolver getResolverDelegate()
Returns the property resolver this resolver delegates to if necessary.


getType

public java.lang.Class getType(java.lang.Object base,
                               java.lang.Object property)
                        throws javax.faces.el.EvaluationException,
                               javax.faces.el.PropertyNotFoundException
Specified by:
getType in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getType

public java.lang.Class getType(java.lang.Object base,
                               int index)
                        throws javax.faces.el.EvaluationException,
                               javax.faces.el.PropertyNotFoundException
Specified by:
getType in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 java.lang.Object property)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

getValue

public java.lang.Object getValue(java.lang.Object base,
                                 int index)
                          throws javax.faces.el.EvaluationException,
                                 javax.faces.el.PropertyNotFoundException
Specified by:
getValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          java.lang.Object property)
                   throws javax.faces.el.EvaluationException,
                          javax.faces.el.PropertyNotFoundException
Specified by:
isReadOnly in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

isReadOnly

public boolean isReadOnly(java.lang.Object base,
                          int index)
                   throws javax.faces.el.EvaluationException,
                          javax.faces.el.PropertyNotFoundException
Specified by:
isReadOnly in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object value)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

setValue

public void setValue(java.lang.Object base,
                     int index,
                     java.lang.Object value)
              throws javax.faces.el.EvaluationException,
                     javax.faces.el.PropertyNotFoundException
Specified by:
setValue in class javax.faces.el.PropertyResolver
Throws:
javax.faces.el.EvaluationException
javax.faces.el.PropertyNotFoundException

doGetAttributeType

protected abstract java.lang.Class doGetAttributeType(FlowExecution execution,
                                                      java.lang.String attributeName)
Gets the type of value returned by the flow execution attribute.

Parameters:
execution - the flow execution
attributeName - the name of the attribute
Returns:
the type of value returned by the attribute

doGetAttribute

protected abstract java.lang.Object doGetAttribute(FlowExecution execution,
                                                   java.lang.String attributeName)
Gets the value of the flow execution attribute.

Parameters:
execution - the flow execution
attributeName - the name of the attribute
Returns:
the attribute value

doSetAttribute

protected abstract void doSetAttribute(FlowExecution execution,
                                       java.lang.String attributeName,
                                       java.lang.Object attributeValue)
Sets the value of the flow execution attribute.

Parameters:
execution - the flow execution
attributeName - the name of the attribute
attributeValue - the attribute value


Copyright © 2004-2007. All Rights Reserved.