org.codehaus.jam
Interface JProperty

All Superinterfaces:
JAnnotatedElement, JElement

public interface JProperty
extends JAnnotatedElement

This is a helper class which provides java.beans-like functionality in the JAM framework. extension to the JAM framework that encapsulates the notion of a javabean properties. This class can be used to get similar functionality in JAM that is provided by the java.beans.* packge.

An array of JProperties for a given JClass can be retrieved using the getProperties factory method.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

Method Summary
 JMethod getGetter()
          Returns a JMethod which represents the getter for this property.
 JMethod getSetter()
          Returns a JMethod which represents the setter for this property.
 JClass getType()
          Returns a JClass which represents the type of this property.
 
Methods inherited from interface org.codehaus.jam.JAnnotatedElement
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getComment
 
Methods inherited from interface org.codehaus.jam.JElement
accept, getArtifact, getParent, getQualifiedName, getSimpleName, getSourcePosition, isSourceAvailable, toString
 

Method Detail

getType

JClass getType()
Returns a JClass which represents the type of this property.


getSetter

JMethod getSetter()
Returns a JMethod which represents the setter for this property. Returns null if this property is view-only.


getGetter

JMethod getGetter()
Returns a JMethod which represents the getter for this property. Returns null if this property is write-only.