📄 dynunion.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:43:00 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface DynUnion</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DynUnion.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/omg/CORBA/DynStruct.html"><B>PREV CLASS</B></A> <A HREF="../../../org/omg/CORBA/DynValue.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> <A HREF="DynUnion.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.omg.CORBA</FONT><BR>Interface DynUnion</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A>, <A HREF="../../../org/omg/CORBA/Object.html">Object</A></DD></DL><HR><DL><DT>public interface <B>DynUnion</B><DT>extends <A HREF="../../../org/omg/CORBA/Object.html">Object</A>, <A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A></DL><P>The <code>DynUnion</code> interface represents a <code>DynAny</code> object that is associated with an IDL union. Union values can be traversed using the operations defined in <code>DynAny</code>. The first component in the union corresponds to the discriminator; the second corresponds to the actual value of the union. Calling the method <code>next()</code> twice allows you to access both components.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CORBA/TCKind.html">TCKind</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#discriminator_kind()">discriminator_kind</A></B>()</CODE><BR> Returns the TCKind object associated with the discriminator of this union.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#discriminator()">discriminator</A></B>()</CODE><BR> Returns a DynAny object reference that must be narrowed to the type of the discriminator in order to insert/get the discriminator value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CORBA/TCKind.html">TCKind</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#member_kind()">member_kind</A></B>()</CODE><BR> Returns the TCKind associated with the member of this union.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#member_name()">member_name</A></B>()</CODE><BR> Allows for the inspection of the name of this union member without checking the value of the discriminator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#member_name(java.lang.String)">member_name</A></B>(<A HREF="../../../java/lang/String.html">String</A> arg)</CODE><BR> Allows for the assignment of the name of this union member.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#member()">member</A></B>()</CODE><BR> Returns a DynAny object reference that is used in order to insert/get a member of this union.</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="../../../org/omg/CORBA/DynUnion.html#set_as_default()">set_as_default</A></B>()</CODE><BR> Determines whether the discriminator associated with this union has been assigned a valid default value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CORBA/DynUnion.html#set_as_default(boolean)">set_as_default</A></B>(boolean arg)</CODE><BR> Determines whether the discriminator associated with this union gets assigned a valid default value.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.omg.CORBA.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.omg.CORBA.<A HREF="../../../org/omg/CORBA/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/omg/CORBA/Object.html#_create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue)">_create_request</A>, <A HREF="../../../org/omg/CORBA/Object.html#_create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList)">_create_request</A>, <A HREF="../../../org/omg/CORBA/Object.html#_duplicate()">_duplicate</A>, <A HREF="../../../org/omg/CORBA/Object.html#_get_domain_managers()">_get_domain_managers</A>, <A HREF="../../../org/omg/CORBA/Object.html#_get_interface_def()">_get_interface_def</A>, <A HREF="../../../org/omg/CORBA/Object.html#_get_policy(int)">_get_policy</A>, <A HREF="../../../org/omg/CORBA/Object.html#_hash(int)">_hash</A>, <A HREF="../../../org/omg/CORBA/Object.html#_is_a(java.lang.String)">_is_a</A>, <A HREF="../../../org/omg/CORBA/Object.html#_is_equivalent(org.omg.CORBA.Object)">_is_equivalent</A>, <A HREF="../../../org/omg/CORBA/Object.html#_non_existent()">_non_existent</A>, <A HREF="../../../org/omg/CORBA/Object.html#_release()">_release</A>, <A HREF="../../../org/omg/CORBA/Object.html#_request(java.lang.String)">_request</A>, <A HREF="../../../org/omg/CORBA/Object.html#_set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)">_set_policy_override</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.omg.CORBA.DynAny"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.omg.CORBA.<A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/omg/CORBA/DynAny.html#assign(org.omg.CORBA.DynAny)">assign</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#copy()">copy</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#current_component()">current_component</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#destroy()">destroy</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#from_any(org.omg.CORBA.Any)">from_any</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_any()">get_any</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_boolean()">get_boolean</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_char()">get_char</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_double()">get_double</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_float()">get_float</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_long()">get_long</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_longlong()">get_longlong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_octet()">get_octet</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_reference()">get_reference</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_short()">get_short</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_string()">get_string</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_typecode()">get_typecode</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_ulong()">get_ulong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_ulonglong()">get_ulonglong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_ushort()">get_ushort</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_val()">get_val</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_wchar()">get_wchar</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#get_wstring()">get_wstring</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_any(org.omg.CORBA.Any)">insert_any</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_boolean(boolean)">insert_boolean</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_char(char)">insert_char</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_double(double)">insert_double</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_float(float)">insert_float</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_long(int)">insert_long</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_longlong(long)">insert_longlong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_octet(byte)">insert_octet</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_reference(org.omg.CORBA.Object)">insert_reference</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_short(short)">insert_short</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_string(java.lang.String)">insert_string</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_typecode(org.omg.CORBA.TypeCode)">insert_typecode</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_ulong(int)">insert_ulong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_ulonglong(long)">insert_ulonglong</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_ushort(short)">insert_ushort</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_val(java.io.Serializable)">insert_val</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_wchar(char)">insert_wchar</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#insert_wstring(java.lang.String)">insert_wstring</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#next()">next</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#rewind()">rewind</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#seek(int)">seek</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#to_any()">to_any</A>, <A HREF="../../../org/omg/CORBA/DynAny.html#type()">type</A></CODE></TD></TR></TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -