📄 objectname.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_02) on Thu Nov 13 17:20:53 PST 2003 --><TITLE>ObjectName (Java 2 Platform Ent. Ed. v1.4)</TITLE><META NAME="keywords" CONTENT="javax.management.ObjectName class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="ObjectName (Java 2 Platform Ent. Ed. v1.4)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.management</FONT><BR>Class ObjectName</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> <IMG SRC="../../resources/inherit.gif" ALT="extended by"><B>javax.management.ObjectName</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><HR><DL><DT>public class <B>ObjectName</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL><P><p>Represents the object name of an MBean, or a pattern that can match the names of several MBeans. Instances of this class are immutable.</p> <p>An instance of this class can be used to represent: <ul> <li> An object name <li> An object name pattern, within the context of a query </ul></p> <p>An object name consists of two parts, the domain and the key properties.</p> <p>The <em>domain</em> is a string of characters not including the character colon (<code>:</code>).</p> <p>If the domain includes at least one occurrence of the wildcard characters asterisk (<code>*</code>) or question mark (<code>?</code>), then the object name is a pattern. The asterisk matches any sequence of zero or more characters, while the question mark matches any single character.</p> <p>If the domain is empty, it will be replaced in certain contexts by the <em>default domain</em> of the MBean server in which the ObjectName is used.</p> <p>The <em>key properties</em> are an unordered set of keys and associated values.</p> <p>Each <em>key</em> is a nonempty string of characters which may not contain any of the characters comma (<code>,</code>), equals (<code>=</code>), colon, asterisk, or question mark. The same key may not occur twice in a given ObjectName.</p> <p>Each <em>value</em> associated with a key is a string of characters that is either unquoted or quoted.</p> <p>An <em>unquoted value</em> is a possibly empty string of characters which may not contain any of the characters comma, equals, colon, quote, asterisk, or question mark.</p> <p>A <em>quoted value</em> consists of a quote (<code>"</code>), followed by a possibly empty string of characters, followed by another quote. Within the string of characters, the backslash (<code>\</code>) has a special meaning. It must be followed by one of the following characters:</p> <ul> <li>Another backslash. The second backslash has no special meaning and the two characters represent a single blackslash. <li>The character 'n'. The two characters represent a newline ('\n' in Java). <li>A quote. The two characters represent a quote, and that quote is not considered to terminate the quoted value. An ending closing quote must be present for the quoted value to be valid. <li>A question mark (?) or star (*). The two characters represent a question mark or star respectively. </ul> <p>A quote, question mark, or star may not appear inside a quoted value except immediately after an odd number of consecutive backslashes.</p> <p>The quotes surrounding a quoted value, and any backslashes within that value, are considered to be part of the value.</p> <p>An ObjectName may be a <em>property pattern</em>. In this case it may have zero or more keys and associated values. It matches a nonpattern ObjectName whose domain matches and that contains the same keys and associated values, as well as possibly other keys and values.</p> <p>An ObjectName is a pattern if its domain contains a wildcard or if the ObjectName is a property pattern.</p> <p>If an ObjectName is not a pattern, it must contain at least one key with its associated value.</p> <p>An ObjectName can be written as a String with the following elements in order:</p> <ul> <li>The domain. <li>A colon (<code>:</code>). <li>A key property list as defined below. </ul> <p>A key property list written as a String is a comma-separated list of elements. Each element is either an asterisk or a key property. A key property consists of a key, an equals (<code>=</code>), and the associated value.</p> <p>At most one element of a key property list may be an asterisk. If the key property list contains an asterisk element, the ObjectName is a property pattern.</p> <p>Spaces have no special significance in a String representing an ObjectName. For example, the String: <pre> domain: key1 = value1 , key2 = value2 </pre> represents an ObjectName with two keys. The name of each key contains six characters, of which the first and last are spaces. The value associated with the key <code>" key1 "</code> also begins and ends with a space.</p> <p>In addition to the restrictions on characters spelt out above, no part of an ObjectName may contain a newline character (<code>'\n'</code>), whether the domain, a key, or a value, whether quoted or unquoted. The newline character can be represented in a quoted value with the sequence <code>\n</code>. <p>The rules on special characters and quoting apply regardless of which constructor is used to make an ObjectName.</p> <p>To avoid collisions between MBeans supplied by different vendors, a useful convention is to begin the domain name with the reverse DNS name of the organization that specifies the MBeans, followed by a period and a string whose interpretation is determined by that organization. For example, MBeans specified by Sun Microsystems Inc., DNS name <code>sun.com</code>, would have domains such as <code>com.sun.MyDomain</code>. This is essentially the same convention as for Java-language package names.</p><P><P><DL><DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#javax.management.ObjectName">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/management/ObjectName.html#ObjectName(java.lang.String)">ObjectName</A></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> name)</CODE><BR> Construct an object name from the given string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/management/ObjectName.html#ObjectName(java.lang.String, java.util.Hashtable)">ObjectName</A></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> domain, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html" title="class or interface in java.util">Hashtable</A> table)</CODE><BR> Construct an object name with several key properties from a Hashtable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/management/ObjectName.html#ObjectName(java.lang.String, java.lang.String, java.lang.String)">ObjectName</A></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> domain, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> key, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</CODE><BR> Construct an object name with exactly one key property.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/ObjectName.html#apply(javax.management.ObjectName)">apply</A></B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A> name)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -