org.objectweb.david.libs.binding.orbs
Class StructTC
java.lang.Object
org.omg.CORBA.TypeCode
org.objectweb.david.libs.binding.orbs.PrimitiveTC
org.objectweb.david.libs.binding.orbs.NamedTC
org.objectweb.david.libs.binding.orbs.EnumTC
org.objectweb.david.libs.binding.orbs.StructTC
- All Implemented Interfaces:
- org.omg.CORBA.portable.IDLEntity, java.io.Serializable
- Direct Known Subclasses:
- UnionTC, ValueTC
- public class StructTC
- extends org.objectweb.david.libs.binding.orbs.EnumTC
TypeCode implementation for structures and exceptions
- See Also:
- Serialized Form
Constructor Summary |
StructTC(org.omg.CORBA.TCKind kind,
java.lang.String id,
java.lang.String name)
Creates a new StructTC with the provided parameters |
Methods inherited from class org.omg.CORBA.TypeCode |
concrete_base_type, member_visibility, type_modifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StructTC
public StructTC(org.omg.CORBA.TCKind kind,
java.lang.String id,
java.lang.String name)
- Creates a new StructTC with the provided parameters
- Parameters:
kind
- the kind of the new TypeCodeid
- the repository ID of the new TypeCodename
- the name of the new TypeCode
init
public void init(org.omg.CORBA.StructMember[] members)
- Initializes the target TypeCode with the provided StructMembers
- Parameters:
members
- structure members
init
public void init(java.lang.String[] member_names,
org.omg.CORBA.TypeCode[] member_types)
- Initializes the target TypeCode with the provided structure members
- Parameters:
member_names
- the structure members namesmember_types
- the structure members types
member_type
public org.omg.CORBA.TypeCode member_type(int index)
throws org.omg.CORBA.TypeCodePackage.Bounds
- Throws:
org.omg.CORBA.TypeCodePackage.Bounds
toString
public java.lang.String toString()
member_count
public int member_count()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
member_name
public java.lang.String member_name(int index)
throws org.omg.CORBA.TypeCodePackage.BadKind,
org.omg.CORBA.TypeCodePackage.Bounds
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
org.omg.CORBA.TypeCodePackage.Bounds
id
public java.lang.String id()
name
public java.lang.String name()
kind
public org.omg.CORBA.TCKind kind()
equal
public final boolean equal(org.omg.CORBA.TypeCode tc)
member_label
public org.omg.CORBA.Any member_label(int index)
throws org.omg.CORBA.TypeCodePackage.BadKind,
org.omg.CORBA.TypeCodePackage.Bounds
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
org.omg.CORBA.TypeCodePackage.Bounds
discriminator_type
public org.omg.CORBA.TypeCode discriminator_type()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
default_index
public int default_index()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
length
public int length()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
content_type
public org.omg.CORBA.TypeCode content_type()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
fixed_digits
public short fixed_digits()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
fixed_scale
public short fixed_scale()
throws org.omg.CORBA.TypeCodePackage.BadKind
- Throws:
org.omg.CORBA.TypeCodePackage.BadKind
equivalent
public boolean equivalent(org.omg.CORBA.TypeCode tc)
get_compact_typecode
public org.omg.CORBA.TypeCode get_compact_typecode()