10.4.18 AttributeDef

An AttributeDef (shown below) represents the information that defines an attribute of an interface.

module CORBA {
     enum AttributeMode {ATTR_NORMAL, ATTR_READONLY};
     interface AttributeDef : Contained {
         readonly       attribute TypeCode       type;
                        attribute IDLType        type_def;
                        attribute AttributeMode  mode;
    };
    struct AttributeDescription {
         Identifier        name;
         RepositoryId      id;
         RepositoryId      defined_in;
         VersionSpec       version;
         TypeCode          type;
         AttributeMode     mode;
    };
};
type
Provides the TypeCode describing the type of this attribute.
type_def
Identifies the object that defines the type of this attribute.
mode
Specifies read only or read/write access for this attribute.

The describe operation for an AttributeDef object returns an AttributeDescription.