|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.taglibs.rdc.RDCUtils
public class RDCUtils
Utility methods for the rdc package
Constructor Summary | |
---|---|
RDCUtils()
|
Method Summary | |
---|---|
static boolean |
clearChildDataModel(BaseModel parent,
java.lang.String childId)
Clear a nested data model |
static java.util.Map |
configHandler(java.lang.String config,
javax.servlet.jsp.PageContext context)
A config handler commonly used by composites for passing prompts down to their constituent components (such as mortgage and creditcardInfo). |
static org.xml.sax.InputSource |
extract(java.lang.String jar,
java.lang.String file)
Given a jar and a file location within the jar, extract the file as an InputSource |
static BaseModel |
getChildDataModel(BaseModel parent,
java.lang.String childId)
Return a nested data model |
static java.lang.Class |
getClass(java.lang.String className)
Return the Class for this class name, if such a class exists, else return null. |
static java.lang.String |
getNextRDCVarName()
Create a temporary variable name for this groupTag's page context |
static boolean |
hasField(java.lang.Class clas,
java.lang.String field)
Return true if the given class defines or inherits the given field. |
static boolean |
hasMethod(java.lang.Class clas,
java.lang.String methodName,
java.lang.Class[] paramTypes)
Return true if the given class defines or inherits the given method. |
static boolean |
implementsInterface(java.lang.Class clas,
java.lang.Class interfayce)
Return true if the given class implements the given interface. |
static boolean |
isStringEmpty(java.lang.String str)
Return true if this string contains non-white space characters. |
static void |
mustExist(java.lang.String str,
java.lang.String err_msg)
Log error if the supplied string is null or empty. |
static void |
mustSatisfy(boolean cond,
java.lang.String err_msg)
Log error if the supplied condition is not satisfied. |
static void |
warnIf(boolean cond,
java.lang.String err_msg)
Print warning via if the supplied error condition holds, but move on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RDCUtils()
Method Detail |
---|
public static boolean implementsInterface(java.lang.Class clas, java.lang.Class interfayce)
Class
- clasClass
- interfaycepublic static boolean hasField(java.lang.Class clas, java.lang.String field)
Class
- clasString
- fieldpublic static boolean hasMethod(java.lang.Class clas, java.lang.String methodName, java.lang.Class[] paramTypes)
Class
- clasString
- methodpublic static java.lang.Class getClass(java.lang.String className)
String
- classNamepublic static void mustExist(java.lang.String str, java.lang.String err_msg)
String
- strString
- err_msgpublic static void mustSatisfy(boolean cond, java.lang.String err_msg)
boolean
- condString
- err_msgpublic static void warnIf(boolean cond, java.lang.String err_msg)
boolean
- condString
- err_msgpublic static boolean isStringEmpty(java.lang.String str)
String
- strpublic static java.lang.String getNextRDCVarName()
public static BaseModel getChildDataModel(BaseModel parent, java.lang.String childId)
public static boolean clearChildDataModel(BaseModel parent, java.lang.String childId)
public static java.util.Map configHandler(java.lang.String config, javax.servlet.jsp.PageContext context)
public static org.xml.sax.InputSource extract(java.lang.String jar, java.lang.String file) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |