org.openorb.ir.impl
Class Shared

java.lang.Object
  extended by org.openorb.ir.impl.Shared

public class Shared
extends java.lang.Object

This class is used to initialize the storage types states.

Author:
Olivier Modica

Constructor Summary
Shared()
           
 
Method Summary
static org.omg.CORBA.AliasDef addAliasDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType original_type)
          This method is used to add an AliasDef into a Container
static org.omg.CORBA.AttributeDef addAttributeDef(InterfaceDef interfaceDef, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType type, org.omg.CORBA.AttributeMode mode)
          This method is used to add an AttributeDef into an Interface
static org.omg.CORBA.AttributeDef addAttributeDef2(ValueDef valueDef, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType type, org.omg.CORBA.AttributeMode mode)
          This method is used to add an AttributeDef into a Value
static org.omg.CORBA.ConstantDef addConstantDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType type, org.omg.CORBA.Any value)
          This method is used to add an ConstantDef into a Container
static org.omg.CORBA.EnumDef addEnumDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, org.omg.CORBA.ORB orb, java.lang.String id, java.lang.String name, java.lang.String version, java.lang.String[] members)
          This method is used to add an EnumDef into a Container
static org.omg.CORBA.ExceptionDef addExceptionDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.StructMember[] members)
          This method is used to add an ExceptionDef into a Container
static org.omg.CORBA.InterfaceDef addInterfaceDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.InterfaceDef[] base_interfaces, int interface_type)
          This method is used to add an InterfaceDef into a Container
static org.omg.CORBA.ModuleDef addModuleDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version)
          This method is used to add an ModuleDef into a Container
static org.omg.CORBA.NativeDef addNativeDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version)
          This method is used to add an NativeDef into a Container
static org.omg.CORBA.OperationDef addOperationDef(InterfaceDef interfaceDef, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType result, org.omg.CORBA.OperationMode mode, org.omg.CORBA.ParameterDescription[] params, org.omg.CORBA.ExceptionDef[] exceptions, java.lang.String[] contexts)
          This method is used to add an OperationDef into an Interface
static org.omg.CORBA.OperationDef addOperationDef2(ValueDef valueDef, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType result, org.omg.CORBA.OperationMode mode, org.omg.CORBA.ParameterDescription[] params, org.omg.CORBA.ExceptionDef[] exceptions, java.lang.String[] contexts)
          This method is used to add an OperationDef into a Value
static org.omg.CORBA.StructDef addStructDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.StructMember[] members)
          This method is used to add an StructDef into a Container
static org.omg.CORBA.UnionDef addUnionDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType discriminator_type, org.omg.CORBA.UnionMember[] members)
          This method is used to add an UnionDef into a Container
static org.omg.CORBA.ValueBoxDef addValueBoxDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType original_type_def)
          This method is used to add a ValueBoxDef into a Container
static org.omg.CORBA.ValueDef addValueDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, boolean is_custom, boolean is_abstract, org.omg.CORBA.ValueDef base_value, boolean is_truncatable, org.omg.CORBA.ValueDef[] abstract_base_value, org.omg.CORBA.InterfaceDef[] supported_interfaces, org.omg.CORBA.Initializer[] initializers)
          This method is used to add a ValueDef into a Container
static org.omg.CORBA.ValueMemberDef addValueMemberDef(Container container, ContainerRef containerRef, org.omg.PortableServer.POA parentPOA, java.lang.String id, java.lang.String name, java.lang.String version, org.omg.CORBA.IDLType type_def, short access)
          This method is used to add a ValueMemberDef into a Container
static org.omg.CORBA.Contained[] contents(Container container, org.omg.PortableServer.POA parentPOA, org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited)
          This methods returns the contents of a container
static org.omg.CORBA.ContainerPackage.Description[] contentsDescription(Container container, org.omg.PortableServer.POA parentPOA, org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs)
          This methods returns the contents description of a container
static org.omg.CosPersistentState.StorageObjectRef[] contentsRef(Container container, org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited)
          This methods returns the contents reference of a container
static org.omg.CORBA.ContainedPackage.Description describeAttribute(org.omg.CORBA.ORB orb, AttributeDef def)
          This method returns a AttributeDef description
static org.omg.CORBA.ContainedPackage.Description describeConstant(org.omg.CORBA.ORB orb, ConstantDef def)
          This method returns a ConstantDef description
static org.omg.CORBA.ContainedPackage.Description describeException(org.omg.CORBA.ORB orb, ExceptionDef def)
          This method returns a ExceptionDef description
static org.omg.CORBA.ContainedPackage.Description describeInterface(org.omg.CORBA.ORB orb, InterfaceDef def)
          This method returns a InterfaceDef description
