## Uses of Interface
org.omg.DynamicAny.DynAny

- Packages that use DynAny
  Package | Description
  --- | ---
  org.omg.DynamicAny | Provides classes and interfaces that enable traversal of the data value associated with an `any` at runtime, and extraction of the primitive constituents of the data value.

- - ### Uses of DynAny in org.omg.DynamicAny

    Subinterfaces of DynAny in org.omg.DynamicAny
    Modifier and Type | Interface | Description
    --- | --- | ---
    `interface` | `DynArray` DynArray objects support the manipulation of IDL arrays.
    `interface` | `DynEnum` DynEnum objects support the manipulation of IDL enumerated values.
    `interface` | `DynFixed` DynFixed objects support the manipulation of IDL fixed values.
    `interface` | `DynSequence` DynSequence objects support the manipulation of IDL sequences.
    `interface` | `DynStruct` DynStruct objects support the manipulation of IDL struct and exception values.
    `interface` | `DynUnion` DynUnion objects support the manipulation of IDL unions.
    `interface` | `DynValue` DynValue objects support the manipulation of IDL non-boxed value types.
    `interface` | `DynValueBox` DynValueBox objects support the manipulation of IDL boxed value types.
    `interface` | `DynValueCommon` DynValueCommon provides operations supported by both the DynValue and DynValueBox interfaces.

    Classes in org.omg.DynamicAny that implement DynAny
    Modifier and Type | Class | Description
    --- | --- | ---
    `class` | `_DynAnyStub` Any values can be dynamically interpreted (traversed) and constructed through DynAny objects.
    `class` | `_DynArrayStub` DynArray objects support the manipulation of IDL arrays.
    `class` | `_DynEnumStub` DynEnum objects support the manipulation of IDL enumerated values.
    `class` | `_DynFixedStub` DynFixed objects support the manipulation of IDL fixed values.
    `class` | `_DynSequenceStub` DynSequence objects support the manipulation of IDL sequences.
    `class` | `_DynStructStub` DynStruct objects support the manipulation of IDL struct and exception values.
    `class` | `_DynUnionStub` DynUnion objects support the manipulation of IDL unions.
    `class` | `_DynValueStub` DynValue objects support the manipulation of IDL non-boxed value types.

    Fields in org.omg.DynamicAny declared as DynAny
    Modifier and Type | Field | Description
    --- | --- | ---
    `DynAny` | NameDynAnyPair.`value` The DynAny value associated with the name.

    Methods in org.omg.DynamicAny that return DynAny
    Modifier and Type | Method | Description
    --- | --- | ---
    `DynAny` | _DynValueStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynEnumStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynFixedStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynAnyStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynArrayStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynSequenceStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynUnionStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynStructStub.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | DynAnyOperations.`copy()` Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
    `DynAny` | _DynAnyFactoryStub.`create_dyn_any_from_type_code(TypeCode type)` Creates a DynAny from a TypeCode.
    `DynAny` | DynAnyFactoryOperations.`create_dyn_any_from_type_code(TypeCode type)` Creates a DynAny from a TypeCode.
    `DynAny` | _DynAnyFactoryStub.`create_dyn_any(Any value)` Creates a new DynAny object from an any value.
    `DynAny` | DynAnyFactoryOperations.`create_dyn_any(Any value)` Creates a new DynAny object from an any value.
    `DynAny` | _DynValueStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynEnumStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynFixedStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynAnyStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynArrayStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynSequenceStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynUnionStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | _DynStructStub.`current_component()` Returns the DynAny for the component at the current position.
    `DynAny` | DynAnyOperations.`current_component()` Returns the DynAny for the component at the current position.
    `static DynAny` | DynAnyHelper.`extract(Any a)`
    `static DynAny[]` | DynAnySeqHelper.`extract(Any a)`
    `DynAny` | DynValueBoxOperations.`get_boxed_value_as_dyn_any()` Returns the boxed value as a DynAny.
    `DynAny` | _DynUnionStub.`get_discriminator()` Returns the current discriminator value.
    `DynAny` | DynUnionOperations.`get_discriminator()` Returns the current discriminator value.
    `DynAny` | _DynValueStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynEnumStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynFixedStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynAnyStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynArrayStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynSequenceStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynUnionStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | _DynStructStub.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny` | DynAnyOperations.`get_dyn_any()` Extracts the Any value contained in the Any represented by this DynAny and returns it wrapped into a new DynAny.
    `DynAny[]` | _DynArrayStub.`get_elements_as_dyn_any()` Returns the elements of the DynArray as DynAnys.
    `DynAny[]` | _DynSequenceStub.`get_elements_as_dyn_any()` Returns the DynAnys representing the elements of the sequence.
    `DynAny[]` | DynArrayOperations.`get_elements_as_dyn_any()` Returns the elements of the DynArray as DynAnys.
    `DynAny[]` | DynSequenceOperations.`get_elements_as_dyn_any()` Returns the DynAnys representing the elements of the sequence.
    `DynAny` | _DynUnionStub.`member()` Returns the currently active member.
    `DynAny` | DynUnionOperations.`member()` Returns the currently active member.
    `static DynAny` | DynAnyHelper.`narrow(Object obj)`
    `static DynAny` | DynAnyHelper.`read(InputStream istream)`
    `static DynAny[]` | DynAnySeqHelper.`read(InputStream istream)`
    `static DynAny` | DynAnyHelper.`unchecked_narrow(Object obj)`

    Methods in org.omg.DynamicAny with parameters of type DynAny
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | _DynValueStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynEnumStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynFixedStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynAnyStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynArrayStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynSequenceStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynUnionStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | _DynStructStub.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `void` | DynAnyOperations.`assign(DynAny dyn_any)` Initializes the value associated with a DynAny object with the value associated with another DynAny object.
    `boolean` | _DynValueStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynEnumStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynFixedStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynAnyStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynArrayStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynSequenceStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynUnionStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | _DynStructStub.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `boolean` | DynAnyOperations.`equal(DynAny dyn_any)` Compares two DynAny values for equality.
    `void` | _DynValueStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynEnumStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynFixedStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynAnyStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynArrayStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynSequenceStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynUnionStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | _DynStructStub.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `void` | DynAnyOperations.`insert_dyn_any(DynAny value)` Inserts the Any value contained in the parameter DynAny into the Any represented by this DynAny.
    `static void` | DynAnyHelper.`insert(Any a, DynAny that)`
    `static void` | DynAnySeqHelper.`insert(Any a, DynAny[] that)`
    `void` | DynValueBoxOperations.`set_boxed_value_as_dyn_any(DynAny boxed)` Replaces the boxed value with the value contained in the parameter.
    `void` | _DynUnionStub.`set_discriminator(DynAny d)` Sets the discriminator of the DynUnion to the specified value.
    `void` | DynUnionOperations.`set_discriminator(DynAny d)` Sets the discriminator of the DynUnion to the specified value.
    `void` | _DynArrayStub.`set_elements_as_dyn_any(DynAny[] value)` Sets the DynArray to contain the passed elements.
    `void` | _DynSequenceStub.`set_elements_as_dyn_any(DynAny[] value)` Sets the elements of a sequence using DynAnys.
    `void` | DynArrayOperations.`set_elements_as_dyn_any(DynAny[] value)` Sets the DynArray to contain the passed elements.
    `void` | DynSequenceOperations.`set_elements_as_dyn_any(DynAny[] value)` Sets the elements of a sequence using DynAnys.
    `static void` | DynAnyHelper.`write(OutputStream ostream, DynAny value)`
    `static void` | DynAnySeqHelper.`write(OutputStream ostream, DynAny[] value)`

    Constructors in org.omg.DynamicAny with parameters of type DynAny
    Constructor | Description
    --- | ---
    `NameDynAnyPair(String _id, DynAny _value)`

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.