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

📄 typecode.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD></DL><HR><A NAME="member_type(int)"><!-- --></A><H3>member_type</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>member_type</B>(int&nbsp;index)                              throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A>,                                     <A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></PRE><DL><DD>Retrieves the <code>TypeCode</code> object describing the type of the member identified by the given index. <P> The method <code>member_type</code> can be invoked on structure and union <code>TypeCode</code> objects. Java IDL extends the CORBA specification to allow this method to operate on exceptions as well.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the member for which type information                is begin requested<DT><B>Returns:</B><DD>the <code>TypeCode</code> object describing the                member at the given index<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></CODE> - if the index is                equal to or greater than			    the number of members constituting the type<DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on an inappropriate kind of <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="member_label(int)"><!-- --></A><H3>member_label</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>member_label</B>(int&nbsp;index)                          throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A>,                                 <A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></PRE><DL><DD>Retrieves the label of the union member identified by the given index. For the default member, the label is the zero octet.<P> The method <code>member_label</code> can only be invoked on union <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the union member for which the                label is being requested<DT><B>Returns:</B><DD>an <code>Any</code> object describing the label of                the requested union member or the zero octet for                the default member<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></CODE> - if the index is                equal to or greater than			    the number of members constituting the union<DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on a non-union <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="discriminator_type()"><!-- --></A><H3>discriminator_type</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>discriminator_type</B>()                                     throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns a <code>TypeCode</code> object describing all non-default member labels. The method <code>discriminator_type</code> can be invoked only on union <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>TypeCode</code> object describing                the non-default member labels<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on a non-union <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="default_index()"><!-- --></A><H3>default_index</H3><PRE>public abstract int <B>default_index</B>()                           throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the index of the default member, or -1 if there is no default member. <P> The method <code>default_index</code> can be invoked only on union <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index of the default member, or -1 if			there is no default member<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on a non-union <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="length()"><!-- --></A><H3>length</H3><PRE>public abstract int <B>length</B>()                    throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the number of elements in the type described by this <code>TypeCode</code> object. For strings and sequences, it returns the bound, with zero indicating an unbounded string or sequence. For arrays, it returns the number of elements in the array. <P> The method <code>length</code> can be invoked on string, sequence, and array <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the bound for strings and sequences, or the			    number of elements for arrays<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on an inappropriate kind of <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="content_type()"><!-- --></A><H3>content_type</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>content_type</B>()                               throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the <code>TypeCode</code> object representing the IDL type for the members of the object described by this <code>TypeCode</code> object. For sequences and arrays, it returns the element type. For aliases, it returns the original type. Note that multidimensional arrays are represented by nesting <code>TypeCode</code> objects, one per dimension. For boxed valuetypes, it returns the boxed type.<P> The method <code>content_type</code> can be invoked on sequence, array, alias, and boxed valuetype <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>TypeCode</code> object representing            the element type for sequences and arrays, the		original type for aliases, or the            boxed type for boxed valuetypes.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if the method           is invoked on an inappropriate kind of <code>TypeCode</code>           object</DL></DD></DL><HR><A NAME="fixed_digits()"><!-- --></A><H3>fixed_digits</H3><PRE>public short <B>fixed_digits</B>()                   throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the number of digits in the fixed type described by this <code>TypeCode</code> object. For example, the typecode for the number 3000.275d could be <code>fixed<7,3></code>, where 7 is the precision and 3 is the scale.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the total number of digits<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if this method           is invoked on an inappropriate kind of <code>TypeCode</code>           object<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><HR><A NAME="fixed_scale()"><!-- --></A><H3>fixed_scale</H3><PRE>public short <B>fixed_scale</B>()                  throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the scale of the fixed type described by this  <code>TypeCode</code> object. A positive number indicates the number of digits to the right of the decimal point.  For example, the number 3000d could have the typecode <code>fixed<4,0></code>, where the first number is the precision and the second number is the scale. A negative number is also possible and adds zeroes to the left of the decimal point.  In this case, <code>fixed<1,-3></code>, could be the typecode for the number 3000d.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the scale of the fixed type that this         <code>TypeCode</code> object describes<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if this method           is invoked on an inappropriate kind of <code>TypeCode</code>           object<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><HR><A NAME="member_visibility(int)"><!-- --></A><H3>member_visibility</H3><PRE>public short <B>member_visibility</B>(int&nbsp;index)                        throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A>,                               <A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></PRE><DL><DD>Returns the constant that indicates the visibility of the member at the given index. This operation can only be invoked on non-boxed value <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - an <code>int</code> indicating the index into the               value<DT><B>Returns:</B><DD>either <code>PRIVATE_MEMBER.value</code> or          <code>PUBLIC_MEMBER.value</code><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if this method           is invoked on a non-value type <code>TypeCode</code>           object<DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/Bounds.html">Bounds</A></CODE> - if the given index is out of bounds<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><HR><A NAME="type_modifier()"><!-- --></A><H3>type_modifier</H3><PRE>public short <B>type_modifier</B>()                    throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns a constant indicating the modifier of the value type that this <code>TypeCode</code> object describes.  The constant returned must be one of the following: <code>VM_NONE.value</code>, <code>VM_ABSTRACT.value</code>, <code>VM_CUSTOM.value</code>, or <code>VM_TRUNCATABLE.value</code>,<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a constant describing the value type         that this <code>TypeCode</code> object describes<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if this method           is invoked on a non-value type <code>TypeCode</code>           object<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><HR><A NAME="concrete_base_type()"><!-- --></A><H3>concrete_base_type</H3><PRE>public <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>concrete_base_type</B>()                            throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Returns the <code>TypeCode</code> object that describes the concrete base type of the value type that this <code>TypeCode</code> object describes. Returns null if it doesn't have a concrete base type.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>TypeCode</code> object that describes the concrete base type of the value type that this <code>TypeCode</code> object describes<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></CODE> - if this method           is invoked on a non-boxed value type <code>TypeCode</code> object<DT><B>See Also: </B><DD><a href="package-summary.html#unimpl"><code>CORBA</code> package      comments for unimplemented features</a></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="class-use/TypeCode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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-files/index-1.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>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/omg/CORBA/TCKind.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/omg/CORBA/TypeCodeHolder.html"><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>  &nbsp;&nbsp;<A HREF="TypeCode.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&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><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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