ch.elca.el4j.services.monitoring.jmx.util
Class PropertyReflector

java.lang.Object
  extended by ch.elca.el4j.services.monitoring.jmx.util.PropertyReflector

public class PropertyReflector
extends Object

Inspects a PropertyDescriptor.

Author:
David Bernhard (DBD)
File-location:
PropertyReflector
Last check-in date:
2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883

Constructor Summary
PropertyReflector(PropertyDescriptor d)
          Create a PropertyReflector from a PropertyDescriptor.
 
Method Summary
 String getName()
           
 String getReadMethod()
           
 String getRW()
           
 String getType()
           
 String getWriteMethod()
           
 boolean isReadable()
           
 boolean isWritable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyReflector

public PropertyReflector(PropertyDescriptor d)
Create a PropertyReflector from a PropertyDescriptor.

Parameters:
d - The descriptor to wrap.
Method Detail

isReadable

public boolean isReadable()
Returns:
Whether this property is readable.

getReadMethod

public String getReadMethod()
Returns:
The name of the read method - usually "get-" or "is-" + Name.

isWritable

public boolean isWritable()
Returns:
Whether this property is writable.

getWriteMethod

public String getWriteMethod()
Returns:
The name of the write method.

getName

public String getName()
Returns:
The name of this property.

getType

public String getType()
Returns:
The type of this property.

getRW

public String getRW()
Returns:
A string (R|-)(W|-) indicating what access this property has.


Copyright © 2005-2011 ELCA. All Rights Reserved.