# org.omg.CORBA.TypeCodePackage

***

**1.** **Getting the TypeCode of a Class**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the class
        TypeCode typeCode = orb.create_class_tc(SomeClass.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**2.** **Getting the TypeCode of an Interface**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the interface
        TypeCode typeCode = orb.create_interface_tc(SomeInterface.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**3.** **Getting the TypeCode of a Value Type**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the value type
        TypeCode typeCode = orb.create_value_tc(SomeValueType.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**4.** **Getting the TypeCode of a Union**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the union
        TypeCode typeCode = orb.create_union_tc(SomeUnion.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**5.** **Getting the TypeCode of an Enum**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the enum
        TypeCode typeCode = orb.create_enum_tc(SomeEnum.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**6.** **Getting the TypeCode of a Struct**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the struct
        TypeCode typeCode = orb.create_struct_tc(SomeStruct.class);

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**7.** **Getting the TypeCode of a Sequence**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the sequence
        TypeCode typeCode = orb.create_sequence_tc(0, orb.get_primitive_tc(TypeCode.TCKind.tk_long));

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**8.** **Getting the TypeCode of an Array**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the array
        TypeCode typeCode = orb.create_array_tc(0, orb.get_primitive_tc(TypeCode.TCKind.tk_long));

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**9.** **Getting the TypeCode of a Map**

```java
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;

public class GetTypeCode {

    public static void main(String[] args) {
        ORB orb = ORB.init(args, null);

        // Get the TypeCode for the map
        TypeCode typeCode = orb.create_mapping_tc(orb.get_primitive_tc(TypeCode.TCKind.tk_long), orb.get_primitive_tc(TypeCode.TCKind.tk_string));

        // Print the TypeCode
        System.out.println(typeCode);
    }
}
```

**10.** **Getting the TypeCode of an Any**

```java
import org.omg

```
