net.sf.composite.validate.validators
Class SimpleComponentValidator

java.lang.Object
  extended by net.sf.composite.validate.validators.BaseCompositeValidator
      extended by net.sf.composite.validate.validators.SimpleComponentValidator
All Implemented Interfaces:
ComponentValidator

public class SimpleComponentValidator
extends BaseCompositeValidator

A simple component validator that requires at least one component be present in the composite and that there are no null components. If the composite is strictly typed, this composite also tests that each component is of the required type.

Since:
Mar 11, 2005
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.composite.validate.validators.BaseCompositeValidator
log
 
Constructor Summary
SimpleComponentValidator()
           
 
Method Summary
protected  void validateImpl(java.lang.Object composite)
           
 
Methods inherited from class net.sf.composite.validate.validators.BaseCompositeValidator
getComponentAccessor, setComponentAccessor, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleComponentValidator

public SimpleComponentValidator()
Method Detail

validateImpl

protected void validateImpl(java.lang.Object composite)
                     throws java.lang.Exception
Specified by:
validateImpl in class BaseCompositeValidator
Throws:
java.lang.Exception


Copyright © 2005-2008.