jodd.vtor
Class Check

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

public class Check
extends java.lang.Object

Holder for validation constraint.


Constructor Summary
Check(java.lang.String name, ValidationConstraint constraint)
          Creates new check for provided constraint inside current context.
 
Method Summary
 ValidationConstraint getConstraint()
          Returns constraint to check.
 java.lang.String getName()
          Returns check name.
 java.lang.String[] getProfiles()
           
 int getSeverity()
           
 void setProfiles(java.lang.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(java.lang.String name,
             ValidationConstraint constraint)
Creates new check for provided constraint inside current context.

Method Detail

getName

public java.lang.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 java.lang.String[] getProfiles()

setProfiles

public void setProfiles(java.lang.String... profiles)


Copyright © 2003-2010 Jodd Team