com.threerings.antidote
Class Validator

java.lang.Object
  extended by com.threerings.antidote.Validator

public class Validator
extends Object

Turns lists of RequiresValidation objects into a single BuildException


Constructor Summary
Validator()
           
 
Method Summary
 void addValidation(RequiresValidation validator)
          Add a RequiresValidation object to be reported by this Validator
 void validateAll()
          Validates all RequiresValidation objects known to this Validator, throwing a single BuildException for all detected violations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Method Detail

addValidation

public void addValidation(RequiresValidation validator)
Add a RequiresValidation object to be reported by this Validator


validateAll

public void validateAll()
Validates all RequiresValidation objects known to this Validator, throwing a single BuildException for all detected violations.

Throws:
BuildException


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.