|
||||||||||
| 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(java.util.Map globals,
java.lang.Object toValidate,
Vlad cfg,
java.util.Locale locale)
Constructor for ValidationContext. |
|
ValidationContext(java.util.Map globals,
java.lang.Object toValidate,
Vlad cfg,
java.util.Locale locale,
java.util.Map contextMap)
Constructor for ValidationContext with contextual object map. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get()
Returns the current object on this context's stack. |
java.lang.Object |
get(java.lang.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. |
java.lang.Object |
getGlobal(java.lang.String name)
|
java.util.Locale |
getLocale()
Returns this instance's Locale. |
Status |
getStatus()
Returns this instance's execution status. |
java.lang.Object |
pop()
Pops the current object from this context's stack. |
void |
push(java.lang.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(java.util.Map globals,
java.lang.Object toValidate,
Vlad cfg,
java.util.Locale locale)
public ValidationContext(java.util.Map globals,
java.lang.Object toValidate,
Vlad cfg,
java.util.Locale locale,
java.util.Map contextMap)
| Method Detail |
|---|
public java.lang.Object get()
Object.public void push(java.lang.Object toValidate)
toValidate - an Object to validate.public java.lang.Object pop()
Object.public java.lang.Object getGlobal(java.lang.String name)
name - the name of a global value.Vlad.getGlobal(String)public java.lang.Object get(java.lang.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 java.util.Locale getLocale()
Locale.
Locale.public Status getStatus()
Status.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||