org.openorb.ir.impl
Class AttributeDefImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CORBA.AttributeDefPOA
          extended by org.openorb.ir.impl.AttributeDefImpl
All Implemented Interfaces:
org.omg.CORBA.AttributeDefOperations, org.omg.CORBA.ContainedOperations, org.omg.CORBA.IRObjectOperations, org.omg.CORBA.portable.InvokeHandler

public class AttributeDefImpl
extends org.omg.CORBA.AttributeDefPOA

This class is the AttributeDef implementation.

Author:
Olivier Modica

Constructor Summary
AttributeDefImpl(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA parentPOA, AttributeDefHome home)
          Constructor
 
Method Summary
 java.lang.String absolute_name()
          The absolute_name attribute is an absolute ScopedName that identifies a Contained object uniquely within its enclosing Repository.
 org.omg.CORBA.Repository containing_repository()
          The containing_repository attribute identifies the Repository that is eventually reached by recursively following the object's defined_in attribute.
 org.omg.CORBA.DefinitionKind def_kind()
          The def_kind type_name attribute identifies the type of the definition.
 org.omg.CORBA.Container defined_in()
          Contained objects also have a defined_in attribute that identifies the Container within which they are defined.
 org.omg.CORBA.ContainedPackage.Description describe()
          The describe operation returns a structure containing information about the interface.
 void destroy()
          The destroy operation causes the object to cease to exist.
 AttributeDefHome getHome()
          Get the AttributeDef home
 java.lang.String id()
          An object that is contained by another object has an id attribute that identifies it globally.
 void id(java.lang.String value)
          An object that is contained by another object has an id attribute that identifies it globally.
 org.omg.CORBA.AttributeMode mode()
          The mode attribute specifies read only or read/write access for this attribute.
 void mode(org.omg.CORBA.AttributeMode value)
          The mode attribute specifies read only or read/write access for this attribute.
 void move(org.omg.CORBA.Container new_contained, java.lang.String new_name, java.lang.String new_version)
          The move operation atomically removes this object from its current Container, and adds it to the Container specified by new_container must satisfy the following conditions: It must be in the same Repository.
 java.lang.String name()
          An object that is contained by another object has a name attribute that identifies it uniquely within the enclosing Container object.
 void name(java.lang.String value)
          An object that is contained by another object has a name attribute that identifies it uniquely within the enclosing Container object.
 org.omg.CORBA.IDLType type_def()
          The type_def attribute identifies the object defining the type of this attribute.
 void type_def(org.omg.CORBA.IDLType value)
          The type_def attribute identifies the object defining the type of this attribute.
 org.omg.CORBA.TypeCode type()
          The type attribute provides the TypeCode describing the type of this attribute.
 java.lang.String version()
          An object that is contained by another object has a version attribute that distinguishes it from other versioned objects with the same name.
 void version(java.lang.String value)
          An object that is contained by another object has a version attribute that distinguishes it from other versioned objects with the same name.
 
Methods inherited from class org.omg.CORBA.AttributeDefPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDefImpl

public AttributeDefImpl(org.omg.CORBA.ORB orb,
                        org.omg.PortableServer.POA parentPOA,
                        AttributeDefHome home)
Constructor

Method Detail

getHome

public AttributeDefHome getHome()
Get the AttributeDef home


type

public org.omg.CORBA.TypeCode type()
The type attribute provides the TypeCode describing the type of this attribute.


type_def

public org.omg.CORBA.IDLType type_def()
The type_def attribute identifies the object defining the type of this attribute.


type_def

public void type_def(org.omg.CORBA.IDLType value)
The type_def attribute identifies the object defining the type of this attribute.


mode

public org.omg.CORBA.AttributeMode mode()
The mode attribute specifies read only or read/write access for this attribute.


mode

public void mode(org.omg.CORBA.AttributeMode value)
The mode attribute specifies read only or read/write access for this attribute.


def_kind

public org.omg.CORBA.DefinitionKind def_kind()
The def_kind type_name attribute identifies the type of the definition.


destroy

public void destroy()
The destroy operation causes the object to cease to exist. If the object is a Container, destroy is applied to all its contents. If the object contains an IDLType attribute for an anonymous type, that IDLType is destroyed. If the object is currently contained in some other object, it is removed. If destroy is invoked on a Repository or on a PrimitiveDef then the BAD_INV_ORDER exception is raised with minor value 2. Implementations may vary in their handling of references to an object that is being destroyed, but the Repository should not be left in an incoherent state. Attempt to destroy an object that would leave the repository in an incoherent state shall cause BAD_INV_ORDER exception to be raised with the minor code 1.


id

public java.lang.String id()
An object that is contained by another object has an id attribute that identifies it globally.


id

public void id(java.lang.String value)
An object that is contained by another object has an id attribute that identifies it globally.


name

public java.lang.String name()
An object that is contained by another object has a name attribute that identifies it uniquely within the enclosing Container object.


name

public void name(java.lang.String value)
An object that is contained by another object has a name attribute that identifies it uniquely within the enclosing Container object.


version

public java.lang.String version()
An object that is contained by another object has a version attribute that distinguishes it from other versioned objects with the same name.


version

public void version(java.lang.String value)
An object that is contained by another object has a version attribute that distinguishes it from other versioned objects with the same name.


defined_in

public org.omg.CORBA.Container defined_in()
Contained objects also have a defined_in attribute that identifies the Container within which they are defined. Objects can be contained either because they are defined within the containing object (for example, an interface is defined within a module) or because they are inherited by the containing object (for example, an operation may be contained by an interface because the interface inherits the operation from another interface). If an object is contained through inheritance, the defined_in attribute identifies the InterfaceDef or ValueDef from which the object is inherited.


absolute_name

public java.lang.String absolute_name()
The absolute_name attribute is an absolute ScopedName that identifies a Contained object uniquely within its enclosing Repository. If this object?s defined_in attribute references a Repository, the absolute_name is formed by concatenating the string "::" and this object?s name attribute. Otherwise, the absolute_name is formed by concatenating the absolute_name attribute of the object referenced by this object?s defined_in attribute, the string "::", and this object?s name attribute.


containing_repository

public org.omg.CORBA.Repository containing_repository()
The containing_repository attribute identifies the Repository that is eventually reached by recursively following the object's defined_in attribute.


describe

public org.omg.CORBA.ContainedPackage.Description describe()
The describe operation returns a structure containing information about the interface. This operation is overloaded in each sub interface. For example, if the describe operation is invoked on an attribute object, the kind field contains dk_Attribute name field contains "AttributeDescription" and the value field contains an any, which contains the AttributeDescription structure. The kind field in this must contain dk_attribute and not the kind of any IRObject from which the attribute object is derived. For example returning dk_all would be an error.


move

public void move(org.omg.CORBA.Container new_contained,
                 java.lang.String new_name,
                 java.lang.String new_version)
The move operation atomically removes this object from its current Container, and adds it to the Container specified by new_container must satisfy the following conditions: It must be in the same Repository. If it is not, then BAD_PARAM exception is raised with minor code 4. It must be capable of containing this object?s type. If it is not, then BAD_PARAM exception is raised with minor code 4. It must not already contain an object with this object?s name (unless multiple versions are supported by the IR). If this condition is not satisfied, then BAD_PARAM exception is raised with minor code 3.