org.beanfabrics.meta
Class PropertyInfo

java.lang.Object
  extended by org.beanfabrics.meta.PropertyInfo

public class PropertyInfo
extends java.lang.Object

The PropertyInfo is component of a TypeInfo. It represents meta information about a specific property of the corresponding model class. A property is either mapped to a Field or a Getter-Method.


Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.reflect.Member getMember()
          Returns the java member that defined the represented property (either a Field or (getter)-Method).
 java.lang.String getName()
          Returns the name of the represented property.
 TypeInfo getOwner()
          Returns the type info this info is part of.
 TypeInfo getTypeInfo()
          Returns the type info of the represented property.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOwner

public TypeInfo getOwner()
Returns the type info this info is part of.

Returns:
the type info this info is part of

getMember

public java.lang.reflect.Member getMember()
Returns the java member that defined the represented property (either a Field or (getter)-Method).

Returns:
the java member that defined the represented property

getName

public java.lang.String getName()
Returns the name of the represented property.

Returns:
the name of the represented property

getTypeInfo

public TypeInfo getTypeInfo()
Returns the type info of the represented property.

Returns:
the model type of the represented property

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object