Constructor and Description |
---|
FacesBean.Type() |
FacesBean.Type(FacesBean.Type superType) |
Modifier and Type | Method and Description |
---|---|
protected void |
addKey(PropertyKey key)
Add a key to the type.
|
protected PropertyKey |
createPropertyKey(String name,
Class<?> type,
Object defaultValue,
int capabilities,
int index) |
PropertyKey |
findKey(int index)
Find an existing key by index.
|
PropertyKey |
findKey(String name)
Find an existing key by name.
|
protected int |
getNextIndex()
Return the next available index.
|
Iterator<PropertyKey> |
keys()
Returns the iterator of registered property keys, excluding aliases.
|
void |
lock()
Locks the type object, preventing further changes.
|
void |
lockAndRegister(String componentFamily,
String rendererType)
Locks the type object, preventing further changes.
|
Collection<PropertyKey> |
propertyKeys()
Returns an unmodifiable
Collection of registered property keys,
excluding aliases. |
PropertyKey |
registerAlias(PropertyKey key,
String alias)
Add an alias to an existing PropertyKey.
|
PropertyKey |
registerKey(String name)
Register a new key.
|
PropertyKey |
registerKey(String name,
Class<?> type)
Register a new key.
|
PropertyKey |
registerKey(String name,
Class<?> type,
int capabilities)
Register a new key.
|
PropertyKey |
registerKey(String name,
Class<?> type,
Object defaultValue)
Register a new key.
|
PropertyKey |
registerKey(String name,
Class<?> type,
Object defaultValue,
int capabilities)
Register a new key with a set of capabilities.
|
PropertyKey |
registerKey(String name,
int capabilities)
Register a new key.
|
public FacesBean.Type()
public FacesBean.Type(FacesBean.Type superType)
public PropertyKey findKey(String name)
public PropertyKey findKey(int index)
public final PropertyKey registerKey(String name, Class<?> type, Object defaultValue)
IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(String name, Class<?> type)
IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(String name)
IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(String name, int capabilities)
IllegalStateException
- if the type is already locked,
or the key does not already exists.public final PropertyKey registerKey(String name, Class<?> type, int capabilities)
IllegalStateException
- if the type is already locked,
or the key does not already exists.public PropertyKey registerAlias(PropertyKey key, String alias)
IllegalStateException
- if the type is already locked,
or a key already exists at the alias.public PropertyKey registerKey(String name, Class<?> type, Object defaultValue, int capabilities)
IllegalStateException
- if the type is already locked,
or the key already exists.public void lock()
public void lockAndRegister(String componentFamily, String rendererType)
public Iterator<PropertyKey> keys()
public Collection<PropertyKey> propertyKeys()
Collection
of registered property keys,
excluding aliases.Collection
with registeredprotected PropertyKey createPropertyKey(String name, Class<?> type, Object defaultValue, int capabilities, int index)
protected int getNextIndex()
protected void addKey(PropertyKey key)
IllegalStateException
- if the type is already locked,
or a key with that name or index already exists.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.