|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertySet
A set of (name, value) pairs.
| Field Summary | |
|---|---|
static PropertySet |
EMPTY_PROPERTY_SET
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addPropertyValue(String propertyName,
Object value)
Add a values to the end of the list of property values. |
void |
addPropertyValues(String propertyName,
List values)
Add a set of values to a property. |
Object |
clone()
|
Set |
getPropertyNames()
The names of defined properties. |
Object |
getPropertyValue(String propertyName)
Get the value of a property. |
List |
getPropertyValues(String propertyName)
The values of a property. |
boolean |
hasProperty(String propertyName)
True if a property has any defined values. |
boolean |
isModifiable()
True if property set may be changed. |
void |
removeAll()
Undefine all properties in the set |
void |
removeProperty(String propertyName)
Remove all values of a property (ie undefine it). |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
boolean |
removePropertyValue(String propertyName,
Object value)
Remove the first occurrence of a value from a list of property values. |
void |
setPropertyValue(String propertyName,
Object value)
|
void |
setPropertyValues(String propertyName,
List values)
Set the values of a property. |
| Field Detail |
|---|
static final PropertySet EMPTY_PROPERTY_SET
| Method Detail |
|---|
Set getPropertyNames()
List getPropertyValues(String propertyName)
propertyName - The name of the property.
Object getPropertyValue(String propertyName)
void setPropertyValues(String propertyName,
List values)
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.
void setPropertyValue(String propertyName,
Object value)
throws UnsupportedOperationException
UnsupportedOperationException
void removeProperty(String propertyName)
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.
boolean removePropertyValue(String propertyName,
Object value)
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.boolean hasProperty(String propertyName)
void removeAll()
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.
void addPropertyValue(String propertyName,
Object value)
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.boolean isModifiable()
void addPropertyValues(String propertyName,
List values)
throws UnsupportedOperationException
UnsupportedOperationException - if property values
cannot be changed.
Object clone()
throws CloneNotSupportedException
CloneNotSupportedExceptionvoid addPropertyChangeListener(PropertyChangeListener l)
void removePropertyChangeListener(PropertyChangeListener l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||