📄 typecode.html
字号:
<BR> Strips out all optional name and member name fields, but leaves all alias typecodes intact.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#id()">id</A></B>()</CODE><BR> Retrieves the RepositoryId globally identifying the type of this <code>TypeCode</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/TCKind.html">TCKind</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#kind()">kind</A></B>()</CODE><BR> Retrieves the kind of this <code>TypeCode</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#length()">length</A></B>()</CODE><BR> Returns the number of elements in the type described by this <code>TypeCode</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#member_count()">member_count</A></B>()</CODE><BR> Retrieves the number of members in the type described by this <code>TypeCode</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/Any.html">Any</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#member_label(int)">member_label</A></B>(int index)</CODE><BR> Retrieves the label of the union member identified by the given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#member_name(int)">member_name</A></B>(int index)</CODE><BR> Retrieves the simple name of the member identified by the given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#member_type(int)">member_type</A></B>(int index)</CODE><BR> Retrieves the <code>TypeCode</code> object describing the type of the member identified by the given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#member_visibility(int)">member_visibility</A></B>(int index)</CODE><BR> Returns the constant that indicates the visibility of the member at the given index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#name()">name</A></B>()</CODE><BR> Retrieves the simple name identifying this <code>TypeCode</code> object within its enclosing scope.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> short</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/TypeCode.html#type_modifier()">type_modifier</A></B>()</CODE><BR> Returns a constant indicating the modifier of the value type that this <code>TypeCode</code> object describes.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TypeCode()"><!-- --></A><H3>TypeCode</H3><PRE>public <B>TypeCode</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="equal(org.omg.CORBA.TypeCode)"><!-- --></A><H3>equal</H3><PRE>public abstract boolean <B>equal</B>(<A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> tc)</PRE><DL><DD>Compares this <code>TypeCode</code> object with the given one, testing for equality. <code>TypeCode</code> objects are equal if they are interchangeable and give identical results when <code>TypeCode</code> operations are applied to them.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tc</CODE> - the <code>TypeCode</code> object to compare against<DT><B>Returns:</B><DD><code>true</code> if the type codes are equal; <code>false</code> otherwise</DL></DD></DL><HR><A NAME="equivalent(org.omg.CORBA.TypeCode)"><!-- --></A><H3>equivalent</H3><PRE>public boolean <B>equivalent</B>(<A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> tc)</PRE><DL><DD>Tests to see if the given <code>TypeCode</code> object is equivalent to this <code>TypeCode</code> object. <P> Not implemented; see package comments.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>tc</CODE> - the typecode to compare with this typecode<DT><B>Returns:</B><DD><code>true</code> if the given typecode is equivalent to this typecode; <code>false</code> otherwise<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="get_compact_typecode()"><!-- --></A><H3>get_compact_typecode</H3><PRE>public <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>get_compact_typecode</B>()</PRE><DL><DD>Strips out all optional name and member name fields, but leaves all alias typecodes intact.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>TypeCode</code> object with optional name and member name fields stripped out, except for alias typecodes, which are left intact<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="kind()"><!-- --></A><H3>kind</H3><PRE>public abstract <A HREF="../../../org/omg/CORBA/TCKind.html">TCKind</A> <B>kind</B>()</PRE><DL><DD>Retrieves the kind of this <code>TypeCode</code> object. The kind of a type code determines which <code>TypeCode</code> methods may legally be invoked on it. <P> The method <code>kind</code> may be invoked on any <code>TypeCode</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>TCKind</code> instance indicating the value of the <code>kind</code> field of this <code>TypeCode</code> object</DL></DD></DL><HR><A NAME="id()"><!-- --></A><H3>id</H3><PRE>public abstract <A HREF="../../../java/lang/String.html">String</A> <B>id</B>() throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Retrieves the RepositoryId globally identifying the type of this <code>TypeCode</code> object. <P> The method <code>id</code> can be invoked on object reference, structure, union, enumeration, alias, exception, valuetype, boxed valuetype, native, and abstract interface type codes. Object reference, exception, valuetype, boxed valuetype, native, and abstract interface <code>TypeCode</code> objects always have a RepositoryId. Structure, union, enumeration, and alias <code>TypeCode</code> objects obtained from the Interface Repository or the method <code>ORB.create_operation_list</code> also always have a RepositoryId. If there is no RepositoryId, the method can return an empty string.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the RepositoryId for this <code>TypeCode</code> object or an empty string if there is no RepositoryID<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="name()"><!-- --></A><H3>name</H3><PRE>public abstract <A HREF="../../../java/lang/String.html">String</A> <B>name</B>() throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Retrieves the simple name identifying this <code>TypeCode</code> object within its enclosing scope. Since names are local to a Repository, the name returned from a <code>TypeCode</code> object may not match the name of the type in any particular Repository, and may even be an empty string. <P> The method <code>name</code> can be invoked on object reference, structure, union, enumeration, alias, exception, valuetype, boxed valuetype, native, and abstract interface <code>TypeCode</code> objects.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name identifying this <code>TypeCode</code> object or an empty string<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="member_count()"><!-- --></A><H3>member_count</H3><PRE>public abstract int <B>member_count</B>() throws <A HREF="../../../org/omg/CORBA/TypeCodePackage/BadKind.html">BadKind</A></PRE><DL><DD>Retrieves the number of members in the type described by this <code>TypeCode</code> object. <P> The method <code>member_count</code> can be invoked on structure, union, and enumeration <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>Returns:</B><DD>the number of members constituting the type described by this <code>TypeCode</code> object<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="member_name(int)"><!-- --></A><H3>member_name</H3><PRE>public abstract <A HREF="../../../java/lang/String.html">String</A> <B>member_name</B>(int 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 simple name of the member identified by the given index. Since names are local to a Repository, the name returned from a <code>TypeCode</code> object may not match the name of the member in any particular Repository, and may even be an empty string. <P> The method <code>member_name</code> can be invoked on structure, union, and enumeration <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 a name is being reqested<DT><B>Returns:</B><DD>simple name of the member identified by the index or an empty string<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -