|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uoc.pfc.j2ee.jalonsod.mtp.MTPUtils
public class MTPUtils
File: MTPUtils.java Created: 2012-04-28 Auxiliary methods not attached to specific functionality for use INSIDE the framework.
Field Summary | |
---|---|
private static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
MTPUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
getBeanAttrib(java.lang.Object object,
java.lang.String attributeName)
Gets the attribute of a Java Bean object with reflection mechanisms. |
static java.lang.String |
getClassName()
Returns the class name of the caller method. |
static java.lang.String |
getMethodName()
Returns the method name of the caller method. |
static java.lang.String |
getPackageName()
Returns the package name of the caller method. |
static java.util.Date |
parseDate(java.lang.String date,
java.lang.String format)
Parses a date stored in a string with a specific format mask. |
static void |
setLoggerToLevel(java.lang.String l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger logger
Constructor Detail |
---|
public MTPUtils()
Method Detail |
---|
public static java.lang.String getPackageName()
public static java.lang.String getClassName()
public static java.lang.String getMethodName()
public static void setLoggerToLevel(java.lang.String l)
public static java.lang.Object getBeanAttrib(java.lang.Object object, java.lang.String attributeName)
object
- the Java Bean object.attributeName
- name of the attribute to extract from the Java Bean object.
public static java.util.Date parseDate(java.lang.String date, java.lang.String format)
date
- string with the date value.format
- format mask of the string date.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |