org.apache.felix.ipojo.handlers.jmx
Class PropertyField
java.lang.Object
org.apache.felix.ipojo.handlers.jmx.PropertyField
public class PropertyField
- extends java.lang.Object
this calss build the notification descritpion structure.
- Author:
- Felix Project Team
Constructor Summary |
PropertyField(java.lang.String name,
java.lang.String field,
java.lang.String rights,
java.lang.String type)
PropertyField : constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyField
public PropertyField(java.lang.String name,
java.lang.String field,
java.lang.String rights,
java.lang.String type)
- PropertyField : constructor.
- Parameters:
name
- : name of the properetyfield
- : field which send a notification when it is modifiedrights
- : the rights of the attribute (ie: 'r' or 'w')type
- : the type of the attribute
getField
public java.lang.String getField()
setField
public void setField(java.lang.String field)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getRights
public java.lang.String getRights()
setRights
public void setRights(java.lang.String rights)
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
getType
public java.lang.String getType()
getDescription
public java.lang.String getDescription()
isReadable
public boolean isReadable()
isWritable
public boolean isWritable()
isNotifiable
public boolean isNotifiable()
setNotifiable
public void setNotifiable(boolean value)
isRightsValid
public static boolean isRightsValid(java.lang.String rights)
- isRightsValid : return is the rights is valid or not (ie = 'r' || 'w').
- Parameters:
rights
- : string represents the rights
- Returns:
- boolean : return true if rights = 'r' or 'w'