jodd.vtor
Class Check

java.lang.Object
  extended by jodd.vtor.Check

public class Check
extends Object

Holder for validation constraint.


Constructor Summary
Check(String name, ValidationConstraint constraint)
          Creates new check for provided constraint inside current context.
 
Method Summary
 ValidationConstraint getConstraint()
          Returns constraint to check.
 String getName()
          Returns check name.
 String[] getProfiles()
           
 int getSeverity()
           
 void setProfiles(String... profiles)
           
 void setSeverity(int severity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Check

public Check(String name,
             ValidationConstraint constraint)
Creates new check for provided constraint inside current context.

Method Detail

getName

public String getName()
Returns check name.


getConstraint

public ValidationConstraint getConstraint()
Returns constraint to check.


getSeverity

public int getSeverity()

setSeverity

public void setSeverity(int severity)

getProfiles

public String[] getProfiles()

setProfiles

public void setProfiles(String... profiles)