📄 hierarchypropertyparser.html
字号:
<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="goToChild(java.lang.String)"><!-- --></A><H3>goToChild</H3><PRE>public boolean <B>goToChild</B>(java.lang.String value)</PRE><DL><DD>Go to one child node from the current position in the tree according to the given value <br> If the child node with the given value cannot be found it returns false, true otherwise. If false, the current position does not change<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the value of the given child<DT><B>Returns:</B><DD>whether the child can be found</DL></DD></DL><HR><A NAME="goToChild(int)"><!-- --></A><H3>goToChild</H3><PRE>public void <B>goToChild</B>(int pos) throws java.lang.Exception</PRE><DL><DD>Go to one child node from the current position in the tree according to the given position <br><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position of the given child<DT><B>Throws:</B><DD><CODE>if</CODE> - the position is out of range or leaf is reached<DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="numChildren()"><!-- --></A><H3>numChildren</H3><PRE>public int <B>numChildren</B>()</PRE><DL><DD>The number of the children nodes. If current node is leaf, it returns 0.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of the children nodes of the current position</DL></DD></DL><HR><A NAME="childrenValues()"><!-- --></A><H3>childrenValues</H3><PRE>public java.lang.String[] <B>childrenValues</B>()</PRE><DL><DD>The value in the children nodes. If current node is leaf, it returns null.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value in the children nodes</DL></DD></DL><HR><A NAME="parentValue()"><!-- --></A><H3>parentValue</H3><PRE>public java.lang.String <B>parentValue</B>()</PRE><DL><DD>The value in the parent node. If current node is root, it returns null.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the value in the parent node</DL></DD></DL><HR><A NAME="isLeafReached()"><!-- --></A><H3>isLeafReached</H3><PRE>public boolean <B>isLeafReached</B>()</PRE><DL><DD>Whether the current position is a leaf<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the current position is a leaf</DL></DD></DL><HR><A NAME="isRootReached()"><!-- --></A><H3>isRootReached</H3><PRE>public boolean <B>isRootReached</B>()</PRE><DL><DD>Whether the current position is the root<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the current position is the root</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public java.lang.String <B>getValue</B>()</PRE><DL><DD>Get the value of current node<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>value level</DL></DD></DL><HR><A NAME="getLevel()"><!-- --></A><H3>getLevel</H3><PRE>public int <B>getLevel</B>()</PRE><DL><DD>Get the level of current node. Note the level starts from 0<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the level</DL></DD></DL><HR><A NAME="depth()"><!-- --></A><H3>depth</H3><PRE>public int <B>depth</B>()</PRE><DL><DD>Get the depth of the tree, i.e. (the largest level)+1<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the depth of the tree</DL></DD></DL><HR><A NAME="context()"><!-- --></A><H3>context</H3><PRE>public java.lang.String <B>context</B>()</PRE><DL><DD>The context of the current node, i.e. the path from the root to the parent node of the current node, seperated by the seperator. If root, it returns null<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the context path</DL></DD></DL><HR><A NAME="fullValue()"><!-- --></A><H3>fullValue</H3><PRE>public java.lang.String <B>fullValue</B>()</PRE><DL><DD>The full value of the current node, i.e. its context + seperator + its value. For root, only its value.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the context path</DL></DD></DL><HR><A NAME="showTree()"><!-- --></A><H3>showTree</H3><PRE>public java.lang.String <B>showTree</B>()</PRE><DL><DD>Show the whole tree in text format<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the whole tree in text format</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Tests out the parser.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - should contain nothing</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <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="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="../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../weka/gui/GUIChooser.html" title="class in weka.gui"><B>PREV CLASS</B></A> <A HREF="../../weka/gui/InstancesSummaryPanel.html" title="class in weka.gui"><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="HierarchyPropertyParser.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -