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, setReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
def_kind
public void configure(Configuration myConfiguration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public 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 RepositoryOperations
search_id
- a string in Repository ID format,
e.g. "IDL:myModule/MyInterface:1.0"public PrimitiveDef get_primitive(PrimitiveKind kind)
get_primitive
in interface RepositoryOperations
public StringDef create_string(int bound)
create_string
in interface RepositoryOperations
public WstringDef create_wstring(int bound)
create_wstring
in interface RepositoryOperations
public FixedDef create_fixed(short digits, short scale)
create_fixed
in interface RepositoryOperations
public SequenceDef create_sequence(int bound, IDLType element_type)
create_sequence
in interface RepositoryOperations
public ArrayDef create_array(int length, IDLType element_type)
create_array
in interface RepositoryOperations
public TypeCode get_canonical_typecode(TypeCode tc)
get_canonical_typecode
in interface RepositoryOperations
public Contained lookup(String name)
lookup
in interface ContainerOperations
name
- 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 ContainerOperations
search_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 ContainerOperations
limit_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 ContainerOperations
limit_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 ContainerOperations
public ConstantDef create_constant(String id, String name, String version, IDLType type, Any value)
create_constant
in interface ContainerOperations
public StructDef create_struct(String id, String name, String version, StructMember[] members)
create_struct
in interface ContainerOperations
public UnionDef create_union(String id, String name, String version, IDLType discriminator_type, UnionMember[] members)
create_union
in interface ContainerOperations
public EnumDef create_enum(String id, String name, String version, String[] members)
create_enum
in interface ContainerOperations
public AliasDef create_alias(String id, String name, String version, IDLType original_type)
create_alias
in interface ContainerOperations
public ExceptionDef create_exception(String id, String name, String version, StructMember[] member)
create_exception
in interface ContainerOperations
public InterfaceDef create_interface(String id, String name, String version, InterfaceDef[] base_interfaces)
create_interface
in interface ContainerOperations
public ValueBoxDef create_value_box(String id, String name, String version, IDLType type)
create_value_box
in interface ContainerOperations
public 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 ContainerOperations
public NativeDef create_native(String id, String name, String version)
create_native
in interface ContainerOperations
public void destroy()
destroy
in interface IRObjectOperations
destroy
in class IRObject
public AbstractInterfaceDef create_abstract_interface(String id, String name, String version, AbstractInterfaceDef[] baseInterfaces)
create_abstract_interface
in interface ContainerOperations
public 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 ContainerOperations
public LocalInterfaceDef create_local_interface(String id, String name, String version, InterfaceDef[] baseInterfaces)
create_local_interface
in interface ContainerOperations
Copyright © 2017 JacORB. All rights reserved.