📄 propertyhandler.html
字号:
<DL><DD>initializes the handling<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="ignored()"><!-- --></A><H3>ignored</H3><PRE>public java.util.Enumeration <B>ignored</B>()</PRE><DL><DD>returns an enumeration of the stored display names and classes of properties to ignore.<br> <b>NOTE:</b> String and Class Objects are mixed in this enumeration, depending whether it is a global property to ignore or just one for a certain class!<P><DD><DL><DT><B>Returns:</B><DD>the display names and classes<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="addIgnored(java.lang.String)"><!-- --></A><H3>addIgnored</H3><PRE>public void <B>addIgnored</B>(java.lang.String displayName)</PRE><DL><DD>adds the given display name of a property to the ignore list. Can either be a complete path (e.g. <code>__root__.options</code>) or only a property name (e.g. <code>options</code>). In the latter case it matches all occurences of this display name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>displayName</CODE> - the property to ignore<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="addIgnored(java.lang.Class, java.lang.String)"><!-- --></A><H3>addIgnored</H3><PRE>public void <B>addIgnored</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>adds the given class with the display name of a property to the ignore list. I.e. this property is only ignored for this class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class for which a property is to be ignored<DD><CODE>displayName</CODE> - the property to ignore<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="removeIgnored(java.lang.String)"><!-- --></A><H3>removeIgnored</H3><PRE>public boolean <B>removeIgnored</B>(java.lang.String displayName)</PRE><DL><DD>removes the given display name from the ignore list. returns whether the removing was succesful, i.e. whether the display name was in the list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>displayName</CODE> - the property to remove from the ignore list<DT><B>Returns:</B><DD>whether the ignore list contained the specified property<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="removeIgnored(java.lang.Class, java.lang.String)"><!-- --></A><H3>removeIgnored</H3><PRE>public boolean <B>removeIgnored</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>removes the given display name from the ignore list of the class. returns whether the removing was succesful, i.e. whether the display name was in the list.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class to remove the property from<DD><CODE>displayName</CODE> - the property to remove from the ignore list<DT><B>Returns:</B><DD>whether the ignore list contained the specified property<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="isIgnored(java.lang.String)"><!-- --></A><H3>isIgnored</H3><PRE>public boolean <B>isIgnored</B>(java.lang.String displayName)</PRE><DL><DD>checks whether the given display name is an ignored property<P><DD><DL><DT><B>Parameters:</B><DD><CODE>displayName</CODE> - the property to check whether it is on the ignore list<DT><B>Returns:</B><DD>whether the property is in the ignored list<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="isIgnored(java.lang.Class, java.lang.String)"><!-- --></A><H3>isIgnored</H3><PRE>public boolean <B>isIgnored</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>checks whether the given display name of a certain class is an ignored property. It only checks for this certain class and no derivative classes. If you also want to check for derivative classes, use <code>isIgnored(Object,String)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class to check the property for<DD><CODE>displayName</CODE> - the property to check whether it is on the ignore list<DT><B>Returns:</B><DD>whether the property is in the ignored list<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE>, <A HREF="../../../weka/core/xml/PropertyHandler.html#isIgnored(java.lang.Object, java.lang.String)"><CODE>isIgnored(Object, String)</CODE></A></DL></DD></DL><HR><A NAME="isIgnored(java.lang.Object, java.lang.String)"><!-- --></A><H3>isIgnored</H3><PRE>public boolean <B>isIgnored</B>(java.lang.Object o, java.lang.String displayName)</PRE><DL><DD>checks whether the given display name of a given object is an ignored property. The object is checked for each stored class whether it is an <code>instanceof</code>. If the class is not stored then it will default to <code>false</code>, since there are no restrictions for this class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to check the property for<DD><CODE>displayName</CODE> - the property to check whether it is on the ignore list<DT><B>Returns:</B><DD>whether the property is in the ignored list<DT><B>See Also:</B><DD><CODE>#m_Ignored</CODE></DL></DD></DL><HR><A NAME="allowed()"><!-- --></A><H3>allowed</H3><PRE>public java.util.Enumeration <B>allowed</B>()</PRE><DL><DD>returns an enumeration of the classnames for which only certain properties (display names) are allowed<P><DD><DL><DT><B>Returns:</B><DD>the classnames with restriction to properties</DL></DD></DL><HR><A NAME="addAllowed(java.lang.Class, java.lang.String)"><!-- --></A><H3>addAllowed</H3><PRE>public void <B>addAllowed</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>adds the given property (display name) to the list of allowed properties for the specified class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class to add a property for<DD><CODE>displayName</CODE> - the property to allow for the class<DT><B>See Also:</B><DD><CODE>#m_Allowed</CODE></DL></DD></DL><HR><A NAME="removeAllowed(java.lang.Class, java.lang.String)"><!-- --></A><H3>removeAllowed</H3><PRE>public boolean <B>removeAllowed</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>removes the given property (display name) for the specified class from the list of allowed properties.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class to remove the property for<DD><CODE>displayName</CODE> - the property to remove<DT><B>Returns:</B><DD>whether the property was found<DT><B>See Also:</B><DD><CODE>#m_Allowed</CODE></DL></DD></DL><HR><A NAME="isAllowed(java.lang.Class, java.lang.String)"><!-- --></A><H3>isAllowed</H3><PRE>public boolean <B>isAllowed</B>(java.lang.Class c, java.lang.String displayName)</PRE><DL><DD>returns whether the given property (display name) is allowed for the given class. It only checks for this certain class and no derivative classes. If you also want to check for derivative classes, use <code>isAllowed(Object,String)</code>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the class to check the property for<DD><CODE>displayName</CODE> - the property (display name) to check<DT><B>Returns:</B><DD>whether the property is allowed in that context<DT><B>See Also:</B><DD><CODE>#m_Allowed</CODE>, <A HREF="../../../weka/core/xml/PropertyHandler.html#isAllowed(java.lang.Object, java.lang.String)"><CODE>isAllowed(Object, String)</CODE></A></DL></DD></DL><HR><A NAME="isAllowed(java.lang.Object, java.lang.String)"><!-- --></A><H3>isAllowed</H3><PRE>public boolean <B>isAllowed</B>(java.lang.Object o, java.lang.String displayName)</PRE><DL><DD>returns whether the given property (display name) is allowed for the given object . The object is checked for each stored class whether it is an <code>instanceof</code>. If the class is not stored then it will default to <code>true</code>, since there are no restrictions for this class.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to check the property for<DD><CODE>displayName</CODE> - the property (display name) to check<DT><B>Returns:</B><DD>whether the property is allowed in that context</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/core/xml/MethodHandler.html" title="class in weka.core.xml"><B>PREV CLASS</B></A> <A HREF="../../../weka/core/xml/SerialUIDChanger.html" title="class in weka.core.xml"><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="PropertyHandler.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 + -