|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
org.apache.myfaces.trinidad.bean.FacesBeanImpl
public abstract class FacesBeanImpl
Base implementation of FacesBean.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.myfaces.trinidad.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<PropertyKey> |
bindingKeySet()Returns a Set of all PropertyKeys that have ValueBindings attached. |
boolean |
containsEntry(PropertyKey listKey, java.lang.Class<?> clazz)Return true if at least one element of the list identified by this key is an instance of the specified class. |
protected PropertyMap |
createExpressionsMap() |
protected PropertyMap |
createPropertyMap() |
java.util.Iterator<java.lang.Object> |
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. |
java.lang.Object |
getRawProperty(PropertyKey key)Gets the current unevaluated value for the specified property key. |
abstract FacesBean.Type |
getType()Get the type of a FacesBean |
javax.faces.el.ValueBinding |
getValueBinding(PropertyKey key)Return the value binding for a key. |
javax.el.ValueExpression |
getValueExpression(PropertyKey key)Return the value expression for a key. |
java.util.Set<PropertyKey> |
keySet()Returns a Set of all PropertyKeys that have either lists or values attached. |
void |
markInitialState() |
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. |
void |
setValueExpression(PropertyKey key, javax.el.ValueExpression expression)Set the value expression 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 |
|---|
public FacesBeanImpl()
| Method Detail |
|---|
public abstract FacesBean.Type getType()
getType in interface FacesBeanpublic final java.lang.Object getProperty(PropertyKey key)
FacesBeangetProperty in interface FacesBeankey - the property keypublic final java.lang.Object getRawProperty(PropertyKey key)
The method will first look for a local value. If it exists, it will be returned. If it does not and the bean supports value expressions, the method will look for an expression with the specified key and return it directly if it exists without evaluatig its value.
This method is mainly used when:
The most common use case of this method is for message attributes set on converters and validators using a value binding referencing a managed bean created by <f:loadBundle/>. Since loadBundle only creates its bean during the render response phase while converter and validators take action during process validation phase, the message property's value binding must be stored in a special FacesMessage implementation that will evaluate the binding only during render response.
getRawProperty in interface FacesBeankey - the parameter key of the raw property value to get.ValueExpression object if the specified key supports expressions and an expression was specified for that property, null otherwise.FacesBean.getLocalProperty(PropertyKey), FacesBean.getValueBinding(PropertyKey), FacesBean.getValueExpression(PropertyKey)
public void setProperty(PropertyKey key,
java.lang.Object value)
FacesBeansetProperty in interface FacesBeanpublic final java.lang.Object getLocalProperty(PropertyKey key)
FacesBeangetLocalProperty in interface FacesBeanpublic final javax.el.ValueExpression getValueExpression(PropertyKey key)
FacesBeangetValueExpression in interface FacesBean
public final void setValueExpression(PropertyKey key,
javax.el.ValueExpression expression)
FacesBeansetValueExpression in interface FacesBeanpublic final javax.faces.el.ValueBinding getValueBinding(PropertyKey key)
FacesBeangetValueBinding in interface FacesBean
public final void setValueBinding(PropertyKey key,
javax.faces.el.ValueBinding binding)
FacesBeansetValueBinding in interface FacesBean
public final void addEntry(PropertyKey listKey,
java.lang.Object value)
FacesBeanaddEntry in interface FacesBean
public final void removeEntry(PropertyKey listKey,
java.lang.Object value)
FacesBeanremoveEntry in interface FacesBean
public final java.lang.Object[] getEntries(PropertyKey listKey,
java.lang.Class clazz)
FacesBeangetEntries in interface FacesBean
public final boolean containsEntry(PropertyKey listKey,
java.lang.Class<?> clazz)
FacesBeancontainsEntry in interface FacesBeanpublic final java.util.Iterator<java.lang.Object> entries(PropertyKey listKey)
FacesBeanentries in interface FacesBeanpublic void addAll(FacesBean from)
FacesBeanaddAll in interface FacesBeanpublic final java.util.Set<PropertyKey> keySet()
FacesBeankeySet in interface FacesBeanpublic final java.util.Set<PropertyKey> bindingKeySet()
FacesBeanbindingKeySet in interface FacesBeanpublic void markInitialState()
markInitialState in interface FacesBean
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
FacesBeanrestoreState in interface FacesBeanpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
FacesBeansaveState in interface FacesBeanpublic java.lang.String toString()
toString in class java.lang.Object
protected void setPropertyImpl(PropertyKey key,
java.lang.Object value)
protected java.lang.Object getLocalPropertyImpl(PropertyKey key)
protected PropertyMap createPropertyMap()
protected PropertyMap createExpressionsMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.