static org.omg.CORBA.ContainedPackage.Description describeModule(org.omg.CORBA.ORB orb, ModuleDef def)
          This method returns a ModuleDef description
static org.omg.CORBA.ContainedPackage.Description describeOperation(org.omg.CORBA.ORB orb, OperationDef def)
          This method returns a OperationDef description
static org.omg.CORBA.ContainedPackage.Description describeTypedef(org.omg.CORBA.ORB orb, TypedefDef def)
          This method returns a TypedefDef description
static org.omg.CORBA.ContainedPackage.Description describeValue(org.omg.CORBA.ORB orb, ValueDef def)
          This method returns a ValueDef description
static org.omg.CORBA.ContainedPackage.Description describeValueMember(org.omg.CORBA.ORB orb, ValueMemberDef def)
          This method returns a ValueDef description
static org.omg.CORBA.Contained lookupId(java.lang.String id, org.omg.PortableServer.POA parentPOA)
          This operation looks up an id in the Repository
static org.omg.CORBA.Contained lookupName(java.lang.String scopedName, Container container, org.omg.PortableServer.POA parentPOA)
          This operation looks up a name within a container The name may be relative to the Container or Repository
static org.omg.CORBA.Contained[] lookupNames(java.lang.String search_name, Container container, int levels_to_search, org.omg.CORBA.DefinitionKind limit_type, boolean exclude_inherited, org.omg.PortableServer.POA parentPOA)
          This operation looks up a name within a container The name may be relative to the Container or Repository
static void move(ContainerRef old_container, ContainerRef new_container, ContainedRef contained, java.lang.String new_name, java.lang.String new_version)
          The move operation atomically removes this object from its current Container, and adds it to the Container specified by new_container must satisfy the following conditions: It must be in the same Repository.
static void moveContained(Contained contained, org.omg.PortableServer.POA parentPOA, org.omg.CORBA.Container new_container, java.lang.String new_name, java.lang.String new_version)
          This method is used to move a contained from a container to a new container
static void removeContained(Contained contained, java.lang.String id)
          This method is used to remove a contained from a container
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shared

public Shared()
Method Detail

addModuleDef

public static org.omg.CORBA.ModuleDef addModuleDef(Container container,
                                                   ContainerRef containerRef,
                                                   org.omg.PortableServer.POA parentPOA,
                                                   java.lang.String id,
                                                   java.lang.String name,
                                                   java.lang.String version)
This method is used to add an ModuleDef into a Container


addConstantDef

public static org.omg.CORBA.ConstantDef addConstantDef(Container container,
                                                       ContainerRef containerRef,
                                                       org.omg.PortableServer.POA parentPOA,
                                                       java.lang.String id,
                                                       java.lang.String name,
                                                       java.lang.String version,
                                                       org.omg.CORBA.IDLType type,
                                                       org.omg.CORBA.Any value)
This method is used to add an ConstantDef into a Container


addStructDef

public static org.omg.CORBA.StructDef addStructDef(Container container,
                                                   ContainerRef containerRef,
                                                   org.omg.PortableServer.POA parentPOA,
                                                   java.lang.String id,
                                                   java.lang.String name,
                                                   java.lang.String version,
                                                   org.omg.CORBA.StructMember[] members)
This method is used to add an StructDef into a Container


addUnionDef

public static org.omg.CORBA.UnionDef addUnionDef(Container container,
                                                 ContainerRef containerRef,
                                                 org.omg.PortableServer.POA parentPOA,
                                                 java.lang.String id,
                                                 java.lang.String name,
                                                 java.lang.String version,
                                                 org.omg.CORBA.IDLType discriminator_type,
                                                 org.omg.CORBA.UnionMember[] members)
This method is used to add an UnionDef into a Container


addEnumDef

public static org.omg.CORBA.EnumDef addEnumDef(Container container,
                                               ContainerRef containerRef,
                                               org.omg.PortableServer.POA parentPOA,
                                               org.omg.CORBA.ORB orb,
                                               java.lang.String id,
                                               java.lang.String name,
                                               java.lang.String version,
                                               java.lang.String[] members)
This method is used to add an EnumDef into a Container


addAliasDef

public static org.omg.CORBA.AliasDef addAliasDef(Container container,
                                                 ContainerRef containerRef,
                                                 org.omg.PortableServer.POA parentPOA,
                                                 java.lang.String id,
                                                 java.lang.String name,
                                                 java.lang.String version,
                                                 org.omg.CORBA.IDLType original_type)
This method is used to add an AliasDef into a Container


addInterfaceDef

