|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.collections.FixedPropertySet
public class FixedPropertySet
An unmodifiable property set containing a fixed set of values.
Field Summary |
---|
Fields inherited from interface dsto.dfc.collections.PropertySet |
---|
EMPTY_PROPERTY_SET |
Constructor Summary | |
---|---|
FixedPropertySet(PropertySet set)
Create a new fixed value property set by copying a source property set. |
|
FixedPropertySet(String[] propertyNames,
Object[] propertyValues)
Create a new property set of fixed values. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedPropertySet(String[] propertyNames, Object[] propertyValues)
propertyNames
- The names of the properties in the set.propertyValues
- The values for the properties in the set.
Arrays will be returned as multiple values for the property.public FixedPropertySet(PropertySet set)
Method Detail |
---|
public Set getPropertyNames()
PropertySet
getPropertyNames
in interface PropertySet
public List getPropertyValues(String propertyName)
PropertySet
getPropertyValues
in interface PropertySet
propertyName
- The name of the property.
public Object getPropertyValue(String propertyName)
PropertySet
getPropertyValue
in interface PropertySet
public void setPropertyValues(String propertyName, List values) throws UnsupportedOperationException
PropertySet
setPropertyValues
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public void setPropertyValue(String propertyName, Object value) throws UnsupportedOperationException
setPropertyValue
in interface PropertySet
UnsupportedOperationException
public void removeProperty(String propertyName) throws UnsupportedOperationException
PropertySet
removeProperty
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public boolean hasProperty(String propertyName)
PropertySet
hasProperty
in interface PropertySet
public void removeAll() throws UnsupportedOperationException
PropertySet
removeAll
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public void addPropertyValue(String propertyName, Object value) throws UnsupportedOperationException
PropertySet
addPropertyValue
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public void addPropertyValues(String propertyName, List values) throws UnsupportedOperationException
PropertySet
addPropertyValues
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public boolean removePropertyValue(String propertyName, Object value) throws UnsupportedOperationException
PropertySet
removePropertyValue
in interface PropertySet
UnsupportedOperationException
- if property values
cannot be changed.public boolean isModifiable()
PropertySet
isModifiable
in interface PropertySet
public Object clone() throws CloneNotSupportedException
clone
in interface PropertySet
clone
in class Object
CloneNotSupportedException
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface PropertySet
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface PropertySet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |