|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.devsphere.mapping.HandlerUtils
Utility class that implements operations used typically by handlers.
| Method Summary | |
static java.util.ResourceBundle |
getBeanResources(java.lang.Class beanClass)
Gets the resources associated with a bean using the default locale. |
static java.util.ResourceBundle |
getBeanResources(java.lang.Class beanClass,
java.util.Locale locale)
Gets the resources associated with a bean using the given locale. |
static java.util.ResourceBundle |
getBeanResources(java.lang.String beanName)
Gets the resources associated with a bean using the default locale. |
static java.util.ResourceBundle |
getBeanResources(java.lang.String beanName,
java.util.Locale locale)
Gets the resources associated with a bean using the given locale. |
static java.lang.Object |
getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.Class beanClass)
Gets a resource object associated to a given key. |
static java.lang.Object |
getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.Class beanClass,
java.util.Locale locale)
Gets a resource object associated to a given key. |
static java.lang.Object |
getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.String beanName)
Gets a resource object associated to a given key. |
static java.lang.Object |
getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.String beanName,
java.util.Locale locale)
Gets a resource object associated to a given key. |
static java.util.Hashtable |
removeUserErrors(java.util.Hashtable errorTable)
Makes a clone of an error table and then removes the clone's user errors, letting the original error table unchanged. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.util.ResourceBundle getBeanResources(java.lang.Class beanClass)
throws java.util.MissingResourceException
beanClass - the class whose name is used to form the base name of the resources.ResourceBundle object containing the bean resources.NullPointerException - if beanClass is null.java.util.MissingResourceException - if the bean resources aren't found.
public static java.util.ResourceBundle getBeanResources(java.lang.Class beanClass,
java.util.Locale locale)
throws java.util.MissingResourceException
beanClass - the class whose name is used to form the base name of the resources.locale - the locale object that is passed to the I18N API that loads the resources.ResourceBundle object containing the bean resources.NullPointerException - if beanClass is null.java.util.MissingResourceException - if the bean resources aren't found.
public static java.util.ResourceBundle getBeanResources(java.lang.String beanName)
throws java.util.MissingResourceException
beanName.beanName - the bean name that is used to form the base name of the resources.ResourceBundle object containing the bean resources.NullPointerException - if beanName is null.java.util.MissingResourceException - if the bean resources aren't found.
public static java.util.ResourceBundle getBeanResources(java.lang.String beanName,
java.util.Locale locale)
throws java.util.MissingResourceException
beanName.beanName - the bean name that is used to form the base name of the resources.locale - the locale object that is passed to the I18N API that loads the resources.ResourceBundle object containing the bean resources.NullPointerException - if beanName is null.java.util.MissingResourceException - if the bean resources aren't found.
public static java.lang.Object getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.Class beanClass)
beanClass isn't null, it searches
the resource object among the bean resources. If the bean resources
don't exists or they don't contain a resource with the given key,
this method tries to find the resource object within the framework's resources
(FRAMEWORK_HOME/com/devsphere/mapping/resources/resources.properties).key - the key of the resource.defaultValue - the default value of the resource.beanClass - the bean class whose resources are searched. (May be null.)NullPointerException - if key is null.
public static java.lang.Object getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.Class beanClass,
java.util.Locale locale)
beanClass isn't null, it searches
the resource object among the bean resources. If the bean resources
don't exists or they don't contain a resource with the given key,
this method tries to find the resource object within the framework's resources
(FRAMEWORK_HOME/com/devsphere/mapping/resources/resources.properties).key - the key of the resource.defaultValue - the default value of the resource.beanClass - the bean class whose resources are searched. (May be null.)locale - the locale object that is passed to the I18N API that loads the resources.NullPointerException - if key is null.
public static java.lang.Object getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.String beanName)
beanName isn't null, it searches
the resource object among the bean resources. If the bean resources
don't exists or they don't contain a resource with the given key,
this method tries to find the resource object within the framework's resources
(FRAMEWORK_HOME/com/devsphere/mapping/resources/resources.properties).key - the key of the resource.defaultValue - the default value of the resource.beanName - the bean name whose resources are searched. (May be null.)NullPointerException - if key is null.
public static java.lang.Object getResource(java.lang.String key,
java.lang.Object defaultValue,
java.lang.String beanName,
java.util.Locale locale)
beanName isn't null, it searches
the resource object among the bean resources. If the bean resources
don't exists or they don't contain a resource with the given key,
this method tries to find the resource object within the framework's resources
(FRAMEWORK_HOME/com/devsphere/mapping/resources/resources.properties).key - the key of the resource.defaultValue - the default value of the resource.beanName - the bean name whose resources are searched. (May be null.)locale - the locale object that is passed to the I18N API that loads the resources.NullPointerException - if key is null.public static java.util.Hashtable removeUserErrors(java.util.Hashtable errorTable)
errorTable - the error tablenull if errorTable is null
or contains only user errors.java.lang.IllegalArgumentException - if errorTable wasn't created by this framework.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||