Package com.sun.corba.ee.impl.dynamicany
Class DynAnyImpl
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.dynamicany.DynAnyImpl
- All Implemented Interfaces:
Serializable,Object,IDLEntity,DynAny,DynAnyOperations
- Direct Known Subclasses:
DynAnyBasicImpl,DynAnyConstructedImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]protected Anyprotected intprotected static final intprotected ORBprivate static final longprotected byteprotected static final byteprotected static final byteprotected static final byteprotected static final ORBUtilSystemException -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedDynAnyImpl(ORB orb, Any any, boolean copyValue) protectedDynAnyImpl(ORB orb, TypeCode typeCode) -
Method Summary
Modifier and TypeMethodDescriptionString[]_ids()voidInitializes the value associated with a DynAny object with the value associated with another DynAny object.protected voidabstract DynAnycopy()Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.abstract voiddestroy()Destroys a DynAny object.abstract booleanCompares two DynAny values for equality.protected DynAnyFactoryfactory()voidInitializes the value associated with a DynAny object with the value contained in an any.protected AnygetAny()protected Anyprotected voidsetStatus(byte newStatus) abstract Anyto_any()Creates an any value from a DynAny object.type()Returns the TypeCode associated with this DynAny object.protected voidwriteAny(OutputStream out) 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, _servant_preinvoke, _set_policy_override, validate_connectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omg.DynamicAny.DynAnyOperations
component_count, current_component, get_any, get_boolean, get_char, get_double, get_dyn_any, get_float, get_long, get_longlong, get_octet, get_reference, get_short, get_string, get_typecode, get_ulong, get_ulonglong, get_ushort, get_val, get_wchar, get_wstring, insert_any, insert_boolean, insert_char, insert_double, insert_dyn_any, insert_float, insert_long, insert_longlong, insert_octet, insert_reference, insert_short, insert_string, insert_typecode, insert_ulong, insert_ulonglong, insert_ushort, insert_val, insert_wchar, insert_wstring, next, rewind, seekMethods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
Field Details
-
wrapper
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NO_INDEX
protected static final int NO_INDEX- See Also:
-
STATUS_DESTROYABLE
protected static final byte STATUS_DESTROYABLE- See Also:
-
STATUS_UNDESTROYABLE
protected static final byte STATUS_UNDESTROYABLE- See Also:
-
STATUS_DESTROYED
protected static final byte STATUS_DESTROYED- See Also:
-
orb
-
any
-
status
protected byte status -
index
protected int index -
__ids
-
-
Constructor Details
-
DynAnyImpl
protected DynAnyImpl() -
DynAnyImpl
-
DynAnyImpl
-
-
Method Details
-
factory
-
getAny
-
getAny
-
writeAny
-
setStatus
protected void setStatus(byte newStatus) -
clearData
protected void clearData() -
type
Description copied from interface:DynAnyOperationsReturns the TypeCode associated with this DynAny object. A DynAny object is created with a TypeCode value assigned to it. This TypeCode value determines the type of the value handled through the DynAny object. Note that the TypeCode associated with a DynAny object is initialized at the time the DynAny is created and cannot be changed during lifetime of the DynAny object.- Specified by:
typein interfaceDynAnyOperations- Returns:
- The TypeCode associated with this DynAny object
-
assign
Description copied from interface:DynAnyOperationsInitializes the value associated with a DynAny object with the value associated with another DynAny object. The current position of the target DynAny is set to zero for values that have components and to -1 for values that do not have components.- Specified by:
assignin interfaceDynAnyOperations- Parameters:
dyn_any- DynAny value to assign to this object- Throws:
TypeMismatch- if the type of the passed DynAny is not equivalent to the type of target DynAny
-
from_any
Description copied from interface:DynAnyOperationsInitializes the value associated with a DynAny object with the value contained in an any. The current position of the target DynAny is set to zero for values that have components and to -1 for values that do not have components.- Specified by:
from_anyin interfaceDynAnyOperations- Parameters:
value- the value to set as contained in this object- Throws:
TypeMismatch- if the type of the passed Any is not equivalent to the type of target DynAnyInvalidValue- if the passed Any does not contain a legal value (such as a null string)
-
to_any
Description copied from interface:DynAnyOperationsCreates an any value from a DynAny object. A copy of the TypeCode associated with the DynAny object is assigned to the resulting any. The value associated with the DynAny object is copied into the any.- Specified by:
to_anyin interfaceDynAnyOperations- Returns:
- a new Any object with the same value and TypeCode
-
equal
Description copied from interface:DynAnyOperationsCompares two DynAny values for equality. Two DynAny values are equal if their TypeCodes are equivalent and, recursively, all component DynAnys have equal values. The current position of the two DynAnys being compared has no effect on the result of equal.- Specified by:
equalin interfaceDynAnyOperations- Parameters:
dyn_any- the value to compare to- Returns:
- true of the DynAnys are equal, false otherwise
-
destroy
public abstract void destroy()Description copied from interface:DynAnyOperationsDestroys a DynAny object. This operation frees any resources used to represent the data value associated with a DynAny object. It must be invoked on references obtained from one of the creation operations on the ORB interface or on a reference returned by DynAny.copy() to avoid resource leaks. Invoking destroy on component DynAny objects (for example, on objects returned by the current_component operation) does nothing. Destruction of a DynAny object implies destruction of all DynAny objects obtained from it. That is, references to components of a destroyed DynAny become invalid. Invocations on such references raise OBJECT_NOT_EXIST. It is possible to manipulate a component of a DynAny beyond the life time of the DynAny from which the component was obtained by making a copy of the component with the copy operation before destroying the DynAny from which the component was obtained.- Specified by:
destroyin interfaceDynAnyOperations
-
copy
Description copied from interface:DynAnyOperationsCreates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked. The operation is polymorphic, that is, invoking it on one of the types derived from DynAny, such as DynStruct, creates the derived type but returns its reference as the DynAny base type.- Specified by:
copyin interfaceDynAnyOperations- Returns:
- a deep copy of the DynAny object
-
_ids
-