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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.DefaultValidatable
All Implemented Interfaces:
NamedObject, Validatable
Direct Known Subclasses:
DefaultControl, ValidatableBeanProperty

public class DefaultValidatable
extends java.lang.Object
implements Validatable, NamedObject

Default implementation of Validatable.


Constructor Summary
DefaultValidatable()
           
 
Method Summary
 void add(Constraint pConstraint)
          Adds a new constraint to the Validatable.
 void addConstraint(Constraint pConstraint)
          Adds a new element to the validatables constraints.
 java.util.Collection<Constraint> getConstraints()
          Returns the objects set of constraints.
 java.lang.String getName()
          Returns the objects name.
 void setName(java.lang.String pName)
          Sets the objects name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValidatable

public DefaultValidatable()
Method Detail

add

public void add(Constraint pConstraint)
Adds a new constraint to the 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

setName

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


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