public static org.omg.CORBA.InterfaceDef addInterfaceDef(Container container,
                                                         ContainerRef containerRef,
                                                         org.omg.PortableServer.POA parentPOA,
                                                         java.lang.String id,
                                                         java.lang.String name,
                                                         java.lang.String version,
                                                         org.omg.CORBA.InterfaceDef[] base_interfaces,
                                                         int interface_type)
This method is used to add an InterfaceDef into a Container


addValueDef

public static org.omg.CORBA.ValueDef addValueDef(Container container,
                                                 ContainerRef containerRef,
                                                 org.omg.PortableServer.POA parentPOA,
                                                 java.lang.String id,
                                                 java.lang.String name,
                                                 java.lang.String version,
                                                 boolean is_custom,
                                                 boolean is_abstract,
                                                 org.omg.CORBA.ValueDef base_value,
                                                 boolean is_truncatable,
                                                 org.omg.CORBA.ValueDef[] abstract_base_value,
                                                 org.omg.CORBA.InterfaceDef[] supported_interfaces,
                                                 org.omg.CORBA.Initializer[] initializers)
This method is used to add a ValueDef into a Container


addValueBoxDef

public static org.omg.CORBA.ValueBoxDef addValueBoxDef(Container container,
                                                       ContainerRef containerRef,
                                                       org.omg.PortableServer.POA parentPOA,
                                                       java.lang.String id,
                                                       java.lang.String name,
                                                       java.lang.String version,
                                                       org.omg.CORBA.IDLType original_type_def)
This method is used to add a ValueBoxDef into a Container


addValueMemberDef

public static org.omg.CORBA.ValueMemberDef addValueMemberDef(Container container,
                                                             ContainerRef containerRef,
                                                             org.omg.PortableServer.POA parentPOA,
                                                             java.lang.String id,
                                                             java.lang.String name,
                                                             java.lang.String version,
                                                             org.omg.CORBA.IDLType type_def,
                                                             short access)
This method is used to add a ValueMemberDef into a Container


addExceptionDef

public static org.omg.CORBA.ExceptionDef addExceptionDef(Container container,
                                                         ContainerRef containerRef,
                                                         org.omg.PortableServer.POA parentPOA,
                                                         java.lang.String id,
                                                         java.lang.String name,
                                                         java.lang.String version,
                                                         org.omg.CORBA.StructMember[] members)
This method is used to add an ExceptionDef into a Container


addNativeDef

public static org.omg.CORBA.NativeDef addNativeDef(Container container,
                                                   ContainerRef containerRef,
                                                   org.omg.PortableServer.POA parentPOA,
                                                   java.lang.String id,
                                                   java.lang.String name,
                                                   java.lang.String version)
This method is used to add an NativeDef into a Container


removeContained

public static void removeContained(Contained contained,
                                   java.lang.String id)
This method is used to remove a contained from a container


moveContained

public static void moveContained(Contained contained,
                                 org.omg.PortableServer.POA parentPOA,
                                 org.omg.CORBA.Container new_container,
                                 java.lang.String new_name,
                                 java.lang.String new_version)
This method is used to move a contained from a container to a new container


contents

public static org.omg.CORBA.Contained[] contents(Container container,
                                                 org.omg.PortableServer.POA parentPOA,
                                                 org.omg.CORBA.DefinitionKind limit_type,
                                                 boolean exclude_inherited)
This methods returns the contents of a container


contentsRef

public static org.omg.CosPersistentState.StorageObjectRef[] contentsRef(Container container,
                                                                        org.omg.CORBA.DefinitionKind limit_type,
                                                                        boolean exclude_inherited)
This methods returns the contents reference of a container


contentsDescription

public static org.omg.CORBA.ContainerPackage.Description[] contentsDescription(Container container,
                                                                               org.omg.PortableServer.POA parentPOA,
                                                                               org.omg.CORBA.DefinitionKind limit_type,
                                                                               boolean exclude_inherited,
                                                                               int max_returned_objs)
This methods returns the contents description of a container


describeModule

public static org.omg.CORBA.ContainedPackage.Description describeModule(org.omg.CORBA.ORB orb,
                                                                        ModuleDef def)
This method returns a ModuleDef description


describeConstant

public static org.omg.CORBA.ContainedPackage.Description describeConstant(org.omg.CORBA.ORB orb,
                                                                          ConstantDef def)
This method returns a ConstantDef description


describeTypedef

public static org.omg.CORBA.ContainedPackage.Description describeTypedef(org.omg.CORBA.ORB orb,
                                                                         TypedefDef def)
This method returns a TypedefDef description


describeInterface

public static org.omg.CORBA.ContainedPackage.Description describeInterface(org.omg.CORBA.ORB orb,
                                                                           InterfaceDef def)
