Previous | Table of Contents | Next |
An AttributeDef represents the information that defines an attribute of an interface, component, home, valuetype, or eventtype.
module CORBA { enum AttributeMode {ATTR_NORMAL, ATTR_READONLY};
interface AttributeDef : Contained {
}; | readonly attribute TypeCode attribute IDLType attribute AttributeMode | type; type_def; mode; | |||
struct AttributeDescription { Identifier name; RepositoryId id; |
RepositoryId defined_in; VersionSpec version; TypeCode type; AttributeMode mode;
}; };
10.5.21.1 Read Interface
The type attribute provides the TypeCode describing the type of this attribute. The type_def attribute identifies the object
defining the type of this attribute.
The mode attribute specifies read only or read/write access for this attribute.
The describe operation for an AttributeDef object returns an AttributeDescription.
10.5.21.2 Write Interface
Setting the type_def attribute also updates the type attribute.
10.5.22 ExtAttributeDef
An ExtAttributeDef represents the information that defines an attribute of an interface, component, home, valuetype, or eventtype
that can potentially have user exceptions associated with it.
module CORBA{ struct ExtAttributeDescription {
Identifier | name; | ||||
RepositoryId | id; | ||||
RepositoryId | defined_in; | ||||
VersionSpec | version; | ||||
TypeCode | type; | ||||
AttributeMode | mode; | ||||
ExcDescriptionSeq | get_exceptions; | ||||
ExcDescriptionSeq | put_exceptions; | ||||
}; |
interface ExtAttributeDef : AttributeDef {
// read/write interfaceattribute ExcDescriptionSeq get_exceptions;attribute ExcDescriptionSeq set_exceptions;
// read interface ExtAttributeDescription describe_attribute(); };
10.5.22.1 Read Interface
The operations inherited from AttributeDef behave exactly the same as in AttributeDef. In particular, the def_kind attribute
that has the value dk_Attribute, exactly as in AttributeDef.
The get_exceptions and set_exceptions attributes specify the list of exception types that can be raised by the attribute.
The describe_attribute operation for an ExtAttributeDef object returns an ExtAttributeDescription. that contains information
about user exceptions in addition to the information that is available through AttributeDescription.
10.5.22.2 Write Interface
Same as for AttributeDef.