|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.felix.ipojo.handlers.jmx.PropertyField
public class PropertyField
This class build the notification description structure.
| Constructor Summary | |
|---|---|
PropertyField(String name,
String field,
String rights,
String type)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns the description. |
String |
getField()
Returns the field. |
String |
getName()
Returns the name. |
String |
getRights()
Returns the rights. |
String |
getType()
Returns the type. |
Object |
getValue()
Returns the value. |
boolean |
isNotifiable()
Returns true if this property field is notifiable, false otherwise. |
boolean |
isReadable()
Returns true if this property field is readable, false otherwise. |
static boolean |
isRightsValid(String rights)
Is the rights is valid or not ? (ie = 'r' || 'w'). |
boolean |
isWritable()
Returns true if this property field is writable, false otherwise. |
void |
setField(String field)
Modifies the field. |
void |
setName(String name)
Modifies the name. |
void |
setNotifiable(boolean value)
Modify the notifiability of this property field. |
void |
setRights(String rights)
Modifies the rights. |
void |
setValue(Object value)
Modifies the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyField(String name,
String field,
String rights,
String type)
name - the name of the properetyfield - the field which send a notification when it is modifiedrights - the rights of the attribute (ie: 'r' or 'w')type - the type of the attribute| Method Detail |
|---|
public String getField()
public void setField(String field)
field - the new fieldpublic String getName()
public void setName(String name)
name - the new namepublic String getRights()
public void setRights(String rights)
rights - the new rightspublic Object getValue()
public void setValue(Object value)
value - the new valuepublic String getType()
public String getDescription()
public boolean isReadable()
true if this property field is readable, false otherwise.public boolean isWritable()
true if this property field is writable, false otherwise.public boolean isNotifiable()
true if this property field is notifiable, false otherwise.public void setNotifiable(boolean value)
value - the new notifiability of this property field.public static boolean isRightsValid(String rights)
rights - string representing the rights
true if rights = 'r' or 'w'
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||