📄 xmlserialization.html
字号:
public static final java.lang.String <B>VAL_YES</B></PRE><DL><DD>the value "yes" for the primitive and array attribute<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.VAL_YES">Constant Field Values</A></DL></DL><HR><A NAME="VAL_NO"><!-- --></A><H3>VAL_NO</H3><PRE>public static final java.lang.String <B>VAL_NO</B></PRE><DL><DD>the value "no" for the primitive and array attribute<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.VAL_NO">Constant Field Values</A></DL></DL><HR><A NAME="VAL_ROOT"><!-- --></A><H3>VAL_ROOT</H3><PRE>public static final java.lang.String <B>VAL_ROOT</B></PRE><DL><DD>the value of the name for the root node<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.VAL_ROOT">Constant Field Values</A></DL></DL><HR><A NAME="ROOT_NODE"><!-- --></A><H3>ROOT_NODE</H3><PRE>public static final java.lang.String <B>ROOT_NODE</B></PRE><DL><DD>the root node of the XML document<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.ROOT_NODE">Constant Field Values</A></DL></DL><HR><A NAME="ATT_PRIMITIVE_DEFAULT"><!-- --></A><H3>ATT_PRIMITIVE_DEFAULT</H3><PRE>public static final java.lang.String <B>ATT_PRIMITIVE_DEFAULT</B></PRE><DL><DD>default value for attribute ATT_PRIMITIVE<P><DL><DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLSerialization.html#ATT_PRIMITIVE"><CODE>ATT_PRIMITIVE</CODE></A>, <A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.ATT_PRIMITIVE_DEFAULT">Constant Field Values</A></DL></DL><HR><A NAME="ATT_ARRAY_DEFAULT"><!-- --></A><H3>ATT_ARRAY_DEFAULT</H3><PRE>public static final java.lang.String <B>ATT_ARRAY_DEFAULT</B></PRE><DL><DD>default value for attribute ATT_ARRAY<P><DL><DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLSerialization.html#ATT_ARRAY"><CODE>ATT_ARRAY</CODE></A>, <A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.ATT_ARRAY_DEFAULT">Constant Field Values</A></DL></DL><HR><A NAME="ATT_NULL_DEFAULT"><!-- --></A><H3>ATT_NULL_DEFAULT</H3><PRE>public static final java.lang.String <B>ATT_NULL_DEFAULT</B></PRE><DL><DD>default value for attribute ATT_NULL<P><DL><DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLSerialization.html#ATT_NULL"><CODE>ATT_NULL</CODE></A>, <A HREF="../../../constant-values.html#weka.core.xml.XMLSerialization.ATT_NULL_DEFAULT">Constant Field Values</A></DL></DL><HR><A NAME="DOCTYPE"><!-- --></A><H3>DOCTYPE</H3><PRE>public static final java.lang.String <B>DOCTYPE</B></PRE><DL><DD>the DOCTYPE for the serialization<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="XMLSerialization()"><!-- --></A><H3>XMLSerialization</H3><PRE>public <B>XMLSerialization</B>() throws java.lang.Exception</PRE><DL><DD>initializes the serialization<P><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if initialization fails</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>() throws java.lang.Exception</PRE><DL><DD>generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-Methods<P><DD><DL><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="getVersion()"><!-- --></A><H3>getVersion</H3><PRE>public java.lang.String <B>getVersion</B>()</PRE><DL><DD>returns the WEKA version with which the serialized object was created<P><DD><DL><DT><B>Returns:</B><DD>the current version<DT><B>See Also:</B><DD><A HREF="../../../weka/core/Version.html" title="class in weka.core"><CODE>Version</CODE></A></DL></DD></DL><HR><A NAME="writeToXML(org.w3c.dom.Element, java.lang.Object, java.lang.String)"><!-- --></A><H3>writeToXML</H3><PRE>public org.w3c.dom.Element <B>writeToXML</B>(org.w3c.dom.Element parent, java.lang.Object o, java.lang.String name) throws java.lang.Exception</PRE><DL><DD>adds the given Object to a DOM structure. (only public due to reflection).<br> <b>Note:</b> <code>overrideClassname(Object)</code> is not invoked in case of arrays, since the array class could be a superclass, whereas the elements of the array can be specialized subclasses. In case of an array the method <code>overrideClassname(String)</code> is invoked, which searches for an exact match of the classname in the override hashtable.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent of this object, e.g. the class this object is a member of<DD><CODE>o</CODE> - the Object to describe in XML<DD><CODE>name</CODE> - the name of the object<DT><B>Returns:</B><DD>the node that was created<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the DOM creation fails<DT><B>See Also:</B><DD><A HREF="../../../weka/core/xml/XMLSerialization.html#overrideClassname(java.lang.Object)"><CODE>overrideClassname(Object)</CODE></A>, <A HREF="../../../weka/core/xml/XMLSerialization.html#overrideClassname(java.lang.String)"><CODE>overrideClassname(String)</CODE></A>, <A HREF="../../../weka/core/xml/XMLSerialization.html#m_ClassnameOverride"><CODE>m_ClassnameOverride</CODE></A></DL></DD></DL><HR><A NAME="toXML(java.lang.Object)"><!-- --></A><H3>toXML</H3><PRE>public <A HREF="../../../weka/core/xml/XMLDocument.html" title="class in weka.core.xml">XMLDocument</A> <B>toXML</B>(java.lang.Object o) throws java.lang.Exception</PRE><DL><DD>extracts all accesible properties from the given object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to turn into an XML representation<DT><B>Returns:</B><DD>the generated DOM document<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if XML generation fails</DL></DD></DL><HR><A NAME="readBooleanFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readBooleanFromXML</H3><PRE>public boolean <B>readBooleanFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readByteFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readByteFromXML</H3><PRE>public byte <B>readByteFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readCharFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readCharFromXML</H3><PRE>public char <B>readCharFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readDoubleFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readDoubleFromXML</H3><PRE>public double <B>readDoubleFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readFloatFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readFloatFromXML</H3><PRE>public float <B>readFloatFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readIntFromXML(org.w3c.dom.Element)"><!-- --></A><H3>readIntFromXML</H3><PRE>public int <B>readIntFromXML</B>(org.w3c.dom.Element node) throws java.lang.Exception</PRE><DL><DD>builds the primitive from the given DOM node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the associated XML node<DT><B>Returns:</B><DD>the primitive created from the XML description<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instantiation fails</DL></DD></DL><HR><A NAME="readLongFromXML(org.w3c.dom.Element)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -