|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.processmining.framework.log.rfb.XmlUtils
public class XmlUtils
This class serves as a container for static XML-related manipulation and parsing methods (in the context of MXML processing)
Field Summary | |
---|---|
protected static java.util.GregorianCalendar |
cal
Calendar instance used for calculating dates for timestamps |
protected static java.text.SimpleDateFormat |
DF_MILLIS_NOTZONE
Date/Time parsing instance with milliseconds and NO time zone information |
protected static java.text.SimpleDateFormat |
DF_MILLIS_TZONE
Date/Time parsing instance with milliseconds and time zone information |
protected static java.text.SimpleDateFormat |
DF_NOMILLIS_NOTZONE
Date/Time parsing instance with NEITHER milliseconds NOR time zone information |
protected static java.text.SimpleDateFormat |
DF_NOMILLIS_TZONE
Date/Time parsing instance with NO milliseconds but time zone information |
protected static java.lang.String |
XSDATETIME_FORMAT_STRING_MILLIS_NOTZONE
Date/Time parsing format including milliseconds and NO time zone information |
protected static java.lang.String |
XSDATETIME_FORMAT_STRING_MILLIS_TZONE
Date/Time parsing format including milliseconds and time zone information |
protected static java.lang.String |
XSDATETIME_FORMAT_STRING_NOMILLIS_NOTZONE
Date/Time parsing format including NEITHER milliseconds NOR time zone information |
protected static java.lang.String |
XSDATETIME_FORMAT_STRING_NOMILLIS_TZONE
Date/Time parsing format NOT including milliseconds but time zone information |
protected static java.util.regex.Pattern |
xsDtPattern
Pattern used for matching the XsDateTime formatted timestamp strings |
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static java.util.Date |
parseXsDateTime(java.lang.String xsDateTime)
Expects an XML xs:dateTime lexical format string, as in 2005-10-24T11:57:31.000+01:00 . |
static java.util.Date |
parseXsDateTimeOld(java.lang.String xsDateTime)
Expects an XML xs:dateTime lexical format string, as in 2005-10-24T11:57:31.000+01:00 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String XSDATETIME_FORMAT_STRING_MILLIS_TZONE
protected static final java.lang.String XSDATETIME_FORMAT_STRING_MILLIS_NOTZONE
protected static final java.lang.String XSDATETIME_FORMAT_STRING_NOMILLIS_TZONE
protected static final java.lang.String XSDATETIME_FORMAT_STRING_NOMILLIS_NOTZONE
protected static final java.text.SimpleDateFormat DF_MILLIS_TZONE
protected static final java.text.SimpleDateFormat DF_MILLIS_NOTZONE
protected static final java.text.SimpleDateFormat DF_NOMILLIS_TZONE
protected static final java.text.SimpleDateFormat DF_NOMILLIS_NOTZONE
protected static final java.util.regex.Pattern xsDtPattern
protected static java.util.GregorianCalendar cal
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static java.util.Date parseXsDateTimeOld(java.lang.String xsDateTime)
2005-10-24T11:57:31.000+01:00
. Some bad MXML
files miss timezone or milliseconds information, thus a
certain amount of tolerance is applied towards malformed
timestamp string representations.
If unparseable, this method will return null
.
OLD IMPLEMENTATION - use newer one preferably (3x+ performance boost)
xmlLexicalString
-
public static java.util.Date parseXsDateTime(java.lang.String xsDateTime)
2005-10-24T11:57:31.000+01:00
. Some bad MXML
files miss timezone or milliseconds information, thus a
certain amount of tolerance is applied towards malformed
timestamp string representations.
If unparseable, this method will return null
.
xmlLexicalString
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |