public interface PropertyHolder
Interface denoting a configuration bean that stores a named collection of properties.
Modifier and Type | Method and Description |
---|---|
void |
addProperty(PropertyBean descriptor)
Add the specified property descriptor, replacing any existing
descriptor for this property name.
|
PropertyBean[] |
getProperties()
Return the descriptors of all properties for which descriptors have
been registered, or an empty array if none have been registered.
|
PropertyBean |
getProperty(java.lang.String name)
Return the property descriptor for the specified property name,
if any; otherwise, return
null . |
void |
removeProperty(PropertyBean descriptor)
Deregister the specified property descriptor, if it is registered.
|
void addProperty(PropertyBean descriptor)
Add the specified property descriptor, replacing any existing descriptor for this property name.
descriptor
- Descriptor to be addedPropertyBean getProperty(java.lang.String name)
Return the property descriptor for the specified property name,
if any; otherwise, return null
.
name
- Name of the property for which to retrieve a descriptorPropertyBean[] getProperties()
Return the descriptors of all properties for which descriptors have been registered, or an empty array if none have been registered.
void removeProperty(PropertyBean descriptor)
Deregister the specified property descriptor, if it is registered.
descriptor
- Descriptor to be removedCopyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.