📄 openmbeanparameterinfo.html
字号:
</DL><HR><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE><DL><DD>Returns the name of the parameter described by this <tt>OpenMBeanParameterInfo</tt> instance.<P><DD><DL><DT><B>Returns:</B><DD>the name.</DL></DD></DL><HR><A NAME="getOpenType()"><!-- --></A><H3>getOpenType</H3><PRE>public <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A> <B>getOpenType</B>()</PRE><DL><DD>Returns the <i>open type</i> of the values of the parameter described by this <tt>OpenMBeanParameterInfo</tt> instance.<P><DD><DL><DT><B>Returns:</B><DD>the open type.</DL></DD></DL><HR><A NAME="getDefaultValue()"><!-- --></A><H3>getDefaultValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getDefaultValue</B>()</PRE><DL><DD>Returns the default value for this parameter, if it has one, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>the default value.</DL></DD></DL><HR><A NAME="getLegalValues()"><!-- --></A><H3>getLegalValues</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>getLegalValues</B>()</PRE><DL><DD>Returns the set of legal values for this parameter, if it has one, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>the set of legal values.</DL></DD></DL><HR><A NAME="getMinValue()"><!-- --></A><H3>getMinValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> <B>getMinValue</B>()</PRE><DL><DD>Returns the minimal value for this parameter, if it has one, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>the minimum value.</DL></DD></DL><HR><A NAME="getMaxValue()"><!-- --></A><H3>getMaxValue</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Comparable.html" title="class or interface in java.lang">Comparable</A> <B>getMaxValue</B>()</PRE><DL><DD>Returns the maximal value for this parameter, if it has one, or <tt>null</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>the maximum value.</DL></DD></DL><HR><A NAME="hasDefaultValue()"><!-- --></A><H3>hasDefaultValue</H3><PRE>public boolean <B>hasDefaultValue</B>()</PRE><DL><DD>Returns <tt>true</tt> if this parameter has a specified default value, or <tt>false</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>true if there is a default value.</DL></DD></DL><HR><A NAME="hasLegalValues()"><!-- --></A><H3>hasLegalValues</H3><PRE>public boolean <B>hasLegalValues</B>()</PRE><DL><DD>Returns <tt>true</tt> if this parameter has a specified set of legal values, or <tt>false</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>true if there is a set of legal values.</DL></DD></DL><HR><A NAME="hasMinValue()"><!-- --></A><H3>hasMinValue</H3><PRE>public boolean <B>hasMinValue</B>()</PRE><DL><DD>Returns <tt>true</tt> if this parameter has a specified minimal value, or <tt>false</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>true if there is a minimum value.</DL></DD></DL><HR><A NAME="hasMaxValue()"><!-- --></A><H3>hasMaxValue</H3><PRE>public boolean <B>hasMaxValue</B>()</PRE><DL><DD>Returns <tt>true</tt> if this parameter has a specified maximal value, or <tt>false</tt> otherwise.<P><DD><DL><DT><B>Returns:</B><DD>true if there is a maximum value.</DL></DD></DL><HR><A NAME="isValue(java.lang.Object)"><!-- --></A><H3>isValue</H3><PRE>public boolean <B>isValue</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Tests whether <var>obj</var> is a valid value for the parameter described by this <code>OpenMBeanParameterInfo</code> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to be tested.<DT><B>Returns:</B><DD><code>true</code> if <var>obj</var> is a valid value for for the parameter described by this <code>OpenMBeanParameterInfo</code> instance, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> obj)</PRE><DL><DD>Compares the specified <var>obj</var> parameter with this <code>OpenMBeanParameterInfo</code> instance for equality. <p> Returns <tt>true</tt> if and only if all of the following statements are true: <ul> <li><var>obj</var> is non null,</li> <li><var>obj</var> also implements the <code>OpenMBeanParameterInfo</code> interface,</li> <li>their names are equal</li> <li>their open types are equal</li> <li>their default, min, max and legal values are equal.</li> </ul> This ensures that this <tt>equals</tt> method works properly for <var>obj</var> parameters which are different implementations of the <code>OpenMBeanParameterInfo</code> interface. <br> <P><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to be compared for equality with this <code>OpenMBeanParameterInfo</code> instance;<DT><B>Returns:</B><DD><code>true</code> if the specified object is equal to this <code>OpenMBeanParameterInfo</code> instance.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code value for this <code>OpenMBeanParameterInfo</code> instance. <p> The hash code of an <code>OpenMBeanParameterInfo</code> instance is the sum of the hash codes of all elements of information used in <code>equals</code> comparisons (ie: its name, its <i>open type</i>, and its default, min, max and legal values). <p> This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code> for any two <code>OpenMBeanParameterInfo</code> instances <code>t1</code> and <code>t2</code>, as required by the general contract of the method <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()"> <code>Object.hashCode</code> </a>. <p><P><DD><DL><DT><B>Returns:</B><DD>the hash code value for this <code>OpenMBeanParameterInfo</code> instance</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of this <code>OpenMBeanParameterInfo</code> instance. <p> The string representation consists of the name of this class (ie <code>javax.management.openmbean.OpenMBeanParameterInfo</code>), the string representation of the name and open type of the described parameter, and the string representation of its default, min, max and legal values.<P><DD><DL><DT><B>Returns:</B><DD>a string representation of this <code>OpenMBeanParameterInfo</code> instance</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="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/management/openmbean/OpenMBeanOperationInfo.html" title="interface in javax.management.openmbean"><B>PREV CLASS</B></A> <A HREF="../../../javax/management/openmbean/TabularData.html" title="interface in javax.management.openmbean"><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="OpenMBeanParameterInfo.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -