org.openorb.ir.impl

Class Shared

public class Shared extends Object

This class is used to initialize the storage types states.

Author: Olivier Modica

Method Summary
static AliasDefaddAliasDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType original_type)
This method is used to add an AliasDef into a Container
static AttributeDefaddAttributeDef(InterfaceDef interfaceDef, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType type, AttributeMode mode)
This method is used to add an AttributeDef into an Interface
static AttributeDefaddAttributeDef2(ValueDef valueDef, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType type, AttributeMode mode)
This method is used to add an AttributeDef into a Value
static ConstantDefaddConstantDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType type, Any value)
This method is used to add an ConstantDef into a Container
static EnumDefaddEnumDef(Container container, ContainerRef containerRef, POA parentPOA, ORB orb, String id, String name, String version, String[] members)
This method is used to add an EnumDef into a Container
static ExceptionDefaddExceptionDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, StructMember[] members)
This method is used to add an ExceptionDef into a Container
static InterfaceDefaddInterfaceDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, InterfaceDef[] base_interfaces, int interface_type)
This method is used to add an InterfaceDef into a Container
static ModuleDefaddModuleDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version)
This method is used to add an ModuleDef into a Container
static NativeDefaddNativeDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version)
This method is used to add an NativeDef into a Container
static OperationDefaddOperationDef(InterfaceDef interfaceDef, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType result, OperationMode mode, ParameterDescription[] params, ExceptionDef[] exceptions, String[] contexts)
This method is used to add an OperationDef into an Interface
static OperationDefaddOperationDef2(ValueDef valueDef, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType result, OperationMode mode, ParameterDescription[] params, ExceptionDef[] exceptions, String[] contexts)
This method is used to add an OperationDef into a Value
static StructDefaddStructDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, StructMember[] members)
This method is used to add an StructDef into a Container
static UnionDefaddUnionDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType discriminator_type, UnionMember[] members)
This method is used to add an UnionDef into a Container
static ValueBoxDefaddValueBoxDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType original_type_def)
This method is used to add a ValueBoxDef into a Container
static ValueDefaddValueDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, boolean is_custom, boolean is_abstract, ValueDef base_value, boolean is_truncatable, ValueDef[] abstract_base_value, InterfaceDef[] supported_interfaces, Initializer[] initializers)
This method is used to add a ValueDef into a Container
static ValueMemberDefaddValueMemberDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType type_def, short access)
This method is used to add a ValueMemberDef into a Container
static Contained[]contents(Container container, POA parentPOA, DefinitionKind limit_type, boolean exclude_inherited)
This methods returns the contents of a container
static Description[]contentsDescription(Container container, POA parentPOA, DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs)
This methods returns the contents description of a container
static StorageObjectRef[]contentsRef(Container container, DefinitionKind limit_type, boolean exclude_inherited)
This methods returns the contents reference of a container
static DescriptiondescribeAttribute(ORB orb, AttributeDef def)
This method returns a AttributeDef description
static DescriptiondescribeConstant(ORB orb, ConstantDef def)
This method returns a ConstantDef description
static DescriptiondescribeException(ORB orb, ExceptionDef def)
This method returns a ExceptionDef description
static DescriptiondescribeInterface(ORB orb, InterfaceDef def)
This method returns a InterfaceDef description
static DescriptiondescribeModule(ORB orb, ModuleDef def)
This method returns a ModuleDef description
static DescriptiondescribeOperation(ORB orb, OperationDef def)
This method returns a OperationDef description
static DescriptiondescribeTypedef(ORB orb, TypedefDef def)
This method returns a TypedefDef description
static DescriptiondescribeValue(ORB orb, ValueDef def)
This method returns a ValueDef description
static DescriptiondescribeValueMember(ORB orb, ValueMemberDef def)
This method returns a ValueDef description
static ContainedlookupId(String id, POA parentPOA)
This operation looks up an id in the Repository
static ContainedlookupName(String scopedName, Container container, POA parentPOA)
This operation looks up a name within a container The name may be relative to the Container or Repository
static Contained[]lookupNames(String search_name, Container container, int levels_to_search, DefinitionKind limit_type, boolean exclude_inherited, POA parentPOA)
This operation looks up a name within a container The name may be relative to the Container or Repository
static voidmove(ContainerRef old_container, ContainerRef new_container, ContainedRef contained, String new_name, 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 voidmoveContained(Contained contained, POA parentPOA, Container new_container, String new_name, String new_version)
This method is used to move a contained from a container to a new container
static voidremoveContained(Contained contained, String id)
This method is used to remove a contained from a container

Method Detail

addAliasDef

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

addAttributeDef

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

addAttributeDef2

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

addConstantDef

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

addEnumDef

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

addExceptionDef

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

addInterfaceDef

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

addModuleDef

public static ModuleDef addModuleDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version)
This method is used to add an ModuleDef into a Container

addNativeDef

public static NativeDef addNativeDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version)
This method is used to add an NativeDef into a Container

addOperationDef

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

addOperationDef2

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

addStructDef

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

addUnionDef

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

addValueBoxDef

public static ValueBoxDef addValueBoxDef(Container container, ContainerRef containerRef, POA parentPOA, String id, String name, String version, IDLType original_type_def)
This method is used to add a ValueBoxDef into a Container

addValueDef

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

addValueMemberDef

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

contents

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

contentsDescription

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

contentsRef

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

describeAttribute

public static Description describeAttribute(ORB orb, AttributeDef def)
This method returns a AttributeDef description

describeConstant

public static Description describeConstant(ORB orb, ConstantDef def)
This method returns a ConstantDef description

describeException

public static Description describeException(ORB orb, ExceptionDef def)
This method returns a ExceptionDef description

describeInterface

public static Description describeInterface(ORB orb, InterfaceDef def)
This method returns a InterfaceDef description

describeModule

public static Description describeModule(ORB orb, ModuleDef def)
This method returns a ModuleDef description

describeOperation

public static Description describeOperation(ORB orb, OperationDef def)
This method returns a OperationDef description

describeTypedef

public static Description describeTypedef(ORB orb, TypedefDef def)
This method returns a TypedefDef description

describeValue

public static Description describeValue(ORB orb, ValueDef def)
This method returns a ValueDef description

describeValueMember

public static Description describeValueMember(ORB orb, ValueMemberDef def)
This method returns a ValueDef description

lookupId

public static Contained lookupId(String id, POA parentPOA)
This operation looks up an id in the Repository

lookupName

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

lookupNames

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

move

public static void move(ContainerRef old_container, ContainerRef new_container, ContainedRef contained, String new_name, 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.

moveContained

public static void moveContained(Contained contained, POA parentPOA, Container new_container, String new_name, String new_version)
This method is used to move a contained from a container to a new container

removeContained

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