|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.validator.ValidationContext
public class ValidationContext
This class models the execution context of Validatable
instances. An instance of this class is not thread-safe.
| Constructor Summary | |
|---|---|
ValidationContext(Map globals,
Object toValidate,
Vlad cfg,
Locale locale)
Constructor for ValidationContext. |
|
ValidationContext(Map globals,
Object toValidate,
Vlad cfg,
Locale locale,
Map contextMap)
Constructor for ValidationContext with contextual object map. |
|
| Method Summary | |
|---|---|
Object |
get()
Returns the current object on this context's stack. |
Object |
get(String name)
This method first attempts looking up in the map of this instance; if no object is found, it resorts to the global map. |
Vlad |
getConfig()
Returns this instance's validator. |
Object |
getGlobal(String name)
|
Locale |
getLocale()
Returns this instance's Locale. |
Status |
getStatus()
Returns this instance's execution status. |
Object |
pop()
Pops the current object from this context's stack. |
void |
push(Object toValidate)
Pushes the given object on this context's stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationContext(Map globals,
Object toValidate,
Vlad cfg,
Locale locale)
public ValidationContext(Map globals,
Object toValidate,
Vlad cfg,
Locale locale,
Map contextMap)
| Method Detail |
|---|
public Object get()
Object.public void push(Object toValidate)
toValidate - an Object to validate.public Object pop()
Object.public Object getGlobal(String name)
name - the name of a global value.Vlad.getGlobal(String)public Object get(String name)
name - the name of the desired value.
Object corresponding to the given name,
or null if no such object exists.public Vlad getConfig()
Vlad.public Locale getLocale()
Locale.
Locale.public Status getStatus()
Status.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||