Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.omg.CORBA.LocalObject
gnu.CORBA.DynAn.AbstractAny
gnu.CORBA.DynAn.gnuDynAny
Field Summary | |
protected Streamable |
|
Fields inherited from class gnu.CORBA.DynAn.AbstractAny | |
factory , final_type , official_type , orb |
Constructor Summary | |
|
Method Summary | |
void | |
int |
|
DynAny | |
DynAny |
|
void |
|
boolean | |
void | |
protected int |
|
Any |
|
boolean | |
char |
|
double | |
DynAny |
|
float | |
int |
|
long | |
byte | |
Object | |
short | |
String | |
TypeCode | |
int | |
long | |
short | |
Serializable |
|
char | |
String | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
void |
|
boolean |
|
Any | |
TypeCode |
|
Methods inherited from class gnu.CORBA.DynAn.AbstractAny | |
createAny , type , valueChanged |
Methods inherited from class org.omg.CORBA.LocalObject | |
_create_request , _create_request , _duplicate , _get_domain_managers , _get_interface , _get_interface_def , _get_policy , _hash , _invoke , _is_a , _is_equivalent , _is_local , _non_existent , _orb , _release , _releaseReply , _request , _request , _servant_postinvoke , _set_policy_override , validate_connection |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public gnuDynAny(Streamable aHolder, TypeCode oType, TypeCode aType, gnuDynAnyFactory aFactory, ORB anOrb)
Create DynAny providing the holder.
- Parameters:
public void assign(DynAny from) throws TypeMismatch
Assign the contents of the givenDynAny
to this DynAny.
- Specified by:
- assign in interface DynAnyOperations
- Parameters:
from
- the source to assign from.
public int component_count()
This final_type has no components.
- Specified by:
- component_count in interface DynAnyOperations
- Returns:
- 0, always.
public DynAny copy()
Create a copy of thisDynAny
via buffer read/write.
- Specified by:
- copy in interface DynAnyOperations
public DynAny current_component() throws TypeMismatch
Always returnsnull
.
- Specified by:
- current_component in interface DynAnyOperations
- Returns:
null
, always.
public void destroy()
Returns without action, leaving all work to the garbage collector.
- Specified by:
- destroy in interface DynAnyOperations
public boolean equal(DynAny other)
Checks for equality. The DynAnys are equal if the stored Anys are equal.
- Specified by:
- equal in interface DynAnyOperations
public void from_any(Any an_any) throws TypeMismatch, InvalidValue
Takes the passed parameter as the enclosedAny
reference.
- Specified by:
- from_any in interface DynAnyOperations
- Parameters:
an_any
- theAny
that will be used as an enclosed reference.
- Throws:
TypeMismatch
- if the final_type of the passed Any is not the same as the final_type, currently stored in this Any.
public Any get_any() throws TypeMismatch
Return the second (enclosed any) that is stored in the wrapped Any.
- Specified by:
- get_any in interface DynAnyOperations
public boolean get_boolean() throws TypeMismatch
- Specified by:
- get_boolean in interface DynAnyOperations
public char get_char() throws TypeMismatch
- Specified by:
- get_char in interface DynAnyOperations
public double get_double() throws TypeMismatch
- Specified by:
- get_double in interface DynAnyOperations
public DynAny get_dyn_any() throws TypeMismatch, InvalidValue
Return DynAny, wrapping the second (enclosed any) that is stored in the wrapped Any.
- Specified by:
- get_dyn_any in interface DynAnyOperations
- Throws:
TypeMismatch
- if the wrapped Any does not store another Any.InvalidValue
- if the current position points nowhere.
public float get_float() throws TypeMismatch
- Specified by:
- get_float in interface DynAnyOperations
public int get_long() throws TypeMismatch
- Specified by:
- get_long in interface DynAnyOperations
public long get_longlong() throws TypeMismatch
- Specified by:
- get_longlong in interface DynAnyOperations
public byte get_octet() throws TypeMismatch
- Specified by:
- get_octet in interface DynAnyOperations
public Object get_reference() throws TypeMismatch
- Specified by:
- get_reference in interface DynAnyOperations
public short get_short() throws TypeMismatch
- Specified by:
- get_short in interface DynAnyOperations
public String get_string() throws TypeMismatch
- Specified by:
- get_string in interface DynAnyOperations
public TypeCode get_typecode() throws TypeMismatch
- Specified by:
- get_typecode in interface DynAnyOperations
public int get_ulong() throws TypeMismatch
- Specified by:
- get_ulong in interface DynAnyOperations
public long get_ulonglong() throws TypeMismatch
- Specified by:
- get_ulonglong in interface DynAnyOperations
public short get_ushort() throws TypeMismatch
- Specified by:
- get_ushort in interface DynAnyOperations
public Serializable get_val() throws TypeMismatch
- Specified by:
- get_val in interface DynAnyOperations
public char get_wchar() throws TypeMismatch
- Specified by:
- get_wchar in interface DynAnyOperations
public String get_wstring() throws TypeMismatch
- Specified by:
- get_wstring in interface DynAnyOperations
public void insert_any(Any a_x) throws TypeMismatch, InvalidValue
- Specified by:
- insert_any in interface DynAnyOperations
public void insert_boolean(boolean a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_boolean in interface DynAnyOperations
public void insert_char(char a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_char in interface DynAnyOperations
public void insert_double(double a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_double in interface DynAnyOperations
public void insert_dyn_any(DynAny d) throws TypeMismatch, InvalidValue
Inserts Any, contained in the parameter, into Any, contained in this DynAny.
- Specified by:
- insert_dyn_any in interface DynAnyOperations
public void insert_float(float a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_float in interface DynAnyOperations
public void insert_long(int a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_long in interface DynAnyOperations
public void insert_longlong(long a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_longlong in interface DynAnyOperations
public void insert_octet(byte a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_octet in interface DynAnyOperations
public void insert_reference(Object a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_reference in interface DynAnyOperations
public void insert_short(short a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_short in interface DynAnyOperations
public void insert_string(String a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_string in interface DynAnyOperations
public void insert_typecode(TypeCode a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_typecode in interface DynAnyOperations
public void insert_ulong(int a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_ulong in interface DynAnyOperations
public void insert_ulonglong(long a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_ulonglong in interface DynAnyOperations
public void insert_ushort(short a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_ushort in interface DynAnyOperations
public void insert_val(Serializable a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_val in interface DynAnyOperations
public void insert_wchar(char a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_wchar in interface DynAnyOperations
public void insert_wstring(String a_x) throws InvalidValue, TypeMismatch
- Specified by:
- insert_wstring in interface DynAnyOperations
public boolean next()
The objects, enclosed inside this class, have only one component (self).
- Specified by:
- next in interface DynAnyOperations
- Returns:
- false, always (no other action).
public void rewind()
Returns without action.
- Specified by:
- rewind in interface DynAnyOperations
public boolean seek(int p)
This objects, stored in this wrapper, never have multiple internal components to seek.
- Specified by:
- seek in interface DynAnyOperations
- Returns:
- false, always (no other action).
public Any to_any()
Returns the enclosedAny
.
- Specified by:
- to_any in interface DynAnyOperations
- Returns:
- the enclosed
Any
.
public TypeCode type()
- Specified by:
- type in interface DynAnyOperations
- Overrides:
- type in interface AbstractAny