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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.ValidatableSelectedValueProperty
All Implemented Interfaces:
NamedObject, Validatable, ValidatableProperty

public class ValidatableSelectedValueProperty
extends java.lang.Object
implements ValidatableProperty, NamedObject, Validatable

An implementation of ValidatableProperty, which allows to select values from a collection of acceptable values.


Constructor Summary
ValidatableSelectedValueProperty(ValidatableProperty pProperty)
          Creates a new instance, which is reading from, or writing to, the given ValidatableProperty.
 
Method Summary
 void addConstraint(Constraint pConstraint)
          Adds a new element to the validatables constraints.
 void change(java.lang.Object pValue)
          Sets the property value.
 java.util.Collection<Constraint> getConstraints()
          Returns the objects set of constraints.
 java.lang.String getName()
          Returns the objects name.
 java.lang.String getProperty()
          Returns the property name.
 java.util.Collection<SelectableValue> getSelectableValues()
          Returns the array of selectable values.
 java.lang.Class<?> getType()
          Returns the property type.
 void setSelectableValues(java.util.Collection<SelectableValue> pSelectableValues)
          Sets the array of selectable values.
 java.lang.Object value()
          Returns the property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatableSelectedValueProperty

public ValidatableSelectedValueProperty(ValidatableProperty pProperty)
Creates a new instance, which is reading from, or writing to, the given ValidatableProperty.

Method Detail

getSelectableValues

public java.util.Collection<SelectableValue> getSelectableValues()
Returns the array of selectable values.


setSelectableValues

public void setSelectableValues(java.util.Collection<SelectableValue> pSelectableValues)
Sets the array of selectable values.


change

public void change(java.lang.Object pValue)
            throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Description copied from interface: ValidatableProperty
Sets the property value.

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

value

public java.lang.Object value()
                       throws com.softwareag.centrasite.appl.framework.CSAppFrameworkException
Description copied from interface: ValidatableProperty
Returns the property value.

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

getName

public java.lang.String getName()
Description copied from interface: NamedObject
Returns the objects name.

Specified by:
getName in interface NamedObject

addConstraint

public void addConstraint(Constraint pConstraint)
Description copied from interface: Validatable
Adds a new element to the validatables constraints.

Specified by:
addConstraint in interface Validatable

getConstraints

public java.util.Collection<Constraint> getConstraints()
Description copied from interface: Validatable
Returns the objects set of constraints.

Specified by:
getConstraints in interface Validatable