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

📄 xmlwriter.html

📁 XMLVocabulary支持显示、查询、修改和保存XML数据。可以将XML映射到数据库。你也需要的只是使用XML作为你的项目的主数据。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
removeNode</H3>
<PRE>
public boolean <B>removeNode</B>(<A HREF="../../../org/amic/xml/XmlReader.html">XmlReader</A>&nbsp;reader)</PRE>
<DL>
<DD>Removes the given XmlReader from the document whether the reader represents the same internal node or is a child node at any level.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeChildren(java.lang.String)"><!-- --></A><H3>
removeChildren</H3>
<PRE>
public void <B>removeChildren</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Removes the child nodes with the given name.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeChildren()"><!-- --></A><H3>
removeChildren</H3>
<PRE>
public void <B>removeChildren</B>()</PRE>
<DL>
<DD>Removes the child nodes.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="removeAttribute(java.lang.String)"><!-- --></A><H3>
removeAttribute</H3>
<PRE>
public void <B>removeAttribute</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Removes the attribute with the given name.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertNode(java.lang.String)"><!-- --></A><H3>
insertNode</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlWriter.html">XmlWriter</A> <B>insertNode</B>(java.lang.String&nbsp;tag)</PRE>
<DL>
<DD>Inserts a node at the internal node position with the given tag name.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="insertNode(org.amic.xml.XmlWriter, boolean)"><!-- --></A><H3>
insertNode</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlWriter.html">XmlWriter</A> <B>insertNode</B>(<A HREF="../../../org/amic/xml/XmlWriter.html">XmlWriter</A>&nbsp;writer,                            boolean&nbsp;deep)</PRE>
<DL>
<DD>Inserts a node at the internal node position with the given XmlWriter.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
setAttribute</H3>
<PRE>
public void <B>setAttribute</B>(java.lang.String&nbsp;name,                         java.lang.String&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setIntAttribute(java.lang.String, int)"><!-- --></A><H3>
setIntAttribute</H3>
<PRE>
public void <B>setIntAttribute</B>(java.lang.String&nbsp;name,                            int&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setLongAttribute(java.lang.String, long)"><!-- --></A><H3>
setLongAttribute</H3>
<PRE>
public void <B>setLongAttribute</B>(java.lang.String&nbsp;name,                             long&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setDoubleAttribute(java.lang.String, double)"><!-- --></A><H3>
setDoubleAttribute</H3>
<PRE>
public void <B>setDoubleAttribute</B>(java.lang.String&nbsp;name,                               double&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setDoubleAttribute(java.lang.String, double, int)"><!-- --></A><H3>
setDoubleAttribute</H3>
<PRE>
public void <B>setDoubleAttribute</B>(java.lang.String&nbsp;name,                               double&nbsp;value,                               int&nbsp;roundTo)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setBooleanAttribute(java.lang.String, boolean)"><!-- --></A><H3>
setBooleanAttribute</H3>
<PRE>
public void <B>setBooleanAttribute</B>(java.lang.String&nbsp;name,                                boolean&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setNumberAttribute(java.lang.String, java.lang.Number, int)"><!-- --></A><H3>
setNumberAttribute</H3>
<PRE>
public void <B>setNumberAttribute</B>(java.lang.String&nbsp;name,                               java.lang.Number&nbsp;value,                               int&nbsp;roundTo)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setDateAttribute(java.lang.String, java.util.Date)"><!-- --></A><H3>
setDateAttribute</H3>
<PRE>
public void <B>setDateAttribute</B>(java.lang.String&nbsp;name,                             java.util.Date&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setTimeAttribute(java.lang.String, java.util.Date)"><!-- --></A><H3>
setTimeAttribute</H3>
<PRE>
public void <B>setTimeAttribute</B>(java.lang.String&nbsp;name,                             java.util.Date&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setObjectAttribute(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setObjectAttribute</H3>
<PRE>
public void <B>setObjectAttribute</B>(java.lang.String&nbsp;name,                               java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Sets the attribute value.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="cloneAttributesFrom(org.amic.xml.XmlWriter)"><!-- --></A><H3>
cloneAttributesFrom</H3>
<PRE>
public void <B>cloneAttributesFrom</B>(<A HREF="../../../org/amic/xml/XmlWriter.html">XmlWriter</A>&nbsp;writer)</PRE>
<DL>
<DD>Copy attributes and values from writer.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setText(java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public void <B>setText</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD>Sets the text value from the element. The text will be created as text or cdata depending on occurrences of the '&lt;' caracter.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getInternalNode()"><!-- --></A><H3>
getInternalNode</H3>
<PRE>
public org.w3c.dom.Node <B>getInternalNode</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The internal node instance.</DL>
</DD>
</DL>
<HR>

<A NAME="saveToFile(java.awt.Component)"><!-- --></A><H3>
saveToFile</H3>
<PRE>
public void <B>saveToFile</B>(java.awt.Component&nbsp;owner)</PRE>
<DL>
<DD>Saves the XML contents to a file. Same to call <code>saveToFile(owner, null, false)</code>
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/amic/xml/XmlWriter.html#saveToFile(java.awt.Component, java.lang.String, boolean)"><CODE>saveToFile(Component owner, String file, boolean direct)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="saveToFile(java.awt.Component, java.lang.String, boolean)"><!-- --></A><H3>
saveToFile</H3>
<PRE>
public void <B>saveToFile</B>(java.awt.Component&nbsp;owner,                       java.lang.String&nbsp;file,                       boolean&nbsp;direct)</PRE>
<DL>
<DD>Saves the XML contents to a file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>owner</CODE> - The frame that will be the owner for the SaveAs dialog.<DD><CODE>file</CODE> - The file name where the XML has to be saved.<DD><CODE>direct</CODE> - If true then no dialog will be shown an the content will be directly saved to the given file.</DL>
</DD>
</DL>
<HR>

<A NAME="output()"><!-- --></A><H3>
output</H3>
<PRE>
public void <B>output</B>()</PRE>
<DL>
<DD>Writes the XML contents to System.out.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="outputNode()"><!-- --></A><H3>
outputNode</H3>
<PRE>
public void <B>outputNode</B>()</PRE>
<DL>
<DD>Writes the XML node contents to System.out.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMapper()"><!-- --></A><H3>
getMapper</H3>
<PRE>
public <A HREF="../../../org/amic/xml/XmlMapper.html">XmlMapper</A> <B>getMapper</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The XmlMapper used by this XmlWriter.</DL>
</DD>
</DL>
<HR>

<A NAME="setMapper(org.amic.xml.XmlMapper)"><!-- --></A><H3>
setMapper</H3>
<PRE>
public void <B>setMapper</B>(<A HREF="../../../org/amic/xml/XmlMapper.html">XmlMapper</A>&nbsp;mapper)</PRE>
<DL>
<DD>Sets the mapper to be used by the XmlWriter.
<P>
<DD><DL>
</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=3 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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Amic utility<br> classes</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/amic/xml/XmlWait.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/amic/xml/XPathFinder.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>  &nbsp;
&nbsp;<A HREF="XmlWriter.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size=-1>Contact me at <a href='mailto:lluis@turro.org'>Lluis Turro</a></font>
</BODY>
</HTML>

⌨️ 快捷键说明

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