public interface PropertiesContainer
Only one property per name is supported.
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property property)
Adds property into the container.
|
Collection<Property> |
getProperties()
Gets list of all properties in the container.
|
Property |
getProperty(String name)
Returns property by name.
|
boolean |
hasProperty(String name)
Checks whether property with specified name exists in the container.
|
Property |
removeProperty(String name)
Removes property from the container.
|
void addProperty(Property property) throws PropertyException
property - adding propertyPropertyException - if property with the same name exists already
and value cannot be updated.Collection<Property> getProperties()
Property getProperty(String name) throws PropertyException
name - name of propertyPropertyException - if no property with specified nameboolean hasProperty(String name)
name - name of propertytrue if such property existsProperty removeProperty(String name) throws PropertyException
name - name of propertyPropertyException - if no property with specified nameCopyright © 2018. All rights reserved.