public class PropertyContainer extends PropertyMap
| Modifier and Type | Field and Description |
|---|---|
protected String |
groupname
The group name for this container.
|
boundListeners, EMPTY_ARRAY_PROPERTY, PROPERTY_NAME_SEPARATOR, unboundListenersdefaults| Constructor and Description |
|---|
PropertyContainer(Class<?> type)
Initialize the container with a property group of the given class name.
|
PropertyContainer(Properties props)
Initialize the container with a property group.
|
PropertyContainer(String groupname)
Initialize the container with a property group of the given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindField(String name)
Creates a
FieldBoundPropertyListener for the field and
property name and adds it the underlying property group. |
protected void |
bindField(String name,
String propertyName)
Creates a
FieldBoundPropertyListener for the field and
property name and adds it the underlying property group. |
protected void |
bindMethod(String name)
Creates a
MethodBoundPropertyListener for the method and
property name and adds it the underlying property group. |
protected void |
bindMethod(String name,
String propertyName)
Creates a
MethodBoundPropertyListener for the method and
property name and adds it the underlying property group. |
protected void |
throwException(String name) |
protected void |
throwException(String name,
String msg) |
protected void |
throwException(String name,
String msg,
Throwable nested) |
protected void |
throwException(String name,
Throwable nested) |
addPropertyListener, addPropertyListener, addPropertyListeners, containsProperty, entrySet, firePropertyAdded, firePropertyChanged, firePropertyRemoved, getArrayProperty, getArrayProperty, getProperty, getPropertyGroup, getPropertyGroup, keySet, load, load, load, load, makeIndexPropertyName, makePrefixedPropertyName, names, put, remove, removeProperty, removePropertyListener, removePropertyListener, setPropertygetProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamesprotected String groupname
public PropertyContainer(Properties props)
props - public PropertyContainer(String groupname)
groupname - Property group name.public PropertyContainer(Class<?> type)
type - The class whos name will be the property group name.protected void bindField(String name, String propertyName)
FieldBoundPropertyListener for the field and
property name and adds it the underlying property group.name - The field name to bind values to.propertyName - The property name to bind to.IllegalArgumentException - Field of property name is null or
empty.protected void bindField(String name)
FieldBoundPropertyListener for the field and
property name and adds it the underlying property group.name - The field name and property to bind values to.IllegalArgumentException - Field of property name is null or
empty.protected void bindMethod(String name, String propertyName)
MethodBoundPropertyListener for the method and
property name and adds it the underlying property group.name - The method name to bind values to.propertyName - The property name to bind to.IllegalArgumentException - Method of property name is null or
empty.protected void bindMethod(String name)
MethodBoundPropertyListener for the method and
property name and adds it the underlying property group.name - The method name and property to bind values to.IllegalArgumentException - Method of property name is null or
empty.protected void throwException(String name) throws PropertyException
PropertyExceptionprotected void throwException(String name, String msg) throws PropertyException
PropertyExceptionprotected void throwException(String name, String msg, Throwable nested) throws PropertyException
PropertyExceptionprotected void throwException(String name, Throwable nested) throws PropertyException
PropertyExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.