📄 compositetype.html
字号:
whose name is <var>itemName</var>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeType.html#getType(java.lang.String)">getType</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> itemName)</CODE><BR> Returns the <i>open type</i> of the item whose name is <var>itemName</var>, or <code>null</code> if this <code>CompositeType</code> instance does not define any item whose name is <var>itemName</var>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeType.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns the hash code value for this <code>CompositeType</code> instance. </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/openmbean/CompositeType.html#isValue(java.lang.Object)">isValue</A></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)</CODE><BR> Tests whether <var>obj</var> is a value which could be described by this <code>CompositeType</code> instance. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/openmbean/CompositeType.html#keySet()">keySet</A></B>()</CODE><BR> Returns an unmodifiable Set view of all the item names defined by this <code>CompositeType</code> instance. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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/CompositeType.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this <code>CompositeType</code> instance. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.management.openmbean.OpenType"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.management.openmbean.<A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/management/openmbean/OpenType.html#getClassName()">getClassName</A>, <A HREF="../../../javax/management/openmbean/OpenType.html#getDescription()">getDescription</A>, <A HREF="../../../javax/management/openmbean/OpenType.html#getTypeName()">getTypeName</A>, <A HREF="../../../javax/management/openmbean/OpenType.html#isArray()">isArray</A></CODE></TD></TR></TABLE> <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> <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="CompositeType(java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], javax.management.openmbean.OpenType[])"><!-- --></A><H3>CompositeType</H3><PRE>public <B>CompositeType</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> typeName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> description, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] itemNames, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] itemDescriptions, <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A>[] itemTypes) throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD>Constructs a <code>CompositeType</code> instance, checking for the validity of the given parameters. The validity constraints are described below for each parameter. <p> Note that the contents of the three array parameters <var>itemNames</var>, <var>itemDescriptions</var> and <var>itemTypes</var> are internally copied so that any subsequent modification of these arrays by the caller of this constructor has no impact on the constructed <code>CompositeType</code> instance. <p> The Java class name of composite data values this composite type represents (ie the class name returned by the <A HREF="../../../javax/management/openmbean/OpenType.html#getClassName()"><CODE>getClassName</CODE></A> method) is set to the string value returned by <code>CompositeData.class.getName()</code>. <p><P><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - The name given to the composite type this instance represents; cannot be a null or empty string. <br> <DD><CODE>description</CODE> - The human readable description of the composite type this instance represents; cannot be a null or empty string. <br> <DD><CODE>itemNames</CODE> - The names of the items contained in the composite data values described by this <code>CompositeType</code> instance; cannot be null and should contain at least one element; no element can be a null or empty string. Note that the order in which the item names are given is not important to differentiate a <code>CompositeType</code> instance from another; the item names are internally stored sorted in ascending alphanumeric order. <br> <DD><CODE>itemDescriptions</CODE> - The descriptions, in the same order as <var>itemNames</var>, of the items contained in the composite data values described by this <code>CompositeType</code> instance; should be of the same size as <var>itemNames</var>; no element can be a null or empty string. <br> <DD><CODE>itemTypes</CODE> - The open type instances, in the same order as <var>itemNames</var>, describing the items contained in the composite data values described by this <code>CompositeType</code> instance; should be of the same size as <var>itemNames</var>; no element can be null. <br> <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 <var>typeName</var> or <var>description</var> is a null or empty string, or <var>itemNames</var> or <var>itemDescriptions</var> or <var>itemTypes</var> is null, or any element of <var>itemNames</var> or <var>itemDescriptions</var> is a null or empty string, or any element of <var>itemTypes</var> is null, or <var>itemNames</var> or <var>itemDescriptions</var> or <var>itemTypes</var> are not of the same size. <br> <DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - If <var>itemNames</var> contains duplicate item names (case sensitive, but leading and trailing whitespaces removed).</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="containsKey(java.lang.String)"><!-- --></A><H3>containsKey</H3><PRE>public boolean <B>containsKey</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> itemName)</PRE><DL><DD>Returns <code>true</code> if this <code>CompositeType</code> instance defines an item whose name is <var>itemName</var>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemName</CODE> - the name of the item.<DT><B>Returns:</B><DD>true if an item of this name is present.</DL></DD></DL><HR><A NAME="getDescription(java.lang.String)"><!-- --></A><H3>getDescription</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>getDescription</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> itemName)</PRE><DL><DD>Returns the description of the item whose name is <var>itemName</var>, or <code>null</code> if this <code>CompositeType</code> instance does not define any item whose name is <var>itemName</var>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>itemName</CODE> - the name of the item.<DT><B>Returns:</B><DD>the description.</DL></DD></DL><HR><A NAME="getType(java.lang.String)"><!-- --></A><H3>getType</H3><PRE>public <A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A> <B>getType</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> itemName)</PRE><DL><DD>Returns the <i>open type</i> of the item whose name is <var>itemName</var>, or <code>null</code> if this <code>CompositeType</code> instance does not define any item whose name is <var>itemName</var>.<P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -