org.jboss.beans.info.plugins
Class AbstractPropertyInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.AnnotationHolder
              extended by org.jboss.beans.info.plugins.AbstractPropertyInfo
All Implemented Interfaces:
Serializable, Cloneable, PropertyInfo, AnnotatedInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
DefaultPropertyInfo, FieldPropertyInfo

public abstract class AbstractPropertyInfo
extends AnnotationHolder
implements PropertyInfo, Serializable

Property info.

Version:
$Revision: 70913 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder
annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractPropertyInfo()
          Create a new property info
AbstractPropertyInfo(String name)
          Create a new property info
AbstractPropertyInfo(String name, String upperName, TypeInfo type)
          Create a new property info
AbstractPropertyInfo(String name, String upperName, TypeInfo type, AnnotationValue[] annotations)
          Create a new property info
 
Method Summary
 boolean equals(Object object)
           
 BeanInfo getBeanInfo()
          Get the BeanInfo
 FieldInfo getFieldInfo()
          Get the field info in case impl uses field to handle property ops.
 int getHashCode()
           
 String getName()
          Get the property name
 TypeInfo getType()
          Get the type
 String getUpperName()
          Get the uppercase version of the property name
protected  void init(String name, String upperName, TypeInfo type)
          Initialize fields.
 void setType(TypeInfo type)
           
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.beans.info.spi.PropertyInfo
get, getGetter, getSetter, isReadable, isWritable, set, setGetter, setSetter
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 

Constructor Detail

AbstractPropertyInfo

public AbstractPropertyInfo()
Create a new property info


AbstractPropertyInfo

public AbstractPropertyInfo(String name)
Create a new property info

Parameters:
name - the name

AbstractPropertyInfo

public AbstractPropertyInfo(String name,
                            String upperName,
                            TypeInfo type)
Create a new property info

Parameters:
name - the name
upperName - the upper case version of the name
type - the type

AbstractPropertyInfo

public AbstractPropertyInfo(String name,
                            String upperName,
                            TypeInfo type,
                            AnnotationValue[] annotations)
Create a new property info

Parameters:
name - the name
upperName - the upper case version of the name
type - the type
annotations - the annotations
Method Detail

init

protected void init(String name,
                    String upperName,
                    TypeInfo type)
Initialize fields.

Parameters:
name - the name
upperName - the upper name
type - the type

getBeanInfo

public BeanInfo getBeanInfo()
Description copied from interface: PropertyInfo
Get the BeanInfo

Specified by:
getBeanInfo in interface PropertyInfo
Returns:
the bean info

getName

public String getName()
Description copied from interface: PropertyInfo
Get the property name

Specified by:
getName in interface PropertyInfo
Returns:
the name

getUpperName

public String getUpperName()
Description copied from interface: PropertyInfo
Get the uppercase version of the property name

Specified by:
getUpperName in interface PropertyInfo
Returns:
the name

getType

public TypeInfo getType()
Description copied from interface: PropertyInfo
Get the type

Specified by:
getType in interface PropertyInfo
Returns:
the type

setType

public void setType(TypeInfo type)

getFieldInfo

public FieldInfo getFieldInfo()
Description copied from interface: PropertyInfo
Get the field info in case impl uses field to handle property ops.

Specified by:
getFieldInfo in interface PropertyInfo
Returns:
the field info or null if no such info available

equals

public boolean equals(Object object)
Overrides:
equals in class Object

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class org.jboss.util.JBossObject

getHashCode

public int getHashCode()
Overrides:
getHashCode in class org.jboss.util.JBossObject


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.