org.onemind.commons.relabean
Class PropertyDescriptor

java.lang.Object
  extended byjava.beans.FeatureDescriptor
      extended byjava.beans.PropertyDescriptor
          extended byorg.onemind.commons.relabean.PropertyDescriptor

public final class PropertyDescriptor
extends java.beans.PropertyDescriptor

A default extension to Sun's bean property descriptor

Version:
$Id: PropertyDescriptor.java,v 1.2 2004/08/26 16:28:58 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Constructor Summary
PropertyDescriptor(java.lang.String propertyName, java.lang.Class beanClass)
          {@inheritDoc}
PropertyDescriptor(java.lang.String propertyName, java.lang.Class beanClass, java.lang.String getterName, java.lang.String setterName)
          {@inheritDoc}
PropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter)
          {@inheritDoc}
 
Method Summary
 void dump(java.lang.String prefix, java.io.Writer writer)
          Dump the property
 
Methods inherited from class java.beans.PropertyDescriptor
equals, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
 
Methods inherited from class java.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDescriptor

public PropertyDescriptor(java.lang.String propertyName,
                          java.lang.Class beanClass)
                   throws java.beans.IntrospectionException
{@inheritDoc}


PropertyDescriptor

public PropertyDescriptor(java.lang.String propertyName,
                          java.lang.reflect.Method getter,
                          java.lang.reflect.Method setter)
                   throws java.beans.IntrospectionException
{@inheritDoc}


PropertyDescriptor

public PropertyDescriptor(java.lang.String propertyName,
                          java.lang.Class beanClass,
                          java.lang.String getterName,
                          java.lang.String setterName)
                   throws java.beans.IntrospectionException
{@inheritDoc}

Method Detail

dump

public final void dump(java.lang.String prefix,
                       java.io.Writer writer)
                throws java.io.IOException
Dump the property

Parameters:
prefix - the prefix
writer - the writer
Throws:
java.io.IOException - if there's IO problem


Copyright © 2004-2005 . All Rights Reserved.