org.apache.felix.ipojo.handlers.jmx
Class PropertyField

java.lang.Object
  extended by 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.
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getField()
           
 java.lang.String getName()
           
 java.lang.String getRights()
           
 java.lang.String getType()
           
 java.lang.Object getValue()
           
 boolean isNotifiable()
           
 boolean isReadable()
           
static boolean isRightsValid(java.lang.String rights)
          isRightsValid : return is the rights is valid or not (ie = 'r' || 'w').
 boolean isWritable()
           
 void setField(java.lang.String field)
           
 void setName(java.lang.String name)
           
 void setNotifiable(boolean value)
           
 void setRights(java.lang.String rights)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 properety
field - : field which send a notification when it is modified
rights - : the rights of the attribute (ie: 'r' or 'w')
type - : the type of the attribute
Method Detail

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'