diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 10:58:37 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 10:58:37 +0000 |
commit | ece7d18cf35374bf4e26d041799cda8f791c89f8 (patch) | |
tree | 33707cb77627b65a2a4e7327a2e93fb7751c1b76 /spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html | |
parent | 273aed93c03b18a6c6bb1af745ae46a13ad3c7f2 (diff) | |
download | moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.tar.gz moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.tar.bz2 moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.zip |
Initial commit
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html')
-rw-r--r-- | spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html | 650 |
1 files changed, 650 insertions, 0 deletions
diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html new file mode 100644 index 000000000..20307081f --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/DOMUtils.html @@ -0,0 +1,650 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc on Tue Jul 01 18:49:22 CEST 2003 --> +<TITLE> +MOA SP/SS Server Internal API: Class DOMUtils +</TITLE> +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> +</HEAD> +<BODY BGCOLOR="white"> + +<!-- ========== START OF NAVBAR ========== --> +<A NAME="navbar_top"><!-- --></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_top_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DOMUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../at/gv/egovernment/moa/util/DateTimeUtils.html"><B>PREV CLASS</B></A> + <A HREF="../../../../../at/gv/egovernment/moa/util/EntityResolverChain.html"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> + <A HREF="DOMUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<!-- =========== END OF NAVBAR =========== --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +at.gv.egovernment.moa.util</FONT> +<BR> +Class DOMUtils</H2> +<PRE> +<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">java.lang.Object</A> + | + +--<B>at.gv.egovernment.moa.util.DOMUtils</B> +</PRE> +<HR> +<DL> +<DT>public class <B>DOMUtils</B><DT>extends <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></DL> + +<P> +Various utility functions for handling XML DOM trees. + + The parsing methods in this class make use of some features internal to the + Xerces DOM parser, mainly for performance reasons. As soon as JAXP + (currently at version 1.2) is better at schema handling, it should be used as + the parser interface. +<P> +<DL> +<DT><B>Version: </B><DD>$Id$</DD> +<DT><B>Author: </B><DD>Patrick Peck</DD> +</DL> +<HR> + +<P> +<!-- ======== INNER CLASS SUMMARY ======== --> + + +<!-- =========== FIELD SUMMARY =========== --> + + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#DOMUtils()">DOMUtils</A></B>()</CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Method Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#addSchemaToPool(java.io.InputStream, java.lang.String)">addSchemaToPool</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> systemId)</CODE> + +<BR> + Preparse a schema and add it to the schema pool.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#checkAttributeParentsInNodeList(org.w3c.dom.NodeList)">checkAttributeParentsInNodeList</A></B>(org.w3c.dom.NodeList nodes)</CODE> + +<BR> + Check, that each attribute node in the given <code>NodeList</code> has its + parent in the <code>NodeList</code> as well.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Set.html">Set</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#collectNamespaceURIs(org.w3c.dom.Element)">collectNamespaceURIs</A></B>(org.w3c.dom.Element context)</CODE> + +<BR> + Collect all the namespace URIs used in the subtree of a given element.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Map.html">Map</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#getNamespaceDeclarations(org.w3c.dom.Node)">getNamespaceDeclarations</A></B>(org.w3c.dom.Node node)</CODE> + +<BR> + Build the namespace prefix to namespace URL mapping in effect for a given + node.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#getText(org.w3c.dom.Node)">getText</A></B>(org.w3c.dom.Node node)</CODE> + +<BR> + Return the text that a node contains. + + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#isAncestor(org.w3c.dom.Element, org.w3c.dom.Node)">isAncestor</A></B>(org.w3c.dom.Element candAnc, + org.w3c.dom.Node cand)</CODE> + +<BR> + Check, if a given DOM element is an ancestor of a given node.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#localizeNamespaceDeclarations(org.w3c.dom.Element)">localizeNamespaceDeclarations</A></B>(org.w3c.dom.Element context)</CODE> + +<BR> + Add all namespace declarations declared in the parent(s) of a given + element and used in the subtree of the given element to the given element.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.DocumentFragment</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#nodeList2DocumentFragment(org.w3c.dom.NodeList)">nodeList2DocumentFragment</A></B>(org.w3c.dom.NodeList nodeList)</CODE> + +<BR> + Convert an unstructured <code>NodeList</code> into a + <code>DocumentFragment</code>.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.Document</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#parseDocument(java.io.InputStream, boolean, java.lang.String, java.lang.String)">parseDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation)</CODE> + +<BR> + Parse an XML document from an <code>InputStream</code>. + + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.Document</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#parseDocument(java.io.InputStream, boolean, java.lang.String, java.lang.String, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler)">parseDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation, + org.xml.sax.EntityResolver entityResolver, + org.xml.sax.ErrorHandler errorHandler)</CODE> + +<BR> + Parse an XML document from an <code>InputStream</code>.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.Document</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#parseDocument(java.lang.String, boolean, java.lang.String, java.lang.String)">parseDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlString, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation)</CODE> + +<BR> + Parse an UTF-8 encoded XML document from a <code>String</code>.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.Document</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#parseDocument(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String)">parseDocument</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlString, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> encoding, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation)</CODE> + +<BR> + Parse an XML document from a <code>String</code>. + + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static org.w3c.dom.Element</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#parseXmlValidating(java.io.InputStream)">parseXmlValidating</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream)</CODE> + +<BR> + A convenience method to parse an XML document validating.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#serializeNode(org.w3c.dom.Node)">serializeNode</A></B>(org.w3c.dom.Node node)</CODE> + +<BR> + Serialize the given DOM node. + + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static byte[]</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#serializeNode(org.w3c.dom.Node, java.lang.String)">serializeNode</A></B>(org.w3c.dom.Node node, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlEncoding)</CODE> + +<BR> + Serialize the given DOM node to a byte array.</TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>static boolean</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/DOMUtils.html#validateElement(org.w3c.dom.Element, java.lang.String, java.lang.String)">validateElement</A></B>(org.w3c.dom.Element element, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation)</CODE> + +<BR> + Schema validate a given DOM element.</TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> +</TR> +</TABLE> + +<P> + +<!-- ============ FIELD DETAIL =========== --> + + +<!-- ========= CONSTRUCTOR DETAIL ======== --> + +<A NAME="constructor_detail"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Constructor Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="DOMUtils()"><!-- --></A><H3> +DOMUtils</H3> +<PRE> +public <B>DOMUtils</B>()</PRE> +<DL> +</DL> + +<!-- ============ METHOD DETAIL ========== --> + +<A NAME="method_detail"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Method Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="addSchemaToPool(java.io.InputStream, java.lang.String)"><!-- --></A><H3> +addSchemaToPool</H3> +<PRE> +public static void <B>addSchemaToPool</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> systemId) + throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE> +<DL> +<DD>Preparse a schema and add it to the schema pool.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - An <code>InputStream</code> providing the contents of + the schema.<DD><CODE>systemId</CODE> - The systemId to use for the schema.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the schema.</DL> +</DD> +</DL> +<HR> + +<A NAME="parseDocument(java.io.InputStream, boolean, java.lang.String, java.lang.String, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler)"><!-- --></A><H3> +parseDocument</H3> +<PRE> +public static org.w3c.dom.Document <B>parseDocument</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation, + org.xml.sax.EntityResolver entityResolver, + org.xml.sax.ErrorHandler errorHandler) + throws org.xml.sax.SAXException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + javax.xml.parsers.ParserConfigurationException</PRE> +<DL> +<DD>Parse an XML document from an <code>InputStream</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - The <code>InputStream</code> containing the XML + document.<DD><CODE>validating</CODE> - If <code>true</code>, parse validating.<DD><CODE>externalSchemaLocations</CODE> - A <code>String</code> containing namespace + URI to schema location pairs, the same way it is accepted by the <code>xsi: + schemaLocation</code> attribute.<DD><CODE>externalNoNamespaceSchemaLocation</CODE> - The schema location of the + schema for elements without a namespace, the same way it is accepted by the + <code>xsi:noNamespaceSchemaLocation</code> attribute.<DD><CODE>entityResolver</CODE> - An <code>EntityResolver</code> to resolve external + entities (schemas and DTDs). If <code>null</code>, it will not be set.<DD><CODE>errorHandler</CODE> - An <code>ErrorHandler</code> to decide what to do + with parsing errors. If <code>null</code>, it will not be set.<DT><B>Returns:</B><DD>The parsed XML document as a DOM tree.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML + parser.</DL> +</DD> +</DL> +<HR> + +<A NAME="parseDocument(java.io.InputStream, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3> +parseDocument</H3> +<PRE> +public static org.w3c.dom.Document <B>parseDocument</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation) + throws org.xml.sax.SAXException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + javax.xml.parsers.ParserConfigurationException</PRE> +<DL> +<DD>Parse an XML document from an <code>InputStream</code>. + + It uses a <code>MOAEntityResolver</code> as the <code>EntityResolver</code> + and a <code>MOAErrorHandler</code> as the <code>ErrorHandler</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - The <code>InputStream</code> containing the XML + document.<DD><CODE>validating</CODE> - If <code>true</code>, parse validating.<DD><CODE>externalSchemaLocations</CODE> - A <code>String</code> containing namespace + URI to schema location pairs, the same way it is accepted by the <code>xsi: + schemaLocation</code> attribute.<DD><CODE>externalNoNamespaceSchemaLocation</CODE> - The schema location of the + schema for elements without a namespace, the same way it is accepted by the + <code>xsi:noNamespaceSchemaLocation</code> attribute.<DT><B>Returns:</B><DD>The parsed XML document as a DOM tree.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML + parser.</DL> +</DD> +</DL> +<HR> + +<A NAME="parseDocument(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3> +parseDocument</H3> +<PRE> +public static org.w3c.dom.Document <B>parseDocument</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlString, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> encoding, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation) + throws org.xml.sax.SAXException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + javax.xml.parsers.ParserConfigurationException</PRE> +<DL> +<DD>Parse an XML document from a <code>String</code>. + + It uses a <code>MOAEntityResolver</code> as the <code>EntityResolver</code> + and a <code>MOAErrorHandler</code> as the <code>ErrorHandler</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>xmlString</CODE> - The <code>String</code> containing the XML document.<DD><CODE>encoding</CODE> - The encoding of the XML document.<DD><CODE>validating</CODE> - If <code>true</code>, parse validating.<DD><CODE>externalSchemaLocations</CODE> - A <code>String</code> containing namespace + URI to schema location pairs, the same way it is accepted by the <code>xsi: + schemaLocation</code> attribute.<DD><CODE>externalNoNamespaceSchemaLocation</CODE> - The schema location of the + schema for elements without a namespace, the same way it is accepted by the + <code>xsi:noNamespaceSchemaLocation</code> attribute.<DT><B>Returns:</B><DD>The parsed XML document as a DOM tree.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML + parser.</DL> +</DD> +</DL> +<HR> + +<A NAME="parseDocument(java.lang.String, boolean, java.lang.String, java.lang.String)"><!-- --></A><H3> +parseDocument</H3> +<PRE> +public static org.w3c.dom.Document <B>parseDocument</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlString, + boolean validating, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation) + throws org.xml.sax.SAXException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + javax.xml.parsers.ParserConfigurationException</PRE> +<DL> +<DD>Parse an UTF-8 encoded XML document from a <code>String</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>xmlString</CODE> - The <code>String</code> containing the XML document.<DD><CODE>validating</CODE> - If <code>true</code>, parse validating.<DD><CODE>externalSchemaLocations</CODE> - A <code>String</code> containing namespace + URI to schema location pairs, the same way it is accepted by the <code>xsi: + schemaLocation</code> attribute.<DD><CODE>externalNoNamespaceSchemaLocation</CODE> - The schema location of the + schema for elements without a namespace, the same way it is accepted by the + <code>xsi:noNamespaceSchemaLocation</code> attribute.<DT><B>Returns:</B><DD>The parsed XML document as a DOM tree.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML + parser.</DL> +</DD> +</DL> +<HR> + +<A NAME="parseXmlValidating(java.io.InputStream)"><!-- --></A><H3> +parseXmlValidating</H3> +<PRE> +public static org.w3c.dom.Element <B>parseXmlValidating</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> inputStream) + throws javax.xml.parsers.ParserConfigurationException, + org.xml.sax.SAXException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE> +<DL> +<DD>A convenience method to parse an XML document validating.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>inputStream</CODE> - The <code>InputStream</code> containing the XML + document.<DT><B>Returns:</B><DD>The root element of the parsed XML document.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML + parser.</DL> +</DD> +</DL> +<HR> + +<A NAME="validateElement(org.w3c.dom.Element, java.lang.String, java.lang.String)"><!-- --></A><H3> +validateElement</H3> +<PRE> +public static boolean <B>validateElement</B>(org.w3c.dom.Element element, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalSchemaLocations, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> externalNoNamespaceSchemaLocation) + throws javax.xml.parsers.ParserConfigurationException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + org.xml.sax.SAXException, + javax.xml.transform.TransformerException</PRE> +<DL> +<DD>Schema validate a given DOM element.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>element</CODE> - The element to validate.<DD><CODE>externalSchemaLocations</CODE> - A <code>String</code> containing namespace + URI to schema location pairs, the same way it is accepted by the <code>xsi: + schemaLocation</code> attribute.<DD><CODE>externalNoNamespaceSchemaLocation</CODE> - The schema location of the + schema for elements without a namespace, the same way it is accepted by the + <code>xsi:noNamespaceSchemaLocation</code> attribute.<DT><B>Returns:</B><DD><code>true</code>, if the <code>element</code> validates against + the schemas declared in it.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE> - An error occurred parsing the document.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An error occurred reading the document from its + serialized representation.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred configuring the XML<DD><CODE>javax.xml.transform.TransformerException</CODE> - An error occurred serializing the element.</DL> +</DD> +</DL> +<HR> + +<A NAME="serializeNode(org.w3c.dom.Node)"><!-- --></A><H3> +serializeNode</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>serializeNode</B>(org.w3c.dom.Node node) + throws javax.xml.transform.TransformerException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE> +<DL> +<DD>Serialize the given DOM node. + + The node will be serialized using the UTF-8 encoding.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to serialize.<DT><B>Returns:</B><DD>String The <code>String</code> representation of the given DOM + node.<DT><B>Throws:</B><DD><CODE>javax.xml.transform.TransformerException</CODE> - An error occurred transforming the + node to a <code>String</code>.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An IO error occurred writing the node to a byte array.</DL> +</DD> +</DL> +<HR> + +<A NAME="serializeNode(org.w3c.dom.Node, java.lang.String)"><!-- --></A><H3> +serializeNode</H3> +<PRE> +public static byte[] <B>serializeNode</B>(org.w3c.dom.Node node, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> xmlEncoding) + throws javax.xml.transform.TransformerException, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE> +<DL> +<DD>Serialize the given DOM node to a byte array.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to serialize.<DD><CODE>xmlEncoding</CODE> - The XML encoding to use.<DT><B>Returns:</B><DD>The serialized node, as a byte array. Using a compatible encoding + this can easily be converted into a <code>String</code>.<DT><B>Throws:</B><DD><CODE>javax.xml.transform.TransformerException</CODE> - An error occurred transforming the node to a + byte array.<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - An IO error occurred writing the node to a byte array.</DL> +</DD> +</DL> +<HR> + +<A NAME="getText(org.w3c.dom.Node)"><!-- --></A><H3> +getText</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getText</B>(org.w3c.dom.Node node)</PRE> +<DL> +<DD>Return the text that a node contains. + + This routine: + <ul> + <li>Ignores comments and processing instructions.</li> + <li>Concatenates TEXT nodes, CDATA nodes, and the results recursively + processing EntityRef nodes.</li> + <li>Ignores any element nodes in the sublist. (Other possible options are + to recurse into element sublists or throw an exception.)</li> + </ul><DD><DL> +<DT><B>Parameters:</B><DD><CODE>node</CODE> - A DOM node from which to extract text.<DT><B>Returns:</B><DD>A String representing its contents.</DL> +</DD> +</DL> +<HR> + +<A NAME="getNamespaceDeclarations(org.w3c.dom.Node)"><!-- --></A><H3> +getNamespaceDeclarations</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Map.html">Map</A> <B>getNamespaceDeclarations</B>(org.w3c.dom.Node node)</PRE> +<DL> +<DD>Build the namespace prefix to namespace URL mapping in effect for a given + node.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>node</CODE> - The context node for which build the map.<DT><B>Returns:</B><DD>The namespace prefix to namespace URL mapping ( + a <code>String</code> value to <code>String</code> value mapping).</DL> +</DD> +</DL> +<HR> + +<A NAME="localizeNamespaceDeclarations(org.w3c.dom.Element)"><!-- --></A><H3> +localizeNamespaceDeclarations</H3> +<PRE> +public static void <B>localizeNamespaceDeclarations</B>(org.w3c.dom.Element context)</PRE> +<DL> +<DD>Add all namespace declarations declared in the parent(s) of a given + element and used in the subtree of the given element to the given element.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>context</CODE> - The element to which to add the namespaces.</DL> +</DD> +</DL> +<HR> + +<A NAME="collectNamespaceURIs(org.w3c.dom.Element)"><!-- --></A><H3> +collectNamespaceURIs</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Set.html">Set</A> <B>collectNamespaceURIs</B>(org.w3c.dom.Element context)</PRE> +<DL> +<DD>Collect all the namespace URIs used in the subtree of a given element.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>context</CODE> - The element that should be searched for namespace URIs.<DT><B>Returns:</B><DD>All namespace URIs used in the subtree of <code>context</code>, + including the ones used in <code>context</code> itself.</DL> +</DD> +</DL> +<HR> + +<A NAME="checkAttributeParentsInNodeList(org.w3c.dom.NodeList)"><!-- --></A><H3> +checkAttributeParentsInNodeList</H3> +<PRE> +public static boolean <B>checkAttributeParentsInNodeList</B>(org.w3c.dom.NodeList nodes)</PRE> +<DL> +<DD>Check, that each attribute node in the given <code>NodeList</code> has its + parent in the <code>NodeList</code> as well.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>nodes</CODE> - The <code>NodeList</code> to check.<DT><B>Returns:</B><DD><code>true</code>, if each attribute node in <code>nodes</code> + has its parent in <code>nodes</code> as well.</DL> +</DD> +</DL> +<HR> + +<A NAME="nodeList2DocumentFragment(org.w3c.dom.NodeList)"><!-- --></A><H3> +nodeList2DocumentFragment</H3> +<PRE> +public static org.w3c.dom.DocumentFragment <B>nodeList2DocumentFragment</B>(org.w3c.dom.NodeList nodeList) + throws javax.xml.parsers.ParserConfigurationException</PRE> +<DL> +<DD>Convert an unstructured <code>NodeList</code> into a + <code>DocumentFragment</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>nodeList</CODE> - Contains the node list to be converted into a DOM + DocumentFragment.<DT><B>Returns:</B><DD>the resulting DocumentFragment. The DocumentFragment will be + backed by a new DOM Document, i.e. all noded of the node list will be + cloned.<DT><B>Throws:</B><DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE> - An error occurred creating the + DocumentFragment.</DL> +</DD> +</DL> +<HR> + +<A NAME="isAncestor(org.w3c.dom.Element, org.w3c.dom.Node)"><!-- --></A><H3> +isAncestor</H3> +<PRE> +public static boolean <B>isAncestor</B>(org.w3c.dom.Element candAnc, + org.w3c.dom.Node cand)</PRE> +<DL> +<DD>Check, if a given DOM element is an ancestor of a given node.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>candAnc</CODE> - The DOM element to check for being the ancestor.<DD><CODE>cand</CODE> - The node to check for being the child.<DT><B>Returns:</B><DD><code>true</code>, if <code>candAnc</code> is an (indirect) + ancestor of <code>cand</code>; <code>false</code> otherwise.</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + +<!-- ========== START OF NAVBAR ========== --> +<A NAME="navbar_bottom"><!-- --></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_bottom_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> + <TR ALIGN="center" VALIGN="top"> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> + <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DOMUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> + <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> + </TR> +</TABLE> +</TD> +<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> +</EM> +</TD> +</TR> + +<TR> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../at/gv/egovernment/moa/util/DateTimeUtils.html"><B>PREV CLASS</B></A> + <A HREF="../../../../../at/gv/egovernment/moa/util/EntityResolverChain.html"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> + <A HREF="DOMUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> +DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> +</TR> +</TABLE> +<!-- =========== END OF NAVBAR =========== --> + +<HR> + +</BODY> +</HTML> |