oracle.adf.view.faces.bean
Class FacesBeanImpl

java.lang.Object
  |
  +--oracle.adf.view.faces.bean.FacesBeanImpl
All Implemented Interfaces:
FacesBean

public abstract class FacesBeanImpl
extends java.lang.Object
implements FacesBean

Base implementation of FacesBean.


Nested Class Summary
 
Nested classes inherited from class oracle.adf.view.faces.bean.FacesBean
FacesBean.Type
 
Constructor Summary
FacesBeanImpl()
           
 
Method Summary
 void addAll(FacesBean from)
          Copies all properties, bindings, and list entries from one bean to another.
 void addEntry(PropertyKey listKey, java.lang.Object value)
          Add an entry to a list.
 java.util.Set bindingKeySet()
          Returns a Set of all PropertyKeys that have ValueBindings attached.
protected  PropertyMap createBindingsMap()
           
protected  PropertyMap createPropertyMap()
           
 java.util.Iterator entries(PropertyKey listKey)
          Returns an iterator over all entries at this key.
 java.lang.Object[] getEntries(PropertyKey listKey, java.lang.Class clazz)
          Return as an array all elements of this key that are instances of the specified class.
 java.lang.Object getLocalProperty(PropertyKey key)
          Return a property, ignoring any value bindings.
protected  java.lang.Object getLocalPropertyImpl(PropertyKey key)
           
 java.lang.Object getProperty(PropertyKey key)
          Returns a property.
abstract  FacesBean.Type getType()
          Returns the Type of this bean.
 javax.faces.el.ValueBinding getValueBinding(PropertyKey key)
          Return the value binding for a key.
 java.util.Set keySet()
          Returns a Set of all PropertyKeys that have either lists or values attached.
 void removeEntry(PropertyKey listKey, java.lang.Object value)
          Remove an entry from a list.
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
          Restores the state of a FacesBean.
 java.lang.Object saveState(javax.faces.context.FacesContext context)
          Saves the state of a FacesBean.
 void setProperty(PropertyKey key, java.lang.Object value)
          Set a property.
protected  void setPropertyImpl(PropertyKey key, java.lang.Object value)
           
 void setValueBinding(PropertyKey key, javax.faces.el.ValueBinding binding)
          Set the value binding for a key.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacesBeanImpl

public FacesBeanImpl()
Method Detail

getType

public abstract FacesBean.Type getType()
Description copied from interface: FacesBean
Returns the Type of this bean.

Specified by:
getType in interface FacesBean

getProperty

public final java.lang.Object getProperty(PropertyKey key)
Description copied from interface: FacesBean
Returns a property. If the property has not been explicitly set, and the key supports bindings, and a ValueBinding has been set for this key, that ValueBinding will be evaluated.

Specified by:
getProperty in interface FacesBean
Parameters:
key - the property key

setProperty

public void setProperty(PropertyKey key,
                        java.lang.Object value)
Description copied from interface: FacesBean
Set a property.

Specified by:
setProperty in interface FacesBean

getLocalProperty

public final java.lang.Object getLocalProperty(PropertyKey key)
Description copied from interface: FacesBean
Return a property, ignoring any value bindings.

Specified by:
getLocalProperty in interface FacesBean

getValueBinding

public final javax.faces.el.ValueBinding getValueBinding(PropertyKey key)
Description copied from interface: FacesBean
Return the value binding for a key.

Specified by:
getValueBinding in interface FacesBean

setValueBinding

public final void setValueBinding(PropertyKey key,
                                  javax.faces.el.ValueBinding binding)
Description copied from interface: FacesBean
Set the value binding for a key.

Specified by:
setValueBinding in interface FacesBean

addEntry

public final void addEntry(PropertyKey listKey,
                           java.lang.Object value)
Description copied from interface: FacesBean
Add an entry to a list. The same value may be added repeatedly; null is also a legal value. (Consumers of this API can apply more stringent rules to specific keys in cover functions.)

Specified by:
addEntry in interface FacesBean

removeEntry

public final void removeEntry(PropertyKey listKey,
                              java.lang.Object value)
Description copied from interface: FacesBean
Remove an entry from a list.

Specified by:
removeEntry in interface FacesBean

getEntries

public final java.lang.Object[] getEntries(PropertyKey listKey,
                                           java.lang.Class clazz)
Description copied from interface: FacesBean
Return as an array all elements of this key that are instances of the specified class.

Specified by:
getEntries in interface FacesBean
Returns:
an array whose instance type is the class

entries

public final java.util.Iterator entries(PropertyKey listKey)
Description copied from interface: FacesBean
Returns an iterator over all entries at this key.

Specified by:
entries in interface FacesBean

addAll

public void addAll(FacesBean from)
Description copied from interface: FacesBean
Copies all properties, bindings, and list entries from one bean to another. If the beans are of different types, properties will be copied by name. Incompatible properties will be ignored; specifically, properties that are lists on only one of the beans or ValueBindings on the original bean that are not allowed on the target bean.

Specified by:
addAll in interface FacesBean

keySet

public final java.util.Set keySet()
Description copied from interface: FacesBean
Returns a Set of all PropertyKeys that have either lists or values attached.

Specified by:
keySet in interface FacesBean

bindingKeySet

public final java.util.Set bindingKeySet()
Description copied from interface: FacesBean
Returns a Set of all PropertyKeys that have ValueBindings attached.

Specified by:
bindingKeySet in interface FacesBean

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Description copied from interface: FacesBean
Restores the state of a FacesBean.

Specified by:
restoreState in interface FacesBean

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Description copied from interface: FacesBean
Saves the state of a FacesBean.

Specified by:
saveState in interface FacesBean

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setPropertyImpl

protected void setPropertyImpl(PropertyKey key,
                               java.lang.Object value)

getLocalPropertyImpl

protected java.lang.Object getLocalPropertyImpl(PropertyKey key)

createPropertyMap

protected PropertyMap createPropertyMap()

createBindingsMap

protected PropertyMap createBindingsMap()


Copyright © 2003-2004 Oracle Corporation. All Rights Reserved.