|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectit.unimo.dbgroup.momis.odli3.VelocityTools
| Field Summary | |
private static java.text.DateFormat |
_italianDateFormat
Date fomatter. |
private static java.text.DateFormat |
_italianTimestampFormat
Timestamp fomatter. |
private static java.text.DateFormat |
_SYSTEM_TIME_TEST_FORMATTER
Timestamp fomatter. |
private static VelocityTools |
_velocityTools
The server object |
| Constructor Summary | |
VelocityTools()
|
|
| Method Summary | |
java.lang.String |
applyMacro(org.apache.velocity.VelocityContext context,
java.lang.String templateFileName)
Prints setters for variable defined in the given class |
java.lang.String |
applyMacroGlobalSchema(Schema schema,
java.lang.String templateFileName)
Prints setters for variable defined in the given class |
static java.lang.String |
encodeXmlString(java.lang.String value)
encodes a string according to the Xml specification Characters other than those in the "reserved" and "unsafe" sets (see section 3.2) are equivalent to their ""%" HEX HEX" encodings. |
static java.lang.String |
formatDate(java.lang.Object date)
Retrieve the given parameter as Timestamp. |
static java.lang.String |
formatTimestamp(java.lang.Object date)
Retrieve the given parameter as Timestamp. |
static java.lang.String |
getDottedLastField(java.lang.String sin)
Given a string in dot notation returns last field |
static VelocityTools |
getInstance()
Main procedure This is a command line parser :-) |
static java.lang.String |
getObjectInfo(java.lang.Class c)
Return information about the given object Information are: - class name - list of public methods |
static java.sql.Timestamp |
parseTimestamp(java.lang.String stringTimestamp)
Parses the given string as Timestamp. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static VelocityTools _velocityTools
private static java.text.DateFormat _italianDateFormat
private static java.text.DateFormat _italianTimestampFormat
private static java.text.DateFormat _SYSTEM_TIME_TEST_FORMATTER
| Constructor Detail |
public VelocityTools()
| Method Detail |
public java.lang.String applyMacroGlobalSchema(Schema schema,
java.lang.String templateFileName)
throws java.lang.Exception
java.lang.Exception
public java.lang.String applyMacro(org.apache.velocity.VelocityContext context,
java.lang.String templateFileName)
throws java.lang.Exception
java.lang.Exception
public static VelocityTools getInstance()
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String getObjectInfo(java.lang.Class c)
public static java.lang.String getDottedLastField(java.lang.String sin)
public static java.lang.String encodeXmlString(java.lang.String value)
public static java.lang.String formatTimestamp(java.lang.Object date)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String formatDate(java.lang.Object date)
throws java.lang.Exception
java.lang.Exception
public static java.sql.Timestamp parseTimestamp(java.lang.String stringTimestamp)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||