⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlreader.html

📁 XMLVocabulary支持显示、查询、修改和保存XML数据。可以将XML映射到数据库。你也需要的只是使用XML作为你的项目的主数据。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="XmlReader(org.w3c.dom.Document)"><!-- --></A><H3>
XmlReader</H3>
<PRE>
public <B>XmlReader</B>(org.w3c.dom.Document&nbsp;doc)</PRE>
<DL>
<DD>Creates an XmlReader instance from an existing XML document. When XmlReader is instantiated with this constructor  no internal document is created. This constructor is meant to allow this class to be attached to an existing DOM.
<P>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The existing XML document.</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="createDocFromString(java.lang.String)"><!-- --></A><H3>
createDocFromString</H3>
<PRE>
public static <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>createDocFromString</B>(java.lang.String&nbsp;value)</PRE>
<DL>
<DD>Creates an XmlReader from an String value. Uses ByteArrayInputStream to convert the string into an stream an passes the result to the XmlReader constructor. The main intention is to catch uncommon IO exceptions.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="createDocFromGZippedContent(byte[])"><!-- --></A><H3>
createDocFromGZippedContent</H3>
<PRE>
public static <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>createDocFromGZippedContent</B>(byte[]&nbsp;content)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeProperties()"><!-- --></A><H3>
removeProperties</H3>
<PRE>
public void <B>removeProperties</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProperty(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
setProperty</H3>
<PRE>
public void <B>setProperty</B>(java.lang.Object&nbsp;key,                        java.lang.Object&nbsp;value)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setProperties(java.util.Map)"><!-- --></A><H3>
setProperties</H3>
<PRE>
public void <B>setProperties</B>(java.util.Map&nbsp;prop)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getProperty(java.lang.Object)"><!-- --></A><H3>
getProperty</H3>
<PRE>
public java.lang.Object <B>getProperty</B>(java.lang.Object&nbsp;key)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getProperties()"><!-- --></A><H3>
getProperties</H3>
<PRE>
public java.util.Map <B>getProperties</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getParent</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The parent of the node as an XmlReader.</DL>
</DD>
</DL>
<HR>

<A NAME="getParent(java.lang.String)"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getParent</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The first ancestor of the current node that have the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getChild(java.lang.String)"><!-- --></A><H3>
getChild</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getChild</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The first child of the current node that have the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getLastChild(java.lang.String)"><!-- --></A><H3>
getLastChild</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getLastChild</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The last child of the current node that have the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getFirstLeafNode()"><!-- --></A><H3>
getFirstLeafNode</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getFirstLeafNode</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getSelfOrParent(java.lang.String)"><!-- --></A><H3>
getSelfOrParent</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getSelfOrParent</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>Itself wheter the node has the given name, otherwise will call <code>getParent(String name)</code> method.</DL>
</DD>
</DL>
<HR>

<A NAME="getRoot()"><!-- --></A><H3>
getRoot</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getRoot</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The root node of the document as an XmlReader.</DL>
</DD>
</DL>
<HR>

<A NAME="getWriter()"><!-- --></A><H3>
getWriter</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlWriter.html">XmlWriter</A> <B>getWriter</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>An XmlWriter instance for the node.</DL>
</DD>
</DL>
<HR>

<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public org.w3c.dom.Document <B>getDocument</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The owner document of the node.</DL>
</DD>
</DL>
<HR>

<A NAME="getNewDocumentFromNode()"><!-- --></A><H3>
getNewDocumentFromNode</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getNewDocumentFromNode</B>()                                 throws javax.xml.parsers.ParserConfigurationException,                                        org.xml.sax.SAXException</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>A new document with the node as the root node.<DD><CODE>javax.xml.parsers.ParserConfigurationException</CODE><DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getNodeCount()"><!-- --></A><H3>
getNodeCount</H3>
<PRE>
public int <B>getNodeCount</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The number of child elements.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodes()"><!-- --></A><H3>
getNodes</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A>[] <B>getNodes</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The child elements as an array of XmlReader.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodeSet()"><!-- --></A><H3>
getNodeSet</H3>
<PRE>
public <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A> <B>getNodeSet</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>A NodeSet instance containing the child elements.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodeSortedSet()"><!-- --></A><H3>
getNodeSortedSet</H3>
<PRE>
public <A HREF="../../../org/amic/xml/NodeSortedSet.html">NodeSortedSet</A> <B>getNodeSortedSet</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>A NodeSortedSet instance containing the child elements.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodeByName(java.lang.String)"><!-- --></A><H3>
getNodeByName</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A> <B>getNodeByName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the desired elements.<DT><B>Returns:</B><DD>The first child element with the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodesByName(java.lang.String)"><!-- --></A><H3>
getNodesByName</H3>
<PRE>
public <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A> <B>getNodesByName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the desired elements.<DT><B>Returns:</B><DD>A NodeSet instance containing the child elements  with the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getNodesByName(java.lang.String, int)"><!-- --></A><H3>
getNodesByName</H3>
<PRE>
public <A HREF="../../../org/amic/xml/NodeSet.html">NodeSet</A> <B>getNodesByName</B>(java.lang.String&nbsp;name,                              int&nbsp;count)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the desired elements.<DD><CODE>count</CODE> - The maximun elements to be returned.  <code>count = 0</code> will mean 'all'.<DT><B>Returns:</B><DD>A NodeSet instance containing the child elements  with the given name.</DL>
</DD>
</DL>
<HR>

<A NAME="getValue()"><!-- --></A><H3>
getValue</H3>
<PRE>
public java.lang.String <B>getValue</B>()</PRE>
<DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -