com.softwareag.centrasite.appl.framework.validation.impl
Class ValidatableBeanProperty

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.DefaultValidatable
      extended by com.softwareag.centrasite.appl.framework.validation.impl.ValidatableBeanProperty
All Implemented Interfaces:
NamedObject, Validatable, ValidatableProperty
Direct Known Subclasses:
ValidatableBooleanProperty, ValidatableConceptProperty, ValidatableConceptRefProperty, ValidatableDateProperty, ValidatableIntegerProperty, ValidatableListProperty, ValidatableStringProperty, ValidatableUserProperty

public class ValidatableBeanProperty
extends DefaultValidatable
implements NamedObject, ValidatableProperty

This is an implementation of Validatable, which allows to validate a beans property.


Constructor Summary
ValidatableBeanProperty()
           
 
Method Summary
 void change(java.lang.Object pValue)
          Invokes the setter on the bean.
 java.lang.Object getBean()
          Returns the bean, on which the Validatable acts.
 java.lang.reflect.Method getGetter()
          Returns the getter, which is used to query the properties value.
 java.lang.String getProperty()
          Returns the property name.
 java.lang.reflect.Method getSetter()
          Returns the setter, which is used to set the properties value.
 java.lang.Class<?> getType()
          Returns the property type.
 void setBean(java.lang.Object pBean)
          Sets the bean, on which the Validatable acts.
 void setGetter(java.lang.reflect.Method pGetter)
          Sets the getter, which is used to query the properties value.
 void setSetter(java.lang.reflect.Method pSetter)
          Sets the setter, which is used to set the properties value.
 java.lang.Object value()
          Invokes the getter on the bean and returns the result.
 
Methods inherited from class com.softwareag.centrasite.appl.framework.validation.impl.DefaultValidatable
add, addConstraint, getConstraints, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.validation.NamedObject
getName
 

Constructor Detail

ValidatableBeanProperty

public ValidatableBeanProperty()
Method Detail

value

public java.lang.Object value()
                       throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Invokes the getter on the bean and returns the result.

Specified by:
value in interface ValidatableProperty
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

change

public void change(java.lang.Object pValue)
            throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Invokes the setter on the bean.

Specified by:
change in interface ValidatableProperty
Throws:
com.softwareag.centrasite.appl.framework.CSAppFrameworkException

getProperty

public java.lang.String getProperty()
Description copied from interface: ValidatableProperty
Returns the property name.

Specified by:
getProperty in interface ValidatableProperty

getType

public java.lang.Class<?> getType()
Description copied from interface: ValidatableProperty
Returns the property type.

Specified by:
getType in interface ValidatableProperty

getBean

public java.lang.Object getBean()
Returns the bean, on which the Validatable acts.


setBean

public void setBean(java.lang.Object pBean)
Sets the bean, on which the Validatable acts.


getSetter

public java.lang.reflect.Method getSetter()
Returns the setter, which is used to set the properties value.


setSetter

public void setSetter(java.lang.reflect.Method pSetter)
Sets the setter, which is used to set the properties value.


getGetter

public java.lang.reflect.Method getGetter()
Returns the getter, which is used to query the properties value.


setGetter

public void setGetter(java.lang.reflect.Method pGetter)
Sets the getter, which is used to query the properties value.