This method returns a InterfaceDef description


describeValue

public static org.omg.CORBA.ContainedPackage.Description describeValue(org.omg.CORBA.ORB orb,
                                                                       ValueDef def)
This method returns a ValueDef description


describeValueMember

public static org.omg.CORBA.ContainedPackage.Description describeValueMember(org.omg.CORBA.ORB orb,
                                                                             ValueMemberDef def)
This method returns a ValueDef description


describeException

public static org.omg.CORBA.ContainedPackage.Description describeException(org.omg.CORBA.ORB orb,
                                                                           ExceptionDef def)
This method returns a ExceptionDef description


describeOperation

public static org.omg.CORBA.ContainedPackage.Description describeOperation(org.omg.CORBA.ORB orb,
                                                                           OperationDef def)
This method returns a OperationDef description


describeAttribute

public static org.omg.CORBA.ContainedPackage.Description describeAttribute(org.omg.CORBA.ORB orb,
                                                                           AttributeDef def)
This method returns a AttributeDef description


move

public static void move(ContainerRef old_container,
                        ContainerRef new_container,
                        ContainedRef contained,
                        java.lang.String new_name,
                        java.lang.String new_version)
The move operation atomically removes this object from its current Container, and adds it to the Container specified by new_container must satisfy the following conditions: It must be in the same Repository. If it is not, then BAD_PARAM exception is raised with minor code 4. It must be capable of containing this objects type. If it is not, then BAD_PARAM exception is raised with minor code 4. It must not already contain an object with this object?s name (unless multiple versions are supported by the IR). If this condition is not satisfied, then BAD_PARAM exception is raised with minor code 3.


addAttributeDef

public static org.omg.CORBA.AttributeDef addAttributeDef(InterfaceDef interfaceDef,
                                                         ContainerRef containerRef,
                                                         org.omg.PortableServer.POA parentPOA,
                                                         java.lang.String id,
                                                         java.lang.String name,
                                                         java.lang.String version,
                                                         org.omg.CORBA.IDLType type,
                                                         org.omg.CORBA.AttributeMode mode)
This method is used to add an AttributeDef into an Interface


addOperationDef

public static org.omg.CORBA.OperationDef addOperationDef(InterfaceDef interfaceDef,
                                                         ContainerRef containerRef,
                                                         org.omg.PortableServer.POA parentPOA,
                                                         java.lang.String id,
                                                         java.lang.String name,
                                                         java.lang.String version,
                                                         org.omg.CORBA.IDLType result,
                                                         org.omg.CORBA.OperationMode mode,
                                                         org.omg.CORBA.ParameterDescription[] params,
                                                         org.omg.CORBA.ExceptionDef[] exceptions,
                                                         java.lang.String[] contexts)
This method is used to add an OperationDef into an Interface


addAttributeDef2

public static org.omg.CORBA.AttributeDef addAttributeDef2(ValueDef valueDef,
                                                          ContainerRef containerRef,
                                                          org.omg.PortableServer.POA parentPOA,
                                                          java.lang.String id,
                                                          java.lang.String name,
                                                          java.lang.String version,
                                                          org.omg.CORBA.IDLType type,
                                                          org.omg.CORBA.AttributeMode mode)
This method is used to add an AttributeDef into a Value


addOperationDef2

public static org.omg.CORBA.OperationDef addOperationDef2(ValueDef valueDef,
                                                          ContainerRef containerRef,
                                                          org.omg.PortableServer.POA parentPOA,
                                                          java.lang.String id,
                                                          java.lang.String name,
                                                          java.lang.String version,
                                                          org.omg.CORBA.IDLType result,
                                                          org.omg.CORBA.OperationMode mode,
                                                          org.omg.CORBA.ParameterDescription[] params,
                                                          org.omg.CORBA.ExceptionDef[] exceptions,
                                                          java.lang.String[] contexts)
This method is used to add an OperationDef into a Value


lookupId

public static org.omg.CORBA.Contained lookupId(java.lang.String id,
                                               org.omg.PortableServer.POA parentPOA)
This operation looks up an id in the Repository


lookupNames

public static org.omg.CORBA.Contained[] lookupNames(java.lang.String search_name,
                                                    Container container,
                                                    int levels_to_search,
                                                    org.omg.CORBA.DefinitionKind limit_type,
                                                    boolean exclude_inherited,
                                                    org.omg.PortableServer.POA parentPOA)
This operation looks up a name within a container The name may be relative to the Container or Repository


lookupName

public static org.omg.CORBA.Contained lookupName(java.lang.String scopedName,
                                                 Container container,
                                                 org.omg.PortableServer.POA parentPOA)
This operation looks up a name within a container The name may be relative to the Container or Repository