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

java.lang.Object
  extended by org.apache.felix.ipojo.handlers.jmx.PropertyField

public class PropertyField
extends Object

This class build the notification description structure.

Author:
Felix Project Team

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

PropertyField

public PropertyField(String name,
                     String field,
                     String rights,
                     String type)
Constructor.

Parameters:
name - the name of the properety
field - the 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 String getField()
Returns the field.

Returns:
the field

setField

public void setField(String field)
Modifies the field.

Parameters:
field - the new field

getName

public String getName()
Returns the name.

Returns:
the name

setName

public void setName(String name)
Modifies the name.

Parameters:
name - the new name

getRights

public String getRights()
Returns the rights.

Returns:
the rights

setRights

public void setRights(String rights)
Modifies the rights.

Parameters:
rights - the new rights

getValue

public Object getValue()
Returns the value.

Returns:
the value

setValue

public void setValue(Object value)
Modifies the value.

Parameters:
value - the new value

getType

public String getType()
Returns the type.

Returns:
the type

getDescription

public String getDescription()
Returns the description.

Returns:
the description

isReadable

public boolean isReadable()
Returns true if this property field is readable, false otherwise.

Returns:
true if this property field is readable, false otherwise.

isWritable

public boolean isWritable()
Returns true if this property field is writable, false otherwise.

Returns:
true if this property field is writable, false otherwise.

isNotifiable

public boolean isNotifiable()
Returns true if this property field is notifiable, false otherwise.

Returns:
true if this property field is notifiable, false otherwise.

setNotifiable

public void setNotifiable(boolean value)
Modify the notifiability of this property field.

Parameters:
value - the new notifiability of this property field.

isRightsValid

public static boolean isRightsValid(String rights)
Is the rights is valid or not ? (ie = 'r' || 'w').

Parameters:
rights - string representing the rights
Returns:
boolean : return true if rights = 'r' or 'w'


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.