org.teatrove.tea.util
Class GenericPropertyDescriptor

java.lang.Object
  extended by java.beans.FeatureDescriptor
      extended by java.beans.PropertyDescriptor
          extended by org.teatrove.tea.util.GenericPropertyDescriptor

public class GenericPropertyDescriptor
extends PropertyDescriptor

Author:
Nick Hagan

Constructor Summary
GenericPropertyDescriptor(GenericType rootType, PropertyDescriptor property)
           
GenericPropertyDescriptor(PropertyDescriptor property)
           
 
Method Summary
 Enumeration<String> attributeNames()
           
 PropertyEditor createPropertyEditor(Object bean)
           
 boolean equals(Object obj)
           
 String getDisplayName()
           
 GenericType getGenericPropertyType()
           
 String getName()
           
 Class<?> getPropertyEditorClass()
           
 Class<?> getPropertyType()
           
 Method getReadMethod()
           
 String getShortDescription()
           
 Object getValue(String attributeName)
           
 Method getWriteMethod()
           
 int hashCode()
           
 boolean isBound()
           
 boolean isConstrained()
           
 boolean isExpert()
           
 boolean isHidden()
           
 boolean isPreferred()
           
protected  void resolvePropertyType()
           
protected  void resolvePropertyType0()
           
 void setBound(boolean bound)
           
 void setConstrained(boolean constrained)
           
 void setDisplayName(String displayName)
           
 void setExpert(boolean expert)
           
 void setHidden(boolean hidden)
           
 void setName(String name)
           
 void setPreferred(boolean preferred)
           
 void setPropertyEditorClass(Class<?> propertyEditorClass)
           
 void setReadMethod(Method readMethod)
           
 void setShortDescription(String text)
           
 void setValue(String attributeName, Object value)
           
 void setWriteMethod(Method writeMethod)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericPropertyDescriptor

public GenericPropertyDescriptor(PropertyDescriptor property)
                          throws IntrospectionException
Throws:
IntrospectionException

GenericPropertyDescriptor

public GenericPropertyDescriptor(GenericType rootType,
                                 PropertyDescriptor property)
                          throws IntrospectionException
Throws:
IntrospectionException
Method Detail

getPropertyType

public Class<?> getPropertyType()
Overrides:
getPropertyType in class PropertyDescriptor

getGenericPropertyType

public GenericType getGenericPropertyType()

resolvePropertyType

protected void resolvePropertyType()

resolvePropertyType0

protected void resolvePropertyType0()

getReadMethod

public Method getReadMethod()
Overrides:
getReadMethod in class PropertyDescriptor

setReadMethod

public void setReadMethod(Method readMethod)
                   throws IntrospectionException
Overrides:
setReadMethod in class PropertyDescriptor
Throws:
IntrospectionException

getWriteMethod

public Method getWriteMethod()
Overrides:
getWriteMethod in class PropertyDescriptor

setWriteMethod

public void setWriteMethod(Method writeMethod)
                    throws IntrospectionException
Overrides:
setWriteMethod in class PropertyDescriptor
Throws:
IntrospectionException

isBound

public boolean isBound()
Overrides:
isBound in class PropertyDescriptor

setBound

public void setBound(boolean bound)
Overrides:
setBound in class PropertyDescriptor

isConstrained

public boolean isConstrained()
Overrides:
isConstrained in class PropertyDescriptor

setConstrained

public void setConstrained(boolean constrained)
Overrides:
setConstrained in class PropertyDescriptor

setPropertyEditorClass

public void setPropertyEditorClass(Class<?> propertyEditorClass)
Overrides:
setPropertyEditorClass in class PropertyDescriptor

getPropertyEditorClass

public Class<?> getPropertyEditorClass()
Overrides:
getPropertyEditorClass in class PropertyDescriptor

createPropertyEditor

public PropertyEditor createPropertyEditor(Object bean)
Overrides:
createPropertyEditor in class PropertyDescriptor

getName

public String getName()
Overrides:
getName in class FeatureDescriptor

setName

public void setName(String name)
Overrides:
setName in class FeatureDescriptor

getDisplayName

public String getDisplayName()
Overrides:
getDisplayName in class FeatureDescriptor

setDisplayName

public void setDisplayName(String displayName)
Overrides:
setDisplayName in class FeatureDescriptor

isExpert

public boolean isExpert()
Overrides:
isExpert in class FeatureDescriptor

setExpert

public void setExpert(boolean expert)
Overrides:
setExpert in class FeatureDescriptor

isHidden

public boolean isHidden()
Overrides:
isHidden in class FeatureDescriptor

setHidden

public void setHidden(boolean hidden)
Overrides:
setHidden in class FeatureDescriptor

isPreferred

public boolean isPreferred()
Overrides:
isPreferred in class FeatureDescriptor

setPreferred

public void setPreferred(boolean preferred)
Overrides:
setPreferred in class FeatureDescriptor

getShortDescription

public String getShortDescription()
Overrides:
getShortDescription in class FeatureDescriptor

setShortDescription

public void setShortDescription(String text)
Overrides:
setShortDescription in class FeatureDescriptor

setValue

public void setValue(String attributeName,
                     Object value)
Overrides:
setValue in class FeatureDescriptor

getValue

public Object getValue(String attributeName)
Overrides:
getValue in class FeatureDescriptor

attributeNames

public Enumeration<String> attributeNames()
Overrides:
attributeNames in class FeatureDescriptor

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class PropertyDescriptor

hashCode

public int hashCode()
Overrides:
hashCode in class PropertyDescriptor


Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.