📄 dynany.html
字号:
get_float</H3><PRE>public float <B>get_float</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>float</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>float</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>float</code></DL></DD></DL><HR><A NAME="get_double()"><!-- --></A><H3>get_double</H3><PRE>public double <B>get_double</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>double</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>double</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>double</code></DL></DD></DL><HR><A NAME="get_string()"><!-- --></A><H3>get_string</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>get_string</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>String</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>String</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>String</code></DL></DD></DL><HR><A NAME="get_reference()"><!-- --></A><H3>get_reference</H3><PRE>public <A HREF="../../../org/omg/CORBA/Object.html">Object</A> <B>get_reference</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>org.omg.CORBA.Other</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>org.omg.CORBA.Other</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for an <code>org.omg.CORBA.Other</code></DL></DD></DL><HR><A NAME="get_typecode()"><!-- --></A><H3>get_typecode</H3><PRE>public <A HREF="../../../org/omg/CORBA/TypeCode.html">TypeCode</A> <B>get_typecode</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>org.omg.CORBA.TypeCode</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>org.omg.CORBA.TypeCode</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>org.omg.CORBA.TypeCode</code></DL></DD></DL><HR><A NAME="get_longlong()"><!-- --></A><H3>get_longlong</H3><PRE>public long <B>get_longlong</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>long</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>long</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>long</code></DL></DD></DL><HR><A NAME="get_ulonglong()"><!-- --></A><H3>get_ulonglong</H3><PRE>public long <B>get_ulonglong</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>long</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>long</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>long</code></DL></DD></DL><HR><A NAME="get_wchar()"><!-- --></A><H3>get_wchar</H3><PRE>public char <B>get_wchar</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>char</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>char</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>char</code></DL></DD></DL><HR><A NAME="get_wstring()"><!-- --></A><H3>get_wstring</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>get_wstring</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>String</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>String</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for a <code>String</code></DL></DD></DL><HR><A NAME="get_any()"><!-- --></A><H3>get_any</H3><PRE>public <A HREF="../../../org/omg/CORBA/Any.html">Any</A> <B>get_any</B>() throws <A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></PRE><DL><DD>Retrieves the <code>org.omg.CORBA.Any</code> contained in this <code>DynAny</code> object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>org.omg.CORBA.Any</code> that is the value for this <code>DynAny</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CORBA/DynAnyPackage/TypeMismatch.html">TypeMismatch</A></CODE> - if the type code of the accessed component in this <code>DynAny</code> object is not equivalent to the type code for an <code>org.omg.CORBA.Any</code></DL></DD></DL><HR><A NAME="current_component()"><!-- --></A><H3>current_component</H3><PRE>public <A HREF="../../../org/omg/CORBA/DynAny.html">DynAny</A> <B>current_component</B>()</PRE><DL><DD>Returns a <code>DynAny</code> object reference that can be used to get/set the value of the component currently accessed. The appropriate <code>insert</code> method can be called on the resulting <code>DynAny</code> object to initialize the component. The appropriate <code>get</code> method can be called on the resulting <code>DynAny</code> object to extract the value of the component.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>DynAny</code> object reference that can be used to retrieve or set the value of the component currently accessed</DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public boolean <B>next</B>()</PRE><DL><DD>Moves to the next component of this <code>DynAny</code> object. This method is used for iterating through the components of a constructed type, effectively moving a pointer from one component to the next. The pointer starts out on the first component when a <code>DynAny</code> object is created.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the pointer points to a component; <code>false</code> if there are no more components or this <code>DynAny</code> is associated with a basic type rather than a constructed type</DL></DD></DL><HR><A NAME="seek(int)"><!-- --></A><H3>seek</H3><PRE>public boolean <B>seek</B>(int index)</PRE><DL><DD>Moves the internal pointer to the given index. Logically, this method sets a new offset for this pointer.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - an <code>int</code> indicating the position to which the pointer should move. The first position is 0.<DT><B>Returns:</B><DD><code>true</code> if the pointer points to a component; <code>false</code> if there is no component at the designated index. If this <code>DynAny</code> object is associated with a basic type, this method returns <code>false</code> for any index other than 0.</DL></DD></DL><HR><A NAME="rewind()"><!-- --></A><H3>rewind</H3><PRE>public void <B>rewind</B>()</PRE><DL><DD>Moves the internal pointer to the first component.<DD><DL></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> </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/DynAny.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/DomainManagerOperations.html"><B>PREV CLASS</B></A> <A HREF="../../../org/omg/CORBA/DynArray.html"><B>NEX
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -