org.jacorb.ir
public class RepositoryImpl extends IRObject implements RepositoryOperations, Configurable
This class represents the repository itself as well as the executable server.
Methods from the "write" interface to the IR are not supported.
Version: $Id: RepositoryImpl.java,v 1.12 2006/06/15 16:43:14 alphonse.bendt Exp $
Constructor Summary | |
---|---|
RepositoryImpl(String classpath, String outfile, URLClassLoader loader)
constructor to launch a repository with the contents of classpath
|
Method Summary | |
---|---|
void | configure(Configuration myConfiguration) |
Contained[] | contents(DefinitionKind limit_type, boolean exclude_inherited)
list the contents of the repository |
AliasDef | create_alias(String id, String name, String version, IDLType original_type) |
ArrayDef | create_array(int length, IDLType element_type)
not supported |
ConstantDef | create_constant(String id, String name, String version, IDLType type, Any value) |
EnumDef | create_enum(String id, String name, String version, String[] members) |
ExceptionDef | create_exception(String id, String name, String version, StructMember[] member) |
FixedDef | create_fixed(short digits, short scale)
not supported |
InterfaceDef | create_interface(String id, String name, String version, InterfaceDef[] base_interfaces, boolean is_abstract)
not supported |
ModuleDef | create_module(String id, String name, String version) |
NativeDef | create_native(String id, String name, String version)
not supported |
SequenceDef | create_sequence(int bound, IDLType element_type)
not supported |
StringDef | create_string(int bound)
not supported |
StructDef | create_struct(String id, String name, String version, StructMember[] members) |
UnionDef | create_union(String id, String name, String version, IDLType discriminator_type, UnionMember[] members) |
ValueDef | create_value(String id, String name, String version, boolean is_custom, boolean is_abstract, ValueDef base_value, boolean is_truncatable, ValueDef[] abstract_base_values, InterfaceDef[] supported_interfaces, Initializer[] initializers)
not supported |
ValueBoxDef | create_value_box(String id, String name, String version, IDLType type)
not supported |
WstringDef | create_wstring(int bound)
not supported |
Description[] | describe_contents(DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs)
describe the contents of the repository |
void | destroy() |
TypeCode | get_canonical_typecode(TypeCode tc) |
PrimitiveDef | get_primitive(PrimitiveKind kind) |
void | loadContents() |
Contained | lookup(String name)
lookup a scoped name in the repository
|
Contained | lookup_id(String search_id)
lookup a repository ID |
Contained[] | lookup_name(String search_name, int levels_to_search, DefinitionKind limit_type, boolean exclude_inherited)
lookup a simple name in the repository
(neither scoped nor ID formatted)
|
Parameters: classpath a classpath string made up of directories separated by ":"
Parameters: limit_type limit the description to objects of this type exclude_inherited exclude inherited items from the description
Returns: an array of items contained in this repository
Parameters: limit_type limit the description to objects of this type exclude_inherited exclude inherited items from the description max_returned_objs return only so many items
Returns: an array of descriptions
Parameters: name the name to look for
Returns: a reference to the item with the specified name or null, if not found
Parameters: search_id a string in Repository ID format, e.g. "IDL:myModule/MyInterface:1.0"
Returns: a reference to the object or null, if not found
Parameters: search_name the name to look for levels_to_search if 1, search only this object, if -1, search all containers contained in this repository, else search until the specified depth is reached limit_type limit the description to objects of this type exclude_inherited exclude inherited items from the description
Returns: an array of items with the specified name