|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All MBeans that have Properties must extend this interface.
Properties are always Strings. Property names are required to be unique (???).
Field Summary | |
static java.lang.String |
PROPERTY_PREFIX
When a key is required for a property in a Map, its name must consist of this prefix plus the actual name. |
Method Summary | |
void |
createProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Create a new property. |
boolean |
existsProperty(java.lang.String propertyName)
Return true if any properties exist with the specified name. |
java.util.Map |
getProperties()
|
java.lang.String[] |
getPropertyNames()
Get the names of all properties. |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
Get the value of a property. |
void |
removeProperty(java.lang.String propertyName)
Remove a property with the specified name. |
void |
setPropertyValue(java.lang.String propertyName,
java.lang.String propertyValue)
Set the value of a property. |
Field Detail |
public static final java.lang.String PROPERTY_PREFIX
Method Detail |
public java.lang.String[] getPropertyNames()
public java.util.Map getProperties()
public java.lang.String getPropertyValue(java.lang.String propertyName)
propertyName
- the name of the propertypublic void setPropertyValue(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- the name of the propertypropertyValue
- the value of the propertypublic boolean existsProperty(java.lang.String propertyName)
propertyName
- the name of the propertypublic void createProperty(java.lang.String propertyName, java.lang.String propertyValue)
propertyName
- the name of the propertypropertyValue
- the value of the propertypublic void removeProperty(java.lang.String propertyName)
propertyName
- the name of the property
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.