org.jacorb.orb.dynany
Class DynAny
java.lang.Object
org.omg.CORBA.LocalObject
org.jacorb.orb.dynany.DynAny
- All Implemented Interfaces:
- java.io.Serializable, Object, IDLEntity, DynAny, DynAnyOperations
- Direct Known Subclasses:
- DynArray, DynEnum, DynFixed, DynSequence, DynStruct, DynUnion, DynValue
public class DynAny
- extends LocalObject
- implements DynAny
CORBA DynAny
- Version:
- $Id: DynAny.java,v 1.28 2009-05-03 21:35:55 andre.spiegel Exp $
- Author:
- Gerald Brose
- See Also:
- Serialized Form
| Methods inherited from class org.omg.CORBA.LocalObject |
_create_request, _create_request, _duplicate, _get_component, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_component, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
typeCode
protected TypeCode typeCode
pos
protected int pos
limit
protected int limit
dynFactory
protected final DynAnyFactory dynFactory
orb
protected final ORB orb
DynAny
protected DynAny(DynAnyFactory factory,
ORB orb,
org.slf4j.Logger logger)
type
public TypeCode type()
- Specified by:
type in interface DynAnyOperations
assign
public void assign(DynAny dyn_any)
throws TypeMismatch
- Specified by:
assign in interface DynAnyOperations
- Throws:
TypeMismatch
equal
public boolean equal(DynAny dyn_any)
- Specified by:
equal in interface DynAnyOperations
from_any
public void from_any(Any value)
throws InvalidValue,
TypeMismatch
- Specified by:
from_any in interface DynAnyOperations
- Throws:
InvalidValue
TypeMismatch
to_any
public Any to_any()
- Specified by:
to_any in interface DynAnyOperations
destroy
public void destroy()
- Specified by:
destroy in interface DynAnyOperations
copy
public DynAny copy()
- Specified by:
copy in interface DynAnyOperations
getRepresentation
protected Any getRepresentation()
- returns the DynAny's internal any representation,
overwritten in subclasses that represent constructed
types and need to traverse structures.
insert_boolean
public void insert_boolean(boolean value)
throws TypeMismatch
- Specified by:
insert_boolean in interface DynAnyOperations
- Throws:
TypeMismatch
insert_octet
public void insert_octet(byte value)
throws TypeMismatch
- Specified by:
insert_octet in interface DynAnyOperations
- Throws:
TypeMismatch
insert_char
public void insert_char(char value)
throws TypeMismatch
- Specified by:
insert_char in interface DynAnyOperations
- Throws:
TypeMismatch
insert_short
public void insert_short(short value)
throws TypeMismatch
- Specified by:
insert_short in interface DynAnyOperations
- Throws:
TypeMismatch
insert_ushort
public void insert_ushort(short value)
throws TypeMismatch
- Specified by:
insert_ushort in interface DynAnyOperations
- Throws:
TypeMismatch
insert_long
public void insert_long(int value)
throws TypeMismatch
- Specified by:
insert_long in interface DynAnyOperations
- Throws:
TypeMismatch
insert_ulong
public void insert_ulong(int value)
throws TypeMismatch
- Specified by:
insert_ulong in interface DynAnyOperations
- Throws:
TypeMismatch
insert_float
public void insert_float(float value)
throws TypeMismatch
- Specified by:
insert_float in interface DynAnyOperations
- Throws:
TypeMismatch
insert_double
public void insert_double(double value)
throws TypeMismatch
- Specified by:
insert_double in interface DynAnyOperations
- Throws:
TypeMismatch
insert_string
public void insert_string(java.lang.String value)
throws TypeMismatch
- Specified by:
insert_string in interface DynAnyOperations
- Throws:
TypeMismatch
insert_reference
public void insert_reference(Object value)
throws TypeMismatch
- Specified by:
insert_reference in interface DynAnyOperations
- Throws:
TypeMismatch
insert_typecode
public void insert_typecode(TypeCode value)
throws TypeMismatch
- Specified by:
insert_typecode in interface DynAnyOperations
- Throws:
TypeMismatch
insert_longlong
public void insert_longlong(long value)
throws TypeMismatch
- Specified by:
insert_longlong in interface DynAnyOperations
- Throws:
TypeMismatch
insert_ulonglong
public void insert_ulonglong(long value)
throws TypeMismatch
- Specified by:
insert_ulonglong in interface DynAnyOperations
- Throws:
TypeMismatch
insert_wchar
public void insert_wchar(char value)
throws TypeMismatch
- Specified by:
insert_wchar in interface DynAnyOperations
- Throws:
TypeMismatch
insert_wstring
public void insert_wstring(java.lang.String value)
throws TypeMismatch
- Specified by:
insert_wstring in interface DynAnyOperations
- Throws:
TypeMismatch
insert_any
public void insert_any(Any value)
throws TypeMismatch
- Specified by:
insert_any in interface DynAnyOperations
- Throws:
TypeMismatch
insert_dyn_any
public void insert_dyn_any(DynAny value)
throws TypeMismatch
- Specified by:
insert_dyn_any in interface DynAnyOperations
- Throws:
TypeMismatch
get_boolean
public boolean get_boolean()
throws TypeMismatch
- Specified by:
get_boolean in interface DynAnyOperations
- Throws:
TypeMismatch
get_octet
public byte get_octet()
throws TypeMismatch
- Specified by:
get_octet in interface DynAnyOperations
- Throws:
TypeMismatch
get_char
public char get_char()
throws TypeMismatch
- Specified by:
get_char in interface DynAnyOperations
- Throws:
TypeMismatch
get_short
public short get_short()
throws TypeMismatch
- Specified by:
get_short in interface DynAnyOperations
- Throws:
TypeMismatch
get_ushort
public short get_ushort()
throws TypeMismatch
- Specified by:
get_ushort in interface DynAnyOperations
- Throws:
TypeMismatch
get_long
public int get_long()
throws TypeMismatch
- Specified by:
get_long in interface DynAnyOperations
- Throws:
TypeMismatch
get_ulong
public int get_ulong()
throws TypeMismatch
- Specified by:
get_ulong in interface DynAnyOperations
- Throws:
TypeMismatch
get_float
public float get_float()
throws TypeMismatch
- Specified by:
get_float in interface DynAnyOperations
- Throws:
TypeMismatch
get_double
public double get_double()
throws TypeMismatch
- Specified by:
get_double in interface DynAnyOperations
- Throws:
TypeMismatch
get_string
public java.lang.String get_string()
throws TypeMismatch
- Specified by:
get_string in interface DynAnyOperations
- Throws:
TypeMismatch
get_reference
public Object get_reference()
throws TypeMismatch
- Specified by:
get_reference in interface DynAnyOperations
- Throws:
TypeMismatch
get_typecode
public TypeCode get_typecode()
throws TypeMismatch
- Specified by:
get_typecode in interface DynAnyOperations
- Throws:
TypeMismatch
get_longlong
public long get_longlong()
throws TypeMismatch
- Specified by:
get_longlong in interface DynAnyOperations
- Throws:
TypeMismatch
get_ulonglong
public long get_ulonglong()
throws TypeMismatch
- Specified by:
get_ulonglong in interface DynAnyOperations
- Throws:
TypeMismatch
get_wchar
public char get_wchar()
throws TypeMismatch
- Specified by:
get_wchar in interface DynAnyOperations
- Throws:
TypeMismatch
get_wstring
public java.lang.String get_wstring()
throws TypeMismatch
- Specified by:
get_wstring in interface DynAnyOperations
- Throws:
TypeMismatch
get_any
public Any get_any()
throws TypeMismatch
- Specified by:
get_any in interface DynAnyOperations
- Throws:
TypeMismatch
get_dyn_any
public DynAny get_dyn_any()
throws TypeMismatch
- Specified by:
get_dyn_any in interface DynAnyOperations
- Throws:
TypeMismatch
component_count
public int component_count()
- Specified by:
component_count in interface DynAnyOperations
current_component
public DynAny current_component()
throws TypeMismatch
- Specified by:
current_component in interface DynAnyOperations
- Throws:
TypeMismatch
next
public boolean next()
- Specified by:
next in interface DynAnyOperations
seek
public boolean seek(int index)
- Specified by:
seek in interface DynAnyOperations
rewind
public void rewind()
- Specified by:
rewind in interface DynAnyOperations
checkDestroyed
protected void checkDestroyed()
insert_val
public void insert_val(java.io.Serializable value)
get_val
public java.io.Serializable get_val()
unexpectedException
protected final INTERNAL unexpectedException(java.lang.Exception cause)