com.ibm.xsp.complex
Class ValueBindingObjectImpl

java.lang.Object
  extended by com.ibm.xsp.complex.ValueBindingObjectImpl
All Implemented Interfaces:
ComponentBindingObject, ValueBindingObject, javax.faces.component.StateHolder
Direct Known Subclasses:
AbstractConverter, AbstractDataSource, AbstractResource, AbstractValidator, Attr, ClientEventHandler, DojoAttribute, NavigationRule, Parameter, ViewRootBaseUrl

public abstract class ValueBindingObjectImpl
extends java.lang.Object
implements ValueBindingObject, ComponentBindingObject, javax.faces.component.StateHolder

Provides a base implementation for complex-types which need to support computed expressions.


Constructor Summary
protected ValueBindingObjectImpl()
           
 
Method Summary
 javax.faces.component.UIComponent getComponent()
          Return the associated UIComponent instance.
protected  javax.faces.context.FacesContext getFacesContext()
          Helper method to return the current FacesContext
 javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
          Return the ValueBinding instance to used to calculate the value for the specified property.
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object value)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setComponent(javax.faces.component.UIComponent component)
          This will be called while constructing the component and the UIComponent tree, so no processing should be performed at this stage.
 void setTransient(boolean transientFlag)
           
 void setValueBinding(java.lang.String name, javax.faces.el.ValueBinding binding)
          Set the ValueBinding instance to used to calculate the value for the specified property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBindingObjectImpl

protected ValueBindingObjectImpl()
Method Detail

getFacesContext

protected javax.faces.context.FacesContext getFacesContext()
Helper method to return the current FacesContext


getValueBinding

public javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
Description copied from interface: ValueBindingObject
Return the ValueBinding instance to used to calculate the value for the specified property.

Specified by:
getValueBinding in interface ValueBindingObject
Parameters:
name - Name of the property
Returns:
ValueBinding instance to used to calculate the value for the specified property

setValueBinding

public void setValueBinding(java.lang.String name,
                            javax.faces.el.ValueBinding binding)
Description copied from interface: ValueBindingObject
Set the ValueBinding instance to used to calculate the value for the specified property.

Specified by:
setValueBinding in interface ValueBindingObject
Parameters:
name - Name of the property
binding - The ValueBinding to set, or null to remove an existing ValueBinding

setComponent

public void setComponent(javax.faces.component.UIComponent component)
Description copied from interface: ComponentBindingObject
This will be called while constructing the component and the UIComponent tree, so no processing should be performed at this stage.

Specified by:
setComponent in interface ComponentBindingObject

getComponent

public javax.faces.component.UIComponent getComponent()
Description copied from interface: ComponentBindingObject
Return the associated UIComponent instance.

Specified by:
getComponent in interface ComponentBindingObject
Returns:
the associated UIComponent instance

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean transientFlag)
Specified by:
setTransient in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object value)
Specified by:
restoreState in interface javax.faces.component.StateHolder