public class ValidationContext extends Object
Constructor and Description |
---|
ValidationContext() |
Modifier and Type | Method and Description |
---|---|
static ValidationContext |
create() |
String |
createMessage(String message,
String subject,
Object[] actualArgs) |
static void |
destroy() |
static ValidationContext |
get() |
static String |
getBindingPath() |
static ValidationContext |
getCurrentInstance()
Provides access to the ValidationContext.
|
String |
getCurrentSubject() |
String |
getMessage(String key) |
Map<String,Object> |
getObjectRegistry() |
Map<String,Object> |
getParams()
Proivdes a list of parameters that we can access from field validators.
|
Object |
getParentObject()
Get the parent object.
|
Object |
getProposedPropertyValue(String propertyName)
Gets the proposed property value.
|
protected ResourceBundleLocator |
getResourceBundleLocator() |
void |
pop() |
void |
pushObject(Object object) |
void |
pushProperty(String component) |
protected void |
register(ValidationContext context)
Allows the subclass to register an instance of itself
as the context.
|
void |
setCurrentSubject(String currentSubject) |
void |
setObjectRegistry(Map<String,Object> objectRegistry) |
void |
setParams(Map<String,Object> params) |
void |
setParentObject(Object parentObject)
Allows our integration piece for JSF or Spring MVC to set the
parent object.
|
void |
setResourceBundleLocator(ResourceBundleLocator resourceBundleLocator) |
public static ValidationContext getCurrentInstance()
protected void register(ValidationContext context)
context
- xxpublic Object getParentObject()
public void setParentObject(Object parentObject)
parentObject
- xxpublic Map<String,Object> getParams()
public Object getProposedPropertyValue(String propertyName)
propertyName
- xxpublic void pop()
public void pushProperty(String component)
public void pushObject(Object object)
public static String getBindingPath()
public static ValidationContext create()
public static ValidationContext get()
public static void destroy()
public String getCurrentSubject()
public void setCurrentSubject(String currentSubject)
public void setResourceBundleLocator(ResourceBundleLocator resourceBundleLocator)
protected ResourceBundleLocator getResourceBundleLocator()
Copyright © 2014. All rights reserved.