Package com.sun.corba.ee.impl.dynamicany
Class DynSequenceImpl
- java.lang.Object
-
- org.omg.CORBA.LocalObject
-
- com.sun.corba.ee.impl.dynamicany.DynAnyImpl
-
- com.sun.corba.ee.impl.dynamicany.DynAnyConstructedImpl
-
- com.sun.corba.ee.impl.dynamicany.DynAnyCollectionImpl
-
- com.sun.corba.ee.impl.dynamicany.DynSequenceImpl
-
- All Implemented Interfaces:
java.io.Serializable
,Object
,IDLEntity
,DynAny
,DynAnyOperations
,DynSequence
,DynSequenceOperations
public class DynSequenceImpl extends DynAnyCollectionImpl implements DynSequence
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyCollectionImpl
anys
-
Fields inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyConstructedImpl
components, emptyComponents, isRecursive, RECURSIVE_NO, RECURSIVE_UNDEF, RECURSIVE_YES, REPRESENTATION_ANY, REPRESENTATION_COMPONENTS, REPRESENTATION_NONE, REPRESENTATION_TYPECODE, representations
-
Fields inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyImpl
any, index, NO_INDEX, orb, status, STATUS_DESTROYABLE, STATUS_DESTROYED, STATUS_UNDESTROYABLE, wrapper
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DynSequenceImpl(ORB orb, Any any, boolean copyValue)
protected
DynSequenceImpl(ORB orb, TypeCode typeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkValue(java.lang.Object[] value)
int
get_length()
Returns the current length of the sequence.protected boolean
initializeAnyFromComponents()
protected boolean
initializeComponentsFromAny()
protected boolean
initializeComponentsFromTypeCode()
void
set_length(int len)
Sets the length of the sequence.-
Methods inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyCollectionImpl
createDefaultComponentAt, get_elements, get_elements_as_dyn_any, getBound, getContentType, set_elements, set_elements_as_dyn_any
-
Methods inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyConstructedImpl
assign, checkInitAny, checkInitComponents, clearData, component_count, copy, current_component, destroy, equal, from_any, 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, isRecursive, next, rewind, seek, to_any, writeAny
-
Methods inherited from class com.sun.corba.ee.impl.dynamicany.DynAnyImpl
_ids, factory, getAny, getAny, setStatus, type
-
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_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.DynamicAny.DynAnyOperations
assign, component_count, copy, current_component, destroy, equal, from_any, 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, seek, to_any, type
-
Methods inherited from interface org.omg.DynamicAny.DynSequenceOperations
get_elements, get_elements_as_dyn_any, set_elements, set_elements_as_dyn_any
-
Methods 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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
initializeComponentsFromAny
protected boolean initializeComponentsFromAny()
- Specified by:
initializeComponentsFromAny
in classDynAnyConstructedImpl
-
initializeComponentsFromTypeCode
protected boolean initializeComponentsFromTypeCode()
- Specified by:
initializeComponentsFromTypeCode
in classDynAnyConstructedImpl
-
initializeAnyFromComponents
protected boolean initializeAnyFromComponents()
- Overrides:
initializeAnyFromComponents
in classDynAnyConstructedImpl
-
get_length
public int get_length()
Description copied from interface:DynSequenceOperations
Returns the current length of the sequence.- Specified by:
get_length
in interfaceDynSequenceOperations
- Returns:
- the sequence length
-
set_length
public void set_length(int len) throws InvalidValue
Description copied from interface:DynSequenceOperations
Sets the length of the sequence. Increasing the length of a sequence adds new elements at the tail without affecting the values of already existing elements. Newly added elements are default-initialized. Increasing the length of a sequence sets the current position to the first newly-added element if the previous current position was -1. Otherwise, if the previous current position was not -1, the current position is not affected. Decreasing the length of a sequence removes elements from the tail without affecting the value of those elements that remain. The new current position after decreasing the length of a sequence is determined as follows:- If the length of the sequence is set to zero, the current position is set to -1.
- If the current position is -1 before decreasing the length, it remains at -1.
- If the current position indicates a valid element and that element is not removed when the length is decreased, the current position remains unaffected.
- If the current position indicates a valid element and that element is removed, the current position is set to -1.
- Specified by:
set_length
in interfaceDynSequenceOperations
- Parameters:
len
- the new length of the sequence- Throws:
InvalidValue
- if this is a bounded sequence and len is larger than the bound
-
checkValue
protected void checkValue(java.lang.Object[] value) throws InvalidValue
- Specified by:
checkValue
in classDynAnyCollectionImpl
- Throws:
InvalidValue
-
-