|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.ParserUtils
public final class ParserUtils
Utility class providing convenience methods to (XML) parsing mechanisms.
Method Summary | |
---|---|
static String |
decodeBase64(String s)
|
static String |
escape(String value)
Escapes the string by replacing reserved symbols with their XML entities. |
static String |
formatDate(Date aDate)
|
static Date |
getDate(String strdate)
|
static Date |
getDateOLD(String strdate)
Tries different date formats to parse against the given string representation to retrieve a valid Date object. |
static org.jdom.Namespace |
getDefaultNS(org.jdom.Element element)
|
static org.jdom.Namespace |
getNamespace(org.jdom.Element element,
String prefix)
|
static URL |
getURL(String toURL)
|
static void |
matchCaseOfChildren(org.jdom.Element root,
String childName)
Converts names of child-tags mentioned in childName list
to that given case. |
static void |
matchCaseOfChildren(org.jdom.Element root,
String[] childrenNames)
Converts names of child-tags mentioned in childrenNames list
to that given case. |
static String |
unEscape(String value)
Unescapes the string by replacing some XML entities into plain symbols. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static URL getURL(String toURL)
public static org.jdom.Namespace getDefaultNS(org.jdom.Element element)
public static org.jdom.Namespace getNamespace(org.jdom.Element element, String prefix)
public static Date getDate(String strdate)
public static Date getDateOLD(String strdate)
public static String formatDate(Date aDate)
public static String decodeBase64(String s)
public static String unEscape(String value)
value
- value to unescape.
public static String escape(String value)
value
- value to escape.
public static void matchCaseOfChildren(org.jdom.Element root, String[] childrenNames)
childrenNames
list
to that given case.
root
- root element.childrenNames
- names of child tags to convert.public static void matchCaseOfChildren(org.jdom.Element root, String childName)
childName
list
to that given case.
root
- root element.childName
- name of child tags to convert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |