vdoclet.beaninfo
Class PropertyInfo

java.lang.Object
  |
  +--vdoclet.docinfo.BaseInfo
        |
        +--vdoclet.docinfo.BaseElementInfo
              |
              +--vdoclet.docinfo.BaseClassElementInfo
                    |
                    +--vdoclet.docinfo.FieldInfo
                          |
                          +--vdoclet.beaninfo.PropertyInfo
All Implemented Interfaces:
Cloneable

public class PropertyInfo
extends FieldInfo

Info about a JavaBean property


Constructor Summary
PropertyInfo(String type, String name, MethodInfo getter, MethodInfo setter)
          Construct a new PropertyInfo
 
Method Summary
static PropertyInfo fromField(String type, String name)
          Create a PropertyInfo based on field details
static PropertyInfo fromGetter(MethodInfo getter)
          Create a PropertyInfo based on a getter-method
 MethodInfo getGetter()
          Get the getter-method
 MethodInfo getSetter()
          Get the setter-method
 List getTags(String name)
          Get all tags with the given name.
 
Methods inherited from class vdoclet.docinfo.FieldInfo
equals, getType, hashCode, toString
 
Methods inherited from class vdoclet.docinfo.BaseClassElementInfo
getContainingClass, setContainingClass
 
Methods inherited from class vdoclet.docinfo.BaseElementInfo
getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, setAbstract, setFinal, setPrivate, setProtected, setPublic, setStatic
 
Methods inherited from class vdoclet.docinfo.BaseInfo
addTag, addTag, addTags, clone, getComment, getName, getTag, getTags, getTagValue, getTagValue, setComment, setName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyInfo

public PropertyInfo(String type,
                    String name,
                    MethodInfo getter,
                    MethodInfo setter)
Construct a new PropertyInfo

Method Detail

fromField

public static PropertyInfo fromField(String type,
                                     String name)
Create a PropertyInfo based on field details

Parameters:
type - data-type
name - field-name
Returns:
a PropertyInfo

fromGetter

public static PropertyInfo fromGetter(MethodInfo getter)
Create a PropertyInfo based on a getter-method

Returns:
a PropertyInfo

getGetter

public MethodInfo getGetter()
Get the getter-method


getSetter

public MethodInfo getSetter()
Get the setter-method


getTags

public List getTags(String name)
Get all tags with the given name.

Overrides:
getTags in class BaseInfo
Returns:
List(TagInfo)