com.softwareag.centrasite.appl.framework.mapping
Class BaseProperty

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.mapping.BaseProperty
All Implemented Interfaces:
Property
Direct Known Subclasses:
Association, AssociationTarget, Classification, ClassificationConcept, ClassifiedInstanceProperty, ExternalLink, NestedProperty, RegistryObjectProperty, Slot, Slots

public class BaseProperty
extends java.lang.Object
implements Property

Base implementation of the Property interface.


Constructor Summary
BaseProperty()
           
 
Method Summary
 AttributeDescription getAttributeDescription()
          Returns attribute description of this property.
 java.lang.String getAttributeName()
           
 BeanType getBeanType()
          Returns the bean type this property.
 java.lang.reflect.Method getGetter()
          Returns the getter java method for this property.
 java.lang.String getName()
          Returns the property name.
 java.lang.reflect.Method getSetter()
          Returns the setter java method for this property.
 java.lang.Class<?> getTargetType()
          
 boolean hasAttributeDescription()
           
 void setAttributeDescription(AttributeDescription attributeDescription)
           
 void setAttributeName(java.lang.String attributeName)
           
 void setBeanType(BeanType beanType)
           
 void setGetter(java.lang.reflect.Method getter)
           
 void setHasAttributeDescription(boolean hasAttributeDescription)
           
 void setName(java.lang.String name)
          Sets the property name.
 void setSetter(java.lang.reflect.Method setter)
           
 void setTargetType(java.lang.Class<?> targetType)
          Sets the target type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseProperty

public BaseProperty()
Method Detail

getAttributeDescription

public AttributeDescription getAttributeDescription()
Description copied from interface: Property
Returns attribute description of this property.

Specified by:
getAttributeDescription in interface Property
Returns:
AttributeDescription

setAttributeDescription

public void setAttributeDescription(AttributeDescription attributeDescription)
                             throws CSAppFrameworkException
Parameters:
attributeDescription -
Throws:
CSAppFrameworkException

getName

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

Specified by:
getName in interface Property
Returns:
String

setName

public void setName(java.lang.String name)
Sets the property name.

Parameters:
name -

getTargetType

public java.lang.Class<?> getTargetType()

Specified by:
getTargetType in interface Property
Returns:
the targetType

setTargetType

public void setTargetType(java.lang.Class<?> targetType)
Sets the target type.

Parameters:
targetType - the target type.

getGetter

public java.lang.reflect.Method getGetter()
Returns the getter java method for this property.

Specified by:
getGetter in interface Property
Returns:
method

getSetter

public java.lang.reflect.Method getSetter()
Returns the setter java method for this property.

Specified by:
getSetter in interface Property
Returns:
method

setGetter

public void setGetter(java.lang.reflect.Method getter)
Parameters:
getter - the getter to set

setSetter

public void setSetter(java.lang.reflect.Method setter)
Parameters:
setter - the setter to set

getBeanType

public BeanType getBeanType()
Description copied from interface: Property
Returns the bean type this property.

Specified by:
getBeanType in interface Property
Returns:
BeanType

setBeanType

public void setBeanType(BeanType beanType)
Parameters:
beanType -

getAttributeName

public java.lang.String getAttributeName()
Returns:
the attributeName

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Parameters:
attributeName - the attributeName to set

hasAttributeDescription

public boolean hasAttributeDescription()

setHasAttributeDescription

public void setHasAttributeDescription(boolean hasAttributeDescription)