|
|||||||||
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 org.w3c.dom.Document |
document(org.xml.sax.InputSource content,
boolean validate,
boolean removeWhitespace,
org.xml.sax.EntityResolver resolver)
Creates a Document object based on the given URL |
static org.w3c.dom.Document |
document(java.lang.String content,
boolean validate,
boolean removeWhitespace,
org.xml.sax.EntityResolver resolver)
Creates a Document object based on the given URL |
static org.w3c.dom.Document |
document(java.net.URL url,
boolean validate,
boolean removeWhitespace,
org.xml.sax.EntityResolver resolver)
|
static org.w3c.dom.Element |
expectElement(org.w3c.dom.Node node)
|
static void |
expectTag(org.w3c.dom.Element elem,
java.lang.String tag)
Raise an exception if the current element is not the expected tag - namespaces are not supported. |
static org.w3c.dom.Element[] |
getAllChildren(org.w3c.dom.Element parent,
java.lang.String tag)
Return an array of all the children of PARENT that are TAG elements. |
static javax.xml.parsers.DocumentBuilder |
getDOMParser(boolean validating)
|
static javax.xml.parsers.DocumentBuilder |
getDOMParser(boolean validating,
boolean enableDeferNodeExpantion,
boolean enableContinueAfterFatalError)
|
static org.w3c.dom.Element |
getFirstChildElement(org.w3c.dom.Element parent)
Returns first child element of the specified parent element. |
static org.w3c.dom.Element |
getOneChildMaybe(org.w3c.dom.Element parent,
java.lang.String tag)
|
static java.lang.String |
getText(org.w3c.dom.Element parent,
java.lang.String theDefault)
|
static boolean |
isElement(org.w3c.dom.Node e)
|
static void |
registerXMLNodeFieldValueClassExtension()
|
static org.w3c.dom.Element |
resolveReferences(org.w3c.dom.Element e)
|
static org.w3c.dom.Element[] |
resolveReferences(org.w3c.dom.Element[] e)
|
static void |
serializeDocument(org.w3c.dom.Document doc,
java.io.OutputStream output)
Serialize an XML Document using a stream. |
static void |
setResolver(XMLUtil.Resolver r)
|
static java.lang.String |
stringAttribute(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.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 org.w3c.dom.Document document(java.net.URL url, boolean validate, boolean removeWhitespace, org.xml.sax.EntityResolver resolver)
public static org.w3c.dom.Document document(org.xml.sax.InputSource content, boolean validate, boolean removeWhitespace, org.xml.sax.EntityResolver resolver)
public static org.w3c.dom.Document document(java.lang.String content, boolean validate, boolean removeWhitespace, org.xml.sax.EntityResolver resolver)
public static javax.xml.parsers.DocumentBuilder getDOMParser(boolean validating)
public static javax.xml.parsers.DocumentBuilder getDOMParser(boolean validating, boolean enableDeferNodeExpantion, boolean enableContinueAfterFatalError)
public static boolean isElement(org.w3c.dom.Node e)
public static org.w3c.dom.Element[] getAllChildren(org.w3c.dom.Element parent, java.lang.String tag)
tag
;
is not null
public static org.w3c.dom.Element getOneChildMaybe(org.w3c.dom.Element parent, java.lang.String tag)
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Element parent)
public static void serializeDocument(org.w3c.dom.Document doc, java.io.OutputStream output)
public static org.w3c.dom.Element expectElement(org.w3c.dom.Node node)
public static void expectTag(org.w3c.dom.Element elem, java.lang.String tag)
public static java.lang.String stringAttribute(org.w3c.dom.Element element, java.lang.String attrName, java.lang.String theDefault)
public static java.lang.String getText(org.w3c.dom.Element parent, java.lang.String theDefault)
public static void setResolver(XMLUtil.Resolver r)
public static org.w3c.dom.Element resolveReferences(org.w3c.dom.Element e)
public static org.w3c.dom.Element[] resolveReferences(org.w3c.dom.Element[] e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |