org.apache.beehive.controls.runtime.generator
Class AptProperty

Object
  extended by AptProperty

public class AptProperty
extends Object

The AptProperty class represents a control Property where the property attributes are derived using APT metadata


Constructor Summary
AptProperty(AptPropertySet propertySet, AnnotationTypeElementDeclaration propDecl, TwoPhaseAnnotationProcessor ap)
          Constructs a new AptProperty instance from APT metadata
 
Method Summary
 String getAccessorName()
          Returns the base property name.
 String getEditorClass()
          Returns the class name of the property editor class, or null
 FeatureInfo getFeatureInfo()
          Returns any FeatureInfo associated with the property (or null if none)
 String getKeyName()
          Returns the static final field name containing the key for this Property
 String getName()
          Returns the name associated with this Property in the PropertySet
 PropertyInfo getPropertyInfo()
          Returns any PropertyInfo associated with the property (or null if none)
 AptPropertySet getPropertySet()
          Returns the PropertySet associated with the Property
 String getReadMethod()
          Returns the name of the property reading accessor method
 String getType()
          Returns the type of the Property
 String getWriteMethod()
          Returns the name of the property writing accessor method
 boolean isAnnotation()
          Returns true if the property is an annotation type, false otherwise
 boolean isBound()
          Returns 'true' is the property is a bound property that will support registration of a PropertyChangeListener for change notifications.
 boolean isConstrained()
          Returns 'true' is the property is a constrained property that will support registration of a VetoableChangeListener for vetoable change notifications.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AptProperty

public AptProperty(AptPropertySet propertySet,
                   AnnotationTypeElementDeclaration propDecl,
                   TwoPhaseAnnotationProcessor ap)
Constructs a new AptProperty instance from APT metadata

Parameters:
propertySet - the declaring PropertySet
propDecl - the declration of the property annotation type element
Method Detail

getPropertySet

public AptPropertySet getPropertySet()
Returns the PropertySet associated with the Property


getAccessorName

public String getAccessorName()
Returns the base property name. The associated accessor methods will have the form set{name} and get{name}


getReadMethod

public String getReadMethod()
Returns the name of the property reading accessor method


getWriteMethod

public String getWriteMethod()
Returns the name of the property writing accessor method


getName

public String getName()
Returns the name associated with this Property in the PropertySet


getKeyName

public String getKeyName()
Returns the static final field name containing the key for this Property


getType

public String getType()
Returns the type of the Property


isAnnotation

public boolean isAnnotation()
Returns true if the property is an annotation type, false otherwise


getPropertyInfo

public PropertyInfo getPropertyInfo()
Returns any PropertyInfo associated with the property (or null if none)


getFeatureInfo

public FeatureInfo getFeatureInfo()
Returns any FeatureInfo associated with the property (or null if none)


isBound

public boolean isBound()
Returns 'true' is the property is a bound property that will support registration of a PropertyChangeListener for change notifications.


isConstrained

public boolean isConstrained()
Returns 'true' is the property is a constrained property that will support registration of a VetoableChangeListener for vetoable change notifications.


getEditorClass

public String getEditorClass()
Returns the class name of the property editor class, or null