|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.jacorb.ir.IRObject
org.jacorb.ir.RepositoryImpl
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.
| Field Summary | |
|---|---|
static char |
fileSeparator
|
static java.lang.String |
pathSeparator
|
| Fields inherited from class org.jacorb.ir.IRObject |
|---|
def_kind, myRef, name, orb |
| Constructor Summary | |
|---|---|
RepositoryImpl(java.lang.String classpath,
java.lang.String outfile,
java.net.URLClassLoader loader)
constructor to launch a repository with the contents of classpath |
|
| Method Summary | |
|---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration myConfiguration)
|
Contained[] |
contents(DefinitionKind limit_type,
boolean exclude_inherited)
list the contents of the repository |
AliasDef |
create_alias(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType original_type)
|
ArrayDef |
create_array(int length,
IDLType element_type)
not supported |
ConstantDef |
create_constant(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType type,
Any value)
|
EnumDef |
create_enum(java.lang.String id,
java.lang.String name,
java.lang.String version,
java.lang.String[] members)
|
ExceptionDef |
create_exception(java.lang.String id,
java.lang.String name,
java.lang.String version,
StructMember[] member)
|
FixedDef |
create_fixed(short digits,
short scale)
not supported |
InterfaceDef |
create_interface(java.lang.String id,
java.lang.String name,
java.lang.String version,
InterfaceDef[] base_interfaces,
boolean is_abstract)
not supported |
ModuleDef |
create_module(java.lang.String id,
java.lang.String name,
java.lang.String version)
|
NativeDef |
create_native(java.lang.String id,
java.lang.String name,
java.lang.String version)
not supported |
SequenceDef |
create_sequence(int bound,
IDLType element_type)
not supported |
StringDef |
create_string(int bound)
not supported |
StructDef |
create_struct(java.lang.String id,
java.lang.String name,
java.lang.String version,
StructMember[] members)
|
UnionDef |
create_union(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType discriminator_type,
UnionMember[] members)
|
ValueBoxDef |
create_value_box(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType type)
not supported |
ValueDef |
create_value(java.lang.String id,
java.lang.String name,
java.lang.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 |
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_id(java.lang.String search_id)
lookup a repository ID |
Contained[] |
lookup_name(java.lang.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(java.lang.String name)
lookup a scoped name in the repository |
| Methods inherited from class org.jacorb.ir.IRObject |
|---|
def_kind, getName, getReference, setReference |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.omg.CORBA.IRObjectOperations |
|---|
def_kind |
| Field Detail |
public static char fileSeparator
public static java.lang.String pathSeparator
| Constructor Detail |
public RepositoryImpl(java.lang.String classpath,
java.lang.String outfile,
java.net.URLClassLoader loader)
throws java.lang.Exception
classpath - a classpath string made up of directories separated by ":"| Method Detail |
public void configure(org.apache.avalon.framework.configuration.Configuration myConfiguration)
throws org.apache.avalon.framework.configuration.ConfigurationException
configure in interface org.apache.avalon.framework.configuration.Configurableorg.apache.avalon.framework.configuration.ConfigurationExceptionpublic Contained lookup_id(java.lang.String search_id)
lookup_id in interface RepositoryOperationspublic 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 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 RepositoryOperationspublic TypeCode get_canonical_typecode(TypeCode tc)
get_canonical_typecode in interface RepositoryOperationspublic Contained lookup(java.lang.String name)
lookup in interface ContainerOperationsname - the name to look for
public Contained[] lookup_name(java.lang.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 description
public 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 description
public 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 items
public void loadContents()
public ModuleDef create_module(java.lang.String id,
java.lang.String name,
java.lang.String version)
create_module in interface ContainerOperations
public ConstantDef create_constant(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType type,
Any value)
create_constant in interface ContainerOperations
public StructDef create_struct(java.lang.String id,
java.lang.String name,
java.lang.String version,
StructMember[] members)
create_struct in interface ContainerOperations
public UnionDef create_union(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType discriminator_type,
UnionMember[] members)
create_union in interface ContainerOperations
public EnumDef create_enum(java.lang.String id,
java.lang.String name,
java.lang.String version,
java.lang.String[] members)
create_enum in interface ContainerOperations
public AliasDef create_alias(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType original_type)
create_alias in interface ContainerOperations
public ExceptionDef create_exception(java.lang.String id,
java.lang.String name,
java.lang.String version,
StructMember[] member)
create_exception in interface ContainerOperations
public InterfaceDef create_interface(java.lang.String id,
java.lang.String name,
java.lang.String version,
InterfaceDef[] base_interfaces,
boolean is_abstract)
create_interface in interface ContainerOperations
public ValueBoxDef create_value_box(java.lang.String id,
java.lang.String name,
java.lang.String version,
IDLType type)
create_value_box in interface ContainerOperations
public ValueDef create_value(java.lang.String id,
java.lang.String name,
java.lang.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(java.lang.String id,
java.lang.String name,
java.lang.String version)
create_native in interface ContainerOperationspublic void destroy()
destroy in interface IRObjectOperationsdestroy in class IRObject
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||