org.infoglue.cms.entities.kernel
Class ValidatableEntityVO

java.lang.Object
  extended by org.infoglue.cms.entities.kernel.ValidatableEntityVO
All Implemented Interfaces:
java.io.Serializable, BaseEntityVO
Direct Known Subclasses:
PublicationVO, SystemUserVO

public abstract class ValidatableEntityVO
extends java.lang.Object
implements BaseEntityVO

ValitadeableEntity.java Created on 2002-sep-16

Author:
Stefan Sik, ss@frovi.com ss Provides entityvaluobjects with a set of validation rules. The rules can be retrieved and reviewed by action classes with getConstraintRules.
See Also:
Serialized Form

Field Summary
protected  ConstraintRuleList rules
           
 
Constructor Summary
ValidatableEntityVO()
           
 
Method Summary
 ConstraintRuleList getConstraintRuleList()
          getConstraintRuleList returns the ConstraintRuleList object
 java.util.Collection getConstraintRules()
          getConstraintRules returns a collection of ConstraintRule objects this is the collection returned by getConstraintRuleList().getRules()
 ConstraintRule getRule(java.lang.String fieldName)
           
abstract  void PrepareValidation()
           
 ConstraintExceptionBuffer validate()
           
 ConstraintExceptionBuffer validate(ValidatableEntityVO vo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infoglue.cms.entities.kernel.BaseEntityVO
getId
 

Field Detail

rules

protected ConstraintRuleList rules
See Also:
BaseEntityVO.getId()
Constructor Detail

ValidatableEntityVO

public ValidatableEntityVO()
Method Detail

getRule

public ConstraintRule getRule(java.lang.String fieldName)

getConstraintRules

public java.util.Collection getConstraintRules()
getConstraintRules returns a collection of ConstraintRule objects this is the collection returned by getConstraintRuleList().getRules()


getConstraintRuleList

public ConstraintRuleList getConstraintRuleList()
getConstraintRuleList returns the ConstraintRuleList object


PrepareValidation

public abstract void PrepareValidation()

validate

public ConstraintExceptionBuffer validate()
Specified by:
validate in interface BaseEntityVO
Returns:
ConstraintExceptionBuffer

validate

public ConstraintExceptionBuffer validate(ValidatableEntityVO vo)


Copyright © 2005 InfoGlue.org All Rights Reserved.