|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.bean.FacesBean.Type
public static class FacesBean.Type
Type of a FacesBean, encapsulating the set of registered PropertyKeys.
Constructor Summary | |
---|---|
FacesBean.Type()
|
|
FacesBean.Type(FacesBean.Type superType)
|
Method Summary | |
---|---|
protected void |
addKey(PropertyKey key)
Add a key to the type. |
protected PropertyKey |
createPropertyKey(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object defaultValue,
int capabilities,
int index)
|
PropertyKey |
findKey(int index)
Find an existing key by index. |
PropertyKey |
findKey(java.lang.String name)
Find an existing key by name. |
protected int |
getNextIndex()
Return the next available index. |
java.util.Iterator<PropertyKey> |
keys()
Returns the iterator of registered property keys, excluding aliases. |
void |
lock()
Locks the type object, preventing further changes. |
void |
lockAndRegister(java.lang.String componentFamily,
java.lang.String rendererType)
Locks the type object, preventing further changes. |
PropertyKey |
registerAlias(PropertyKey key,
java.lang.String alias)
Add an alias to an existing PropertyKey. |
PropertyKey |
registerKey(java.lang.String name)
Register a new key. |
PropertyKey |
registerKey(java.lang.String name,
java.lang.Class<?> type)
Register a new key. |
PropertyKey |
registerKey(java.lang.String name,
java.lang.Class<?> type,
int capabilities)
Register a new key. |
PropertyKey |
registerKey(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object defaultValue)
Register a new key. |
PropertyKey |
registerKey(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object defaultValue,
int capabilities)
Register a new key with a set of capabilities. |
PropertyKey |
registerKey(java.lang.String name,
int capabilities)
Register a new key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesBean.Type()
public FacesBean.Type(FacesBean.Type superType)
Method Detail |
---|
public PropertyKey findKey(java.lang.String name)
public PropertyKey findKey(int index)
public final PropertyKey registerKey(java.lang.String name, java.lang.Class<?> type, java.lang.Object defaultValue)
java.lang.IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(java.lang.String name, java.lang.Class<?> type)
java.lang.IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(java.lang.String name)
java.lang.IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(java.lang.String name, int capabilities)
java.lang.IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(java.lang.String name, java.lang.Class<?> type, int capabilities)
java.lang.IllegalStateException
- if the type is already locked,
or the key does not already exists.public PropertyKey registerAlias(PropertyKey key, java.lang.String alias)
java.lang.IllegalStateException
- if the type is already locked,
or a key already exists at the alias.public PropertyKey registerKey(java.lang.String name, java.lang.Class<?> type, java.lang.Object defaultValue, int capabilities)
java.lang.IllegalStateException
- if the type is already locked,
or the key already exists.public void lock()
public void lockAndRegister(java.lang.String componentFamily, java.lang.String rendererType)
public java.util.Iterator<PropertyKey> keys()
protected PropertyKey createPropertyKey(java.lang.String name, java.lang.Class<?> type, java.lang.Object defaultValue, int capabilities, int index)
protected int getNextIndex()
protected void addKey(PropertyKey key)
java.lang.IllegalStateException
- if the type is already locked,
or a key with that name or index already exists.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |