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.
| Constructor and Description |
|---|
RepositoryImpl(String classpath,
String outfile,
URLClassLoader loader,
ORB orb)
constructor to launch a repository with the contents of classpath
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration myConfiguration) |
Contained[] |
contents(DefinitionKind limit_type,
boolean exclude_inherited)
list the contents of the repository
|
AbstractInterfaceDef |
create_abstract_interface(String id,
String name,
String version,
AbstractInterfaceDef[] baseInterfaces) |
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) |
ExtValueDef |
create_ext_value(String id,
String name,
String version,
boolean isCustom,
boolean isAbstract,
ValueDef baseValue,
boolean isTruncatable,
ValueDef[] abstractBaseValues,
InterfaceDef[] supportedInterfaces,
ExtInitializer[] initializers) |
FixedDef |
create_fixed(short digits,
short scale)
not supported
|
InterfaceDef |
create_interface(String id,
String name,
String version,
InterfaceDef[] base_interfaces)
not supported
|
LocalInterfaceDef |
create_local_interface(String id,
String name,
String version,
InterfaceDef[] baseInterfaces) |
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) |
ValueBoxDef |
create_value_box(String id,
String name,
String version,
IDLType type)
not supported
|
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
|
WstringDef |
create_wstring(int bound)
not supported
|
org.omg.CORBA.ContainerPackage.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) |
static String |
idToScopedName(String id,
boolean patchPrefix)
convert a repository ID to a scoped name
|
void |
loadContents() |
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)
|
Contained |
lookup(String name)
lookup a scoped name in the repository
|
def_kind, getName, getReference, setReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdef_kindpublic void configure(Configuration myConfiguration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic static String idToScopedName(String id, boolean patchPrefix)
id - a string in Repository ID format, e.g. "IDL:myModule/MyInterface:1.0"public Contained lookup_id(String search_id)
lookup_id in interface RepositoryOperationssearch_id - a string in Repository ID format,
e.g. "IDL:myModule/MyInterface:1.0"public PrimitiveDef get_primitive(PrimitiveKind kind)
get_primitive in interface RepositoryOperationspublic StringDef create_string(int bound)
create_string in interface RepositoryOperationspublic WstringDef create_wstring(int bound)
create_wstring in interface RepositoryOperationspublic FixedDef create_fixed(short digits, short scale)
create_fixed in interface RepositoryOperationspublic SequenceDef create_sequence(int bound, IDLType element_type)
create_sequence in interface RepositoryOperationspublic ArrayDef create_array(int length, IDLType element_type)
create_array in interface RepositoryOperationspublic TypeCode get_canonical_typecode(TypeCode tc)
get_canonical_typecode in interface RepositoryOperationspublic Contained lookup(String name)
lookup in interface ContainerOperationsname - the name to look forpublic Contained[] lookup_name(String search_name, int levels_to_search, DefinitionKind limit_type, boolean exclude_inherited)
lookup_name in interface ContainerOperationssearch_name - the name to look forlevels_to_search - if 1, search only this object, if -1, search
all containers contained in this repository, else search
until the specified depth is reachedlimit_type - limit the description to objects of this typeexclude_inherited - exclude inherited items from the descriptionpublic Contained[] contents(DefinitionKind limit_type, boolean exclude_inherited)
contents in interface ContainerOperationslimit_type - limit the description to objects of this typeexclude_inherited - exclude inherited items from the descriptionpublic org.omg.CORBA.ContainerPackage.Description[] describe_contents(DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs)
describe_contents in interface ContainerOperationslimit_type - limit the description to objects of this typeexclude_inherited - exclude inherited items from the descriptionmax_returned_objs - return only so many itemspublic void loadContents()
public ModuleDef create_module(String id, String name, String version)
create_module in interface ContainerOperationspublic ConstantDef create_constant(String id, String name, String version, IDLType type, Any value)
create_constant in interface ContainerOperationspublic StructDef create_struct(String id, String name, String version, StructMember[] members)
create_struct in interface ContainerOperationspublic UnionDef create_union(String id, String name, String version, IDLType discriminator_type, UnionMember[] members)
create_union in interface ContainerOperationspublic EnumDef create_enum(String id, String name, String version, String[] members)
create_enum in interface ContainerOperationspublic AliasDef create_alias(String id, String name, String version, IDLType original_type)
create_alias in interface ContainerOperationspublic ExceptionDef create_exception(String id, String name, String version, StructMember[] member)
create_exception in interface ContainerOperationspublic InterfaceDef create_interface(String id, String name, String version, InterfaceDef[] base_interfaces)
create_interface in interface ContainerOperationspublic ValueBoxDef create_value_box(String id, String name, String version, IDLType type)
create_value_box in interface ContainerOperationspublic 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)
create_value in interface ContainerOperationspublic NativeDef create_native(String id, String name, String version)
create_native in interface ContainerOperationspublic void destroy()
destroy in interface IRObjectOperationsdestroy in class IRObjectpublic AbstractInterfaceDef create_abstract_interface(String id, String name, String version, AbstractInterfaceDef[] baseInterfaces)
create_abstract_interface in interface ContainerOperationspublic ExtValueDef create_ext_value(String id, String name, String version, boolean isCustom, boolean isAbstract, ValueDef baseValue, boolean isTruncatable, ValueDef[] abstractBaseValues, InterfaceDef[] supportedInterfaces, ExtInitializer[] initializers)
create_ext_value in interface ContainerOperationspublic LocalInterfaceDef create_local_interface(String id, String name, String version, InterfaceDef[] baseInterfaces)
create_local_interface in interface ContainerOperationsCopyright © 2017 JacORB. All rights reserved.