|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The public interface implemented by all objects that have properties. It allows for the getting and setting of the various properties held by that object.
| Method Summary | |
java.util.Collection |
getProperties()
This method returns a Collection of all the Propery objects for the given implementor. |
java.lang.String |
getPropertyDisplayName(java.lang.String prop_name)
Properties, in addition to having values also have display names. |
java.lang.Object |
getPropertyValue(java.lang.String prop_name)
This method should gets the given property. |
boolean |
hasProperty(java.lang.String prop_name)
Checks to see if the object has the given property. |
void |
setPropertyValue(java.lang.String prop_name,
java.lang.Object value)
This method will set the given property with the given value. |
| Method Detail |
public java.lang.Object getPropertyValue(java.lang.String prop_name)
throws PropertyNotFoundException
prop_name - The name of the property to get.
PropertyNotFoundException - Thrown if the given property does not exist for this type.
public java.lang.String getPropertyDisplayName(java.lang.String prop_name)
throws PropertyNotFoundException
prop_name -
PropertyNotFoundException
public void setPropertyValue(java.lang.String prop_name,
java.lang.Object value)
throws PropertyNotFoundException,
java.lang.ClassCastException
prop_name - String - The name of the proerty to be set.value - Object - The value to set the property to.
PropertyNotFoundException - Thrown if this object doesn't have the given property.
java.lang.ClassCastException - Thrown if there is a mismatch between the given value type and the type of the property.public boolean hasProperty(java.lang.String prop_name)
prop_name - String - The name of the property.
public java.util.Collection getProperties()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||