VisiBroker for Java

org.omg.CORBA
Interface RepositoryOperations

All Superinterfaces:
ContainerOperations, IRObjectOperations
All Known Subinterfaces:
Repository

public interface RepositoryOperations
extends ContainerOperations

The Repository provides an interface to the Interface Repository itself, which is used to contain the definitions of objects that are available to clients. The Repository interface provides methods for storing and retrieving definitions. The Repository is the only root object in the Interface Repository containment hierarchy.


Method Summary
 ArrayDef create_array(int length, IDLType element_type)
          This method creates an array definition in the repository with the specified length and element type.
 FixedDef create_fixed(short digits, short scale)
          This method sets the number of digits and the scale for the fixed type.
 SequenceDef create_sequence(int bound, IDLType element_type)
          This method creates an array definition in the repository with the specified number of elements (bound) and element type.
 StringDef create_string(int bound)
          This method creates a string definition in the repository with the specified number of characters (bound).
 WstringDef create_wstring(int bound)
          This method creates a Unicode string definition in the repository with the specified number of characters (bound).
 TypeCode get_canonical_typecode(TypeCode tc)
           
 PrimitiveDef get_primitive(PrimitiveKind kind)
           
 Contained lookup_id(java.lang.String search_id)
          This method searches for an object in the interface repository that matches the specified search_id.
 
Methods inherited from interface org.omg.CORBA.ContainerOperations
contents, create_abstract_interface, create_alias, create_constant, create_enum, create_exception, create_interface, create_local_interface, create_module, create_native, create_struct, create_union, create_value_box, create_value, describe_contents, lookup_name, lookup
 
Methods inherited from interface org.omg.CORBA.IRObjectOperations
def_kind, destroy
 

Method Detail

create_fixed

FixedDef create_fixed(short digits,
                      short scale)
This method sets the number of digits and the scale for the fixed type.

Parameters:
digits - The number of digits for the fixed type.
scale - The scale of the fixed type.

create_array

ArrayDef create_array(int length,
                      IDLType element_type)
This method creates an array definition in the repository with the specified length and element type.

Parameters:
length - The number of elements in the array. This value must be greater than zero.
element_type - The IDL type of the elements contained in the array.
Returns:
A reference to the ArrayDef that is created

create_sequence

SequenceDef create_sequence(int bound,
                            IDLType element_type)
This method creates an array definition in the repository with the specified number of elements (bound) and element type.

Parameters:
bound - The maximum length of the sequence. This value must be zero or greater.
element_type - The IDL type of the elements contained in the sequence.
Returns:
a reference to the SequenceDef that is created.

create_wstring

WstringDef create_wstring(int bound)
This method creates a Unicode string definition in the repository with the specified number of characters (bound).

Returns:
A reference to the WstringDef that is created.

create_string

StringDef create_string(int bound)
This method creates a string definition in the repository with the specified number of characters (bound).

Parameters:
bound - The maximum bounds of the string. This value must be zero or greater.

get_primitive

PrimitiveDef get_primitive(PrimitiveKind kind)
Returns:
PrimitiveDef object for the specified PrimitiveKind.

get_canonical_typecode

TypeCode get_canonical_typecode(TypeCode tc)

lookup_id

Contained lookup_id(java.lang.String search_id)
This method searches for an object in the interface repository that matches the specified search_id. If a match is not found, a null value is returned.


Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online