This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
org.omg.DynamicAny
interface DynSequenceOperations
- All Superinterfaces:
- DynAnyOperations
public interface DynSequenceOperations
extends DynAnyOperations
DynSequence objects support the manipulation of IDL sequences.
Method Summary |
Any[] |
Returns the elements of the sequence.
|
DynAny[] |
Returns the DynAnys representing the elements of the sequence.
|
int |
Returns the current length of the sequence.
|
void |
Sets the elements of a sequence.
|
void |
Sets the elements of a sequence using DynAnys.
|
void |
Sets the length of the sequence.
|
Methods inherited from class 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 |
get_elements
public Any[] get_elements()
-
Returns the elements of the sequence.
get_elements_as_dyn_any
public DynAny[] get_elements_as_dyn_any()
-
Returns the DynAnys representing the elements of the sequence.
get_length
public int get_length()
-
Returns the current length of the sequence.
set_elements
public void set_elements(Any[] value)
throws TypeMismatch,
InvalidValue
-
Sets the elements of a sequence.
The length of the DynSequence is set to the length of value. The current position is set to zero
if value has non-zero length and to -1 if value is a zero-length sequence.
- Parameters:
value
- Throws:
TypeMismatch
InvalidValue
set_elements_as_dyn_any
public void set_elements_as_dyn_any(DynAny[] value)
throws TypeMismatch,
InvalidValue
-
Sets the elements of a sequence using DynAnys.
The length of the DynSequence is set to the length of value. The current position is set to zero
if value has non-zero length and to -1 if value is a zero-length sequence.
- Parameters:
value
- Throws:
TypeMismatch
InvalidValue
set_length
public void set_length(int len)
throws InvalidValue
-
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.
- Parameters:
len
- Throws:
InvalidValue
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.