|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.ui.widgets.XMLUtil
public final class XMLUtil
| Nested Class Summary | |
|---|---|
static class |
XMLUtil.DefaultResolver
|
static class |
XMLUtil.FieldValue_XMLNode
|
static interface |
XMLUtil.Resolver
This interface is used by demoshell to do lookups on elements that specify references to nodes in other files. |
| Field Summary | |
|---|---|
static XMLUtil.DefaultResolver |
defaultResolver
|
| Constructor Summary | |
|---|---|
XMLUtil()
|
|
| Method Summary | |
|---|---|
static Document |
document(InputSource content,
boolean validate,
boolean removeWhitespace,
EntityResolver resolver)
Creates a Document object based on the given URL |
static Document |
document(URL url,
boolean validate,
boolean removeWhitespace,
EntityResolver resolver)
|
static Element |
expectElement(Node node)
|
static void |
expectTag(Element elem,
String tag)
Raise an exception if the current element is not the expected tag - namespaces are not supported. |
static Element[] |
getAllChildren(Element parent,
String tag)
Return an array of all the children of PARENT that are TAG elements. |
static DocumentBuilder |
getDOMParser(boolean validating)
|
static DocumentBuilder |
getDOMParser(boolean validating,
boolean enableDeferNodeExpantion,
boolean enableContinueAfterFatalError)
|
static Element |
getFirstChildElement(Element parent)
Returns first child element of the specified parent element. |
static Element |
getOneChildMaybe(Element parent,
String tag)
|
static String |
getText(Element parent,
String theDefault)
|
static boolean |
isElement(Node e)
|
static void |
registerXMLNodeFieldValueClassExtension()
|
static Element |
resolveReferences(Element e)
|
static Element[] |
resolveReferences(Element[] e)
|
static void |
serializeDocument(Document doc,
OutputStream output)
Serialize an XML Document using a stream. |
static void |
setResolver(XMLUtil.Resolver r)
|
static String |
stringAttribute(Element element,
String attrName,
String theDefault)
Assume ELEMENT had attribute ATTRNAME, get its value and return it as a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final XMLUtil.DefaultResolver defaultResolver
| Constructor Detail |
|---|
public XMLUtil()
| Method Detail |
|---|
public static void registerXMLNodeFieldValueClassExtension()
public static Document document(URL url,
boolean validate,
boolean removeWhitespace,
EntityResolver resolver)
public static Document document(InputSource content,
boolean validate,
boolean removeWhitespace,
EntityResolver resolver)
public static DocumentBuilder getDOMParser(boolean validating)
public static DocumentBuilder getDOMParser(boolean validating,
boolean enableDeferNodeExpantion,
boolean enableContinueAfterFatalError)
public static boolean isElement(Node e)
public static Element[] getAllChildren(Element parent,
String tag)
tag;
is not null
public static Element getOneChildMaybe(Element parent,
String tag)
public static Element getFirstChildElement(Element parent)
public static void serializeDocument(Document doc,
OutputStream output)
public static Element expectElement(Node node)
public static void expectTag(Element elem,
String tag)
public static String stringAttribute(Element element,
String attrName,
String theDefault)
public static String getText(Element parent,
String theDefault)
public static void setResolver(XMLUtil.Resolver r)
public static Element resolveReferences(Element e)
public static Element[] resolveReferences(Element[] e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||