| |
|
| java.lang.Object org.kuali.core.util.properties.PropertyHolder
PropertyHolder | public class PropertyHolder (Code) | | This class is a Property container. It is able to load properties from various property-sources.
|
PropertyHolder | public PropertyHolder()(Code) | | Default constructor.
|
clearProperties | public void clearProperties()(Code) | | Removes all properties from this container.
|
clearProperty | public void clearProperty(String key)(Code) | | Removes the property with the given key from this container
Parameters: key - throws: IllegalArgumentException - if the given key is null |
containsKey | public boolean containsKey(String key)(Code) | | Parameters: key - true if a property with the given key exists in this container throws: IllegalArgumentException - if the given key is null |
getKeys | public Iterator getKeys()(Code) | | iterator over the keys of all properties in this container |
getProperty | public String getProperty(String key)(Code) | | Parameters: key - the current value of the property with the given key, or null if no property exists with that key throws: IllegalArgumentException - if the given key is null |
isEmpty | public boolean isEmpty()(Code) | | true if this container currently has no properties |
loadProperties | public void loadProperties(PropertySource source)(Code) | | Copies all name,value pairs from the given PropertySource instance into this container.
Parameters: source - throws: IllegalStateException - if the source is invalid (improperly initialized) throws: DuplicateKeyException - the first time a given property has the same key as an existing property throws: PropertiesException - if unable to load properties from the given source |
|
|
|