|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectproject35.util.Project35XMLParsingUtility
public class Project35XMLParsingUtility
convenience routines used to parse XML files and XML schemas
| Constructor Summary | |
|---|---|
Project35XMLParsingUtility()
|
|
| Method Summary | |
|---|---|
protected String |
createInlineImage(String fieldValue)
|
static String |
escapeXml(String str)
Convenience method for escaping XML characters in a given String. |
static String |
getCData(Element element)
|
static Element |
getElement(Node node,
String tagName)
|
protected Element |
getElement(Node node,
String tagName,
String elementName)
|
static String |
getFieldValue(Element element)
convenience routine for extracting the text value for an element |
static Element |
getFirstChildElement(Node node)
|
static Element |
getNextSiblingElement(Element element)
|
static Parameter[] |
getParameters(Element parametersElement)
this method assumes that all tag children of parameters element can be bundled into name value pairs (see class project35.util.Parameter) |
static String |
getValue(Element element)
|
boolean |
interpretBooleanValue(String value)
|
int |
interpretIntegerValue(String value)
|
protected static boolean |
isRequired(String minOccurs)
|
protected static boolean |
isRequiredOrOptional(String minOccurs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Project35XMLParsingUtility()
| Method Detail |
|---|
public static String escapeXml(String str)
str - The string to be escaped.
protected static boolean isRequired(String minOccurs)
protected static boolean isRequiredOrOptional(String minOccurs)
public static Element getNextSiblingElement(Element element)
public static String getFieldValue(Element element)
public static Element getFirstChildElement(Node node)
public static Parameter[] getParameters(Element parametersElement)
public static String getCData(Element element)
public static Element getElement(Node node,
String tagName)
protected Element getElement(Node node,
String tagName,
String elementName)
public static String getValue(Element element)
public int interpretIntegerValue(String value)
throws Exception
Exceptionpublic boolean interpretBooleanValue(String value)
protected String createInlineImage(String fieldValue)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||