⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compositedatasupport.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeDataSupport.html#getCompositeType()">getCompositeType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <i>composite type </i> of this <i>composite data</i> instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeDataSupport.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the hash code value for this <code>CompositeDataSupport</code> instance.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeDataSupport.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string representation of this <code>CompositeDataSupport</code> instance.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeDataSupport.html#values()">values</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an unmodifiable Collection view of the item values contained in this <tt>CompositeData</tt> instance. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CompositeDataSupport(javax.management.openmbean.CompositeType, java.lang.String[], java.lang.Object[])"><!-- --></A><H3>CompositeDataSupport</H3><PRE>public <B>CompositeDataSupport</B>(<A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A>&nbsp;compositeType,                            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;itemNames,                            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;itemValues)                     throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD><p> Constructs a <tt>CompositeDataSupport</tt> instance with the specified <tt>compositeType</tt>, whose item values are specified by <tt>itemValues[]</tt>, in the same order as in <tt>itemNames[]</tt>.  As a <tt>CompositeType</tt> does not specify any order on its items, the <tt>itemNames[]</tt> parameter is used to specify the order in which the values are given in <tt>itemValues[]</tt>.  The items contained in this <tt>CompositeDataSupport</tt> instance are internally stored in a <tt>TreeMap</tt>, thus sorted in ascending lexicographic order of their names, for faster retrieval of individual item values. <p> The constructor checks that all the constraints listed below for each parameter are satisfied, and throws the appropriate exception if they are not. <p><P><DT><B>Parameters:</B><DD><CODE>compositeType</CODE> - the <i>composite type </i> of this <i>composite data</i> instance;			      must not be null. <p><DD><CODE>itemNames</CODE> - <tt>itemNames</tt> must list, in any order, all the item names defined in <tt>compositeType</tt>;			  the order in which the names are listed, is used to match values in <tt>itemValues[]</tt>;			  must not be null or empty.  <p><DD><CODE>itemValues</CODE> - the values of the items, listed in the same order as their respective names in <tt>itemNames</tt>;			   each item value can be null, but if it is non-null it must be 			   a valid value for the open type defined in <tt>compositeType</tt> for the corresponding item;			   must be of the same size as <tt>itemNames</tt>; must not be null or empty. <p><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> - <tt>compositeType</tt> is null, or <tt>itemNames[]</tt> or <tt>itemValues[]</tt> is null or empty,					  or one of the elements in <tt>itemNames[]</tt>  is a null or empty string,					  or <tt>itemNames[]</tt> and <tt>itemValues[]</tt> are not of the same size. <p><DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - <tt>itemNames[]</tt> or <tt>itemValues[]</tt>'s size differs from 				   the number of items defined in <tt>compositeType</tt>,				   or one of the elements in <tt>itemNames[]</tt> does not exist as an item name defined in <tt>compositeType</tt>,				   or one of the elements in <tt>itemValues[]</tt> is not a valid value for the corresponding item 				   as defined in <tt>compositeType</tt>. <p></DL><HR><A NAME="CompositeDataSupport(javax.management.openmbean.CompositeType, java.util.Map)"><!-- --></A><H3>CompositeDataSupport</H3><PRE>public <B>CompositeDataSupport</B>(<A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A>&nbsp;compositeType,                            <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;items)                     throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD><p> Constructs a <tt>CompositeDataSupport</tt> instance with the specified <tt>compositeType</tt>, whose item names and corresponding values are given by the mappings in the map <tt>items</tt>. This constructor converts the keys to a string array and the values to an object array and calls <tt>CompositeDataSupport(javax.management.openmbean.CompositeType, java.lang.String[], java.lang.Object[])</tt>. <p><P><DT><B>Parameters:</B><DD><CODE>compositeType</CODE> - the <i>composite type </i> of this <i>composite data</i> instance;			      must not be null. <p><DD><CODE>items</CODE> - the mappings of all the item names to their values;		      <tt>items</tt> must contain all the item names defined in <tt>compositeType</tt>;		      must not be null or empty.  <p><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> - <tt>compositeType</tt> is null, or <tt>items</tt> is null or empty,					  or one of the keys in <tt>items</tt>  is a null or empty string,					  or one of the values in <tt>items</tt>  is null. <p><DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - <tt>items</tt>' size differs from the number of items defined in <tt>compositeType</tt>,				   or one of the keys in <tt>items</tt> does not exist as an item name defined in <tt>compositeType</tt>,				   or one of the values in <tt>items</tt> is not a valid value for the corresponding item 				   as defined in <tt>compositeType</tt>. <p><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ArrayStoreException.html" title="class or interface in java.lang">ArrayStoreException</A></CODE> - one or more keys in <tt>items</tt> is not of the class <tt>java.lang.String</tt>. <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="getCompositeType()"><!-- --></A><H3>getCompositeType</H3><PRE>public <A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A> <B>getCompositeType</B>()</PRE><DL><DD>Returns the <i>composite type </i> of this <i>composite data</i> instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/CompositeData.html#getCompositeType()">getCompositeType</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of this CompositeData.</DL></DD></DL><HR><A NAME="get(java.lang.String)"><!-- --></A><H3>get</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>get</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>&nbsp;key)</PRE><DL><DD>Returns the value of the item whose name is <tt>key</tt>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/CompositeData.html#get(java.lang.String)">get</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the name of the item.<DT><B>Returns:</B><DD>the value associated with this key.<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 <tt>key</tt> is a null or empty String.<DD><CODE><A HREF="../../../javax/management/openmbean/InvalidKeyException.html" title="class in javax.management.openmbean">InvalidKeyException</A></CODE> - if <tt>key</tt> is not an existing item name for this <tt>CompositeData</tt> instance.</DL></DD></DL><HR><A NAME="getAll(java.lang.String[])"><!-- --></A><H3>getAll</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>getAll</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>[]&nbsp;keys)</PRE><DL><DD>Returns an array of the values of the items whose names are specified by <tt>keys</tt>, in the same order as <tt>keys</tt>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/CompositeData.html#getAll(java.lang.String[])">getAll</A></CODE> in interface <CODE><A HREF="../../../javax/management/openmbean/CompositeData.html" title="interface in javax.management.openmbean">CompositeData</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>keys</CODE> - the names of the items.<DT><B>Returns:</B><DD>the values corresponding to the keys.<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 an element in <tt>keys</tt> is a null or empty String.<DD><CODE><A HREF="../../../javax/management/openmbean/InvalidKeyException.html" title="class in javax.management.openmbean">InvalidKeyException</A></CODE> - if an element in <tt>keys</tt> is not an existing item name for this <tt>CompositeData</tt> instance.</DL></DD></DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -