|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.fikin.pojostate.select.Tools
public class Tools
Various in its purpose algorithms, used here and there created on Mar 2, 2007
| Constructor Summary | |
|---|---|
Tools()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getResouceBundleStringNvl(java.util.ResourceBundle bundle,
java.lang.String key)
essentially same as bundle.getString(key) but catches all exceptions and return null instead |
static boolean |
isGetterMethod(java.lang.Class clazz,
java.lang.reflect.Method method,
boolean filterObject)
test if given method is Bean getter |
static java.text.Format |
newFormatter(java.lang.String txt,
java.util.Locale locale,
java.lang.ClassLoader loader)
instantiates new Format object out of description in the format: "class[;format mask]" where "[" and "]" denote that the part is optional. |
static java.lang.String[] |
splitValue(java.lang.String txt)
split the value into "first;second" where ";" is first leftmost occurrence |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tools()
| Method Detail |
|---|
public static java.text.Format newFormatter(java.lang.String txt,
java.util.Locale locale,
java.lang.ClassLoader loader)
throws java.lang.IllegalArgumentException
txt - is in the format "fq class name[;format mask]"locale - is passed to the format object (constructor), if such
constructor exists of course.loader - is the classloader used to instantiate the new format
object
java.lang.IllegalArgumentExceptionpublic static java.lang.String[] splitValue(java.lang.String txt)
txt - to split
public static java.lang.String getResouceBundleStringNvl(java.util.ResourceBundle bundle,
java.lang.String key)
bundle - to be looked for the valuekey - to be used to look in the bundle for value
public static boolean isGetterMethod(java.lang.Class clazz,
java.lang.reflect.Method method,
boolean filterObject)
clazz - is POJO's classmethod - is some of the clazz methods, currently being tested
if it is to be observedfilterObject - is filter out from the checking java.lang.Object
methods if this is set to true
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||