📄 objectname.html
字号:
<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>getKeyPropertyListString</B>()</PRE><DL><DD><p>Returns a string representation of the list of key properties specified at creation time. If this ObjectName was constructed with the constructor <A HREF="../../javax/management/ObjectName.html#ObjectName(java.lang.String)"><CODE>ObjectName(String)</CODE></A>, the key properties in the returned String will be in the same order as in the argument to the constructor.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The key property list string. This string is independent of whether the ObjectName is a pattern.</DL></DD></DL><HR><A NAME="getCanonicalKeyPropertyListString()"><!-- --></A><H3>getCanonicalKeyPropertyListString</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>getCanonicalKeyPropertyListString</B>()</PRE><DL><DD>Returns a string representation of the list of key properties, in which the key properties are sorted in lexical order. This is used in lexicographic comparisons performed in order to select MBeans based on their key property list. Lexical order is the order implied by <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html#compareTo(java.lang.String)" title="class or interface in java.lang"><CODE>String.compareTo(String)</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The canonical key property list string. This string is independent of whether the ObjectName is a pattern.</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><p>Returns a string representation of the object name. The format of this string is not specified, but users can expect that two ObjectNames return the same string if and only if they are equal.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this object name.</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> object)</PRE><DL><DD>Compares the current object name with another object name. Two ObjectName instances are equal if and only if their canonical forms are equal. The canonical form is the string described for <A HREF="../../javax/management/ObjectName.html#getCanonicalName()"><CODE>getCanonicalName()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - The object name that the current object name is to be compared with.<DT><B>Returns:</B><DD>True if <code>object</code> is an ObjectName whose canonical form is equal to that of this ObjectName.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hash code for this object name.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="quote(java.lang.String)"><!-- --></A><H3>quote</H3><PRE>public static <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>quote</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> s) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></PRE><DL><DD><p>Returns a quoted form of the given String, suitable for inclusion in an ObjectName. The returned value can be used as the value associated with a key in an ObjectName. The String <code>s</code> may contain any character. Appropriate quoting ensures that the returned value is legal in an ObjectName.</p> <p>The returned value consists of a quote ('"'), a sequence of characters corresponding to the characters of <code>s</code>, and another quote. Characters in <code>s</code> appear unchanged within the returned value except:</p> <ul> <li>A quote ('"')is replaced by a backslash (\) followed by a quote. <li>A star ('*') is replaced by a backslash (\) followed by a star. <li>A question mark ('?') is replaced by a backslash (\) followed by a question mark. <li>A backslash ('\') is replaced by two backslashes. <li>A newline character (the character '\n' in Java) is replaced by a backslash followed by the character '\n'. </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the String to be quoted.<DT><B>Returns:</B><DD>the quoted String.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>s</code> is null.<DT><B>Since:</B></DT> <DD>JMX 1.2</DD></DL></DD></DL><HR><A NAME="unquote(java.lang.String)"><!-- --></A><H3>unquote</H3><PRE>public static <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>unquote</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> q) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></PRE><DL><DD><p>Returns an unquoted form of the given String. If <code>q</code> is a String returned by <A HREF="../../javax/management/ObjectName.html#quote(java.lang.String)"><CODE>quote(s)</CODE></A>, then <code>unquote(q).equals(s)</code>. If there is no String <code>s</code> for which <code>quote(s).equals(q)</code>, then unquote(q) throws an IllegalArgumentException.</p> <p>These rules imply that there is a one-to-one mapping between quoted and unquoted forms.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>q</CODE> - the String to be unquoted.<DT><B>Returns:</B><DD>the unquoted String.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>q</code> could not have been returned by the <A HREF="../../javax/management/ObjectName.html#quote(java.lang.String)"><CODE>quote(java.lang.String)</CODE></A> method, for instance if it does not begin and end with a quote (").<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>q</code> is null.<DT><B>Since:</B></DT> <DD>JMX 1.2</DD></DL></DD></DL><HR><A NAME="apply(javax.management.ObjectName)"><!-- --></A><H3>apply</H3><PRE>public boolean <B>apply</B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A> name) throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></PRE><DL><DD><p>Test whether this ObjectName, which may be a pattern, matches another ObjectName. If <code>name</code> is a pattern, the result is false. If this ObjectName is a pattern, the result is true if and only if <code>name</code> matches the pattern. If neither this ObjectName nor <code>name</code> is a pattern, the result is true if and only if the two ObjectNames are equal as described for the <A HREF="../../javax/management/ObjectName.html#equals(java.lang.Object)"><CODE>equals(Object)</CODE></A> method.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/management/QueryExp.html#apply(javax.management.ObjectName)">apply</A></CODE> in interface <CODE><A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the MBean to compare to.<DT><B>Returns:</B><DD>True if <code>name</code> matches this ObjectName.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if <code>name</code> is null.<DT><B>Since:</B></DT> <DD>JMX 1.2</DD></DL></DD></DL><HR><A NAME="setMBeanServer(javax.management.MBeanServer)"><!-- --></A><H3>setMBeanServer</H3><PRE>public void <B>setMBeanServer</B>(<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A> mbs)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A></CODE></B></DD><DD>Sets the MBean server on which the query is to be performed.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/management/QueryExp.html#setMBeanServer(javax.management.MBeanServer)">setMBeanServer</A></CODE> in interface <CODE><A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>mbs</CODE> - The MBean server on which the query is to be performed.</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/ObjectInstance.html" title="class in javax.management"><B>PREV CLASS</B></A> <A HREF="../../javax/management/Query.html" title="class in javax.management"><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="ObjectName.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><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 + -