|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.ValidationContext
public class ValidationContext
Default implementation of IValidationContext.
| Constructor Summary | |
|---|---|
ValidationContext()
Creates a new validation context with the default locale ( Locale
.getDefault()). |
|
ValidationContext(Locale locale)
Creates a new validation context with the specified local. |
|
ValidationContext(Locale locale,
ClassLoader resourceClassLoader)
Creates a new validation context with the specified local. |
|
| Method Summary | |
|---|---|
Locale |
getLocale()
Returns the Locale that is to use for the creation of validation messages. |
ClassLoader |
getResourceClassLoader()
|
Object |
getValue(String propertyName)
Returns the value for property with the specified name. |
void |
setValue(String propertyName,
Object value)
Sets the value of the specified property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationContext(Locale locale,
ClassLoader resourceClassLoader)
locale - Setting the locale of this contextresourceClassLoader - setting the ClassLoader used to load resources
NullPointerException - if one of the specified parameters is nullpublic ValidationContext(Locale locale)
NullPointerException - if the specified parameter is nullpublic ValidationContext()
Locale
.getDefault()).
| Method Detail |
|---|
public Locale getLocale()
IValidationContext
getLocale in interface IValidationContextpublic Object getValue(String propertyName)
IValidationContext
getValue in interface IValidationContext
public void setValue(String propertyName,
Object value)
propertyName - the name of the propertyvalue - the value of the propertypublic ClassLoader getResourceClassLoader()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||