it.amattioli.workstate.core
Interface AttributeValidator

Show UML class diagram

public interface AttributeValidator

This interface must be implemented by classes that validate attribute values.


Method Summary
 void validate(Object attribute)
          Validate an attribute value.
 

Method Detail

validate

void validate(Object attribute)
              throws WorkflowException
Validate an attribute value.

If the value is valid the method will terminate normally, otherwise it will throw a WorkflowException.

Parameters:
attribute - the value to be validated
Throws:
ClassCastException - if the parameter is not an instance of the class that this validator expects
WorkflowException - if the value is not valid


Copyright © 2011. All Rights Reserved.