The Interface Repository.
This class represents the repository itself as
well as the executable server.
Methods from the "write" interface to the IR
are not supported.
configure
public void configure(Configuration myConfiguration)
throws ConfigurationException
contents
public Contained[] contents(DefinitionKind limit_type,
boolean exclude_inherited)
list the contents of the repository
- contents in interface ContainerOperations
limit_type
- limit the description to objects of this typeexclude_inherited
- exclude inherited items from the description
- an array of items contained in this repository
create_alias
public AliasDef create_alias(String id,
String name,
String version,
IDLType original_type)
create_constant
public ConstantDef create_constant(String id,
String name,
String version,
IDLType type,
Any value)
create_enum
public EnumDef create_enum(String id,
String name,
String version,
String[] members)
create_interface
public InterfaceDef create_interface(String id,
String name,
String version,
InterfaceDef base_interfaces,
boolean is_abstract)
not supported
create_module
public ModuleDef create_module(String id,
String name,
String version)
create_native
public NativeDef create_native(String id,
String name,
String version)
not supported
create_struct
public StructDef create_struct(String id,
String name,
String version,
StructMember members)
create_value
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)
not supported
create_value_box
public ValueBoxDef create_value_box(String id,
String name,
String version,
IDLType type)
not supported
describe_contents
public Description[] describe_contents(DefinitionKind limit_type,
boolean exclude_inherited,
int max_returned_objs)
describe the contents of the repository
- 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 items
- an array of descriptions
loadContents
public void loadContents()
lookup
public Contained lookup(String name)
lookup a scoped name in the repository
name
- the name to look for
- a reference to the item with the specified name
or null, if not found
lookup_id
public Contained lookup_id(String search_id)
lookup a repository ID
- a reference to the object or null, if not found
lookup_name
public 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)
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 description
- an array of items with the specified name