org.jboss.iiop.rmi.ir
abstract class: ContainedImpl [javadoc |
source]
java.lang.Object
org.jboss.iiop.rmi.ir.IRObjectImpl
org.jboss.iiop.rmi.ir.ContainedImpl
All Implemented Interfaces:
LocalContained, IRObjectOperations
Direct Known Subclasses:
ValueBoxDefImpl, InterfaceDefImpl, AliasDefImpl, ValueMemberDefImpl, ExceptionDefImpl, ModuleDefImpl, AttributeDefImpl, OperationDefImpl, ConstantDefImpl, TypedefDefImpl, ValueDefImpl
Abstract base class for all contained IR entities.
- author:
< - a href="mailto:osh@sparre.dk">Ole Husgaard
- version:
$ - Revision: 37459 $
| Field Summary |
|---|
| protected String | id | The global repository ID of this object. |
| protected String | name | The name of this object within its container. |
| protected String | version | The version of this object. Defaults to 1.0. |
| protected LocalContainer | defined_in | The container this is defined in.
This may not be the same as the container this is contained in. |
| protected String | absolute_name | The absolute name of this object. |
| Constructor: |
ContainedImpl(String id,
String name,
String version,
LocalContainer defined_in,
DefinitionKind def_kind,
RepositoryImpl repository) {
// Constructors --------------------------------------------------
super(def_kind, repository);
this.id = id;
this.name = name;
this.version = version;
this.defined_in = defined_in;
if (defined_in instanceof LocalContained)
this.absolute_name = ((LocalContained)defined_in).absolute_name() +
"::" + name;
else // must be Repository
this.absolute_name = "::" + name;
}
|
| Method from org.jboss.iiop.rmi.ir.ContainedImpl Summary: |
|---|
|
absolute_name, containing_repository, defined_in, describe, getObjectId, id, id, move, name, name, version, version |
| Method from org.jboss.iiop.rmi.ir.ContainedImpl Detail: |
public String absolute_name() {
logger.trace("ContainedImpl[" + id + "].absolute_name() returning \"" +
absolute_name + "\".");
return absolute_name;
}
|
public Repository containing_repository() {
logger.debug("ContainedImpl[" + id +
"].containing_repository() entered.");
return RepositoryHelper.narrow(repository.getReference());
}
|
public Container defined_in() {
logger.debug("ContainedImpl[" + id + "].defined_in() entered.");
return ContainerHelper.narrow(defined_in.getReference());
}
|
abstract public Description describe()
|
protected byte[] getObjectId() {
try {
return (getRepository().getObjectIdPrefix() + id).getBytes("UTF-8");
} catch (UnsupportedEncodingException ex) {
throw new RuntimeException("UTF-8 encoding not supported.");
}
}
Return the POA object ID of this IR object.
Contained objects use the UTF-8 encoding of their id, prefixed by
"repository_name:". |
public String id() {
logger.trace("ContainedImpl[" + id + "].id() entered.");
return id;
}
|
public void id(String id) {
throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
}
|
public void move(Container new_container,
String new_name,
String new_version) {
throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
}
|
public String name() {
logger.trace("ContainedImpl[" + id + "].name() entered.");
return name;
}
|
public void name(String name) {
throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
}
|
public String version() {
logger.trace("ContainedImpl[" + id + "].version() entered.");
return version;
}
|
public void version(String version) {
throw new BAD_INV_ORDER("Cannot change RMI/IIOP mapping.");
}
|