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

📄 tabulartype.html

📁 j2ee的API 1.4版本,j2ee的帮助文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="TabularType(java.lang.String, java.lang.String, javax.management.openmbean.CompositeType, java.lang.String[])"><!-- --></A><H3>TabularType</H3><PRE>public <B>TabularType</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;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>&nbsp;description,                   <A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A>&nbsp;rowType,                   <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;indexNames)            throws <A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></PRE><DL><DD>Constructs a <code>TabularType</code> instance, checking for the validity of the given parameters. The validity constraints are described below for each parameter.  <p> The Java class name of tabular data values this tabular 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>TabularData.class.getName()</code>. <p><P><DT><B>Parameters:</B><DD><CODE>typeName</CODE> - The name given to the tabular type this instance represents; cannot be a null or empty string. <br>&nbsp;<DD><CODE>description</CODE> - The human readable description of the tabular type this instance represents; 			    cannot be a null or empty string. <br>&nbsp;<DD><CODE>rowType</CODE> - The type of the row elements of tabular data values described by this tabular type instance;			cannot be null. <br>&nbsp;<DD><CODE>indexNames</CODE> - The names of the items the values of which are used to uniquely index each row element in the 			   tabular data values described by this tabular type instance; 			   cannot be null or empty. Each element should be an item name defined in <var>rowType</var>			   (no null or empty string allowed).			   It is important to note that the <b>order</b> of the item names in <var>indexNames</var>                     is used by the methods <A HREF="../../../javax/management/openmbean/TabularData.html#get(java.lang.Object[])"><CODE><code>get</code></CODE></A> and 			   <A HREF="../../../javax/management/openmbean/TabularData.html#remove(java.lang.Object[])"><CODE><code>remove</code></CODE></A> of class  			   <code>TabularData</code> to match their array of values parameter to items. <br>&nbsp;<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>rowType</var> is null, 					 or <var>indexNames</var> is a null or empty array,					 or an element in <var>indexNames</var> is a null or empty string,					 or <var>typeName</var> or <var>description</var> is a null or empty string. <br>&nbsp;<DD><CODE><A HREF="../../../javax/management/openmbean/OpenDataException.html" title="class in javax.management.openmbean">OpenDataException</A></CODE> - if an element's value of <var>indexNames</var> 				  is not an item name defined in <var>rowType</var>.</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="getRowType()"><!-- --></A><H3>getRowType</H3><PRE>public <A HREF="../../../javax/management/openmbean/CompositeType.html" title="class in javax.management.openmbean">CompositeType</A> <B>getRowType</B>()</PRE><DL><DD>Returns the type of the row elements of tabular data values described by this <code>TabularType</code> instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of each row.</DL></DD></DL><HR><A NAME="getIndexNames()"><!-- --></A><H3>getIndexNames</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getIndexNames</B>()</PRE><DL><DD><p>Returns, in the same order as was given to this instance's constructor, an unmodifiable List of the names of the items the values of which are used to uniquely index each row element of tabular data values described by this <code>TabularType</code> instance.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a List of String representing the names of the index items.</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>&nbsp;obj)</PRE><DL><DD>Tests whether <var>obj</var> is a value which could be described by this <code>TabularType</code> instance. <p> If <var>obj</var> is null or is not an instance of <code>javax.management.openmbean.TabularData</code>, <code>isValue</code> returns <code>false</code>.  If <var>obj</var> is an instance of <code>javax.management.openmbean.TabularData</code>, its tabular type is tested for equality with this tabular type instance, and <code>isValue</code> returns <code>true</code> if and only if <A HREF="../../../javax/management/openmbean/TabularType.html#equals(java.lang.Object)"><CODE><code>equals</code></CODE></A>  returns <code>true</code>. <br>&nbsp;<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenType.html#isValue(java.lang.Object)">isValue</A></CODE> in class <CODE><A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the value whose open type is to be tested for equality with this <code>TabularType</code> instance.<DT><B>Returns:</B><DD><code>true</code> if <var>obj</var> is a value for this tabular type, <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>&nbsp;obj)</PRE><DL><DD>Compares the specified <code>obj</code> parameter with this <code>TabularType</code> instance for equality.  <p> Two <code>TabularType</code> instances are equal if and only if all of the following statements are true: <ul> <li>their type names are equal</li> <li>their row types are equal</li> <li>they use the same index names, in the same order</li> </ul> <br>&nbsp;<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenType.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to be compared for equality with this <code>TabularType</code> instance;		    if <var>obj</var> is <code>null</code>, <code>equals</code> returns <code>false</code>.<DT><B>Returns:</B><DD><code>true</code> if the specified object is equal to this <code>TabularType</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>TabularType</code> instance.  <p> The hash code of a <code>TabularType</code> instance is the sum of the hash codes of all elements of information used in <code>equals</code> comparisons  (ie: name, row type, index names).  This ensures that <code> t1.equals(t2) </code> implies that <code> t1.hashCode()==t2.hashCode() </code>  for any two <code>TabularType</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> As <code>TabularType</code> instances are immutable, the hash code for this instance is calculated once, on the first call to <code>hashCode</code>, and then the same value is returned for subsequent calls.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenType.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the hash code value for this <code>TabularType</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>TabularType</code> instance.  <p> The string representation consists of the name of this class (ie <code>javax.management.openmbean.TabularType</code>),  the type name for this instance, the row type string representation of this instance, and the index names of this instance. <p> As <code>TabularType</code> instances are immutable, the string representation for this instance is calculated once, on the first call to <code>toString</code>, and then the same value is returned for subsequent calls.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/openmbean/OpenType.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../javax/management/openmbean/OpenType.html" title="class in javax.management.openmbean">OpenType</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of this <code>TabularType</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../javax/management/openmbean/TabularDataSupport.html" title="class in javax.management.openmbean"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TabularType.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.management.openmbean.OpenType">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -