Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

NotificationTypes::Inherits Interface Reference

An interface for Contains objects. More...

import "NotificationTypes.idl";

List of all members.

Public Methods

InheritsLinkSet all_Inherits_links ()
 Return all the links in the Inherits interface. More...

boolean exists (in EventType sub_type, in EventType super_type)
 Check if sub_type is a subtype of super_type. More...

EventType with_sub_type (in EventType sub_type)
 Find the event type with a given subtype. More...

EventTypeSet with_super_type (in EventType super_type)
 Find all the event types with a given supertype. More...

void add (in EventType sub_type, in EventType super_type) raises (Reflective::StructuralError, Reflective::SemanticError)
 Add a subtype to a supertype. More...

void modify_sub_type (in EventType sub_type, in EventType super_type, in EventType new_sub_type) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Replace one subtype with another. More...

void modify_super_type (in EventType sub_type, in EventType super_type, in EventType new_super_type) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Replace one supertype with another. More...

void remove (in EventType sub_type, in EventType super_type) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Remove a subtype from a supertype. More...


Detailed Description

An interface for Contains objects.

This is used to manage the inheritance of events in the singleton repository. The events can be manages either using the operations of this interface or by means of the generic operations in the RefAssociation interface.


Member Function Documentation

void NotificationTypes::Inherits::add in EventType    sub_type,
in EventType    super_type
raises (Reflective::StructuralError, Reflective::SemanticError)
 

Add a subtype to a supertype.

m <code>sub_type</code> - The subtype to add.
m <code>super_type</code> - The supertype to add to.
@raises StructuralError Raised in the following circumstances:
  • If sub_type is already added to another supertype.
  • If any property in sub_type is defined in the super_type event type.
  • If any property type in sub_type is defined in any type imported in super_type or any super type of super_type.
@raises SemanticError Not raised by this implementation.

InheritsLinkSet NotificationTypes::Inherits::all_Inherits_links  
 

Return all the links in the Inherits interface.

Returns:
An array of InheritsLink objects.

boolean NotificationTypes::Inherits::exists in EventType    sub_type,
in EventType    super_type
 

Check if sub_type is a subtype of super_type.

m <code>sub_type</code> - The subtype to check.
m <code>super_type</code> - The supertype to check.
Returns:
True if subtype, false otherwise.

void NotificationTypes::Inherits::modify_sub_type in EventType    sub_type,
in EventType    super_type,
in EventType    new_sub_type
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Replace one subtype with another.

m <code>sub_type</code> - The existing subtype to add.
m <code>super_type</code> - The supertype.
m <code>new_sub_type</code> - The new subtype to add to
supertype. @raises StructuralError Raised in the following circumstances:
  • If sub_type itself has some subtypes.
  • If new_sub_type is already added to another supertype.
  • If new_sub_type has any properties that are incompatible with those in super_type.
@raises SemanticError Not raised by this implementation.

void NotificationTypes::Inherits::modify_super_type in EventType    sub_type,
in EventType    super_type,
in EventType    new_super_type
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Replace one supertype with another.

m <code>sub_type</code> - The subtype.
m <code>super_type</code> - The existing supertype.
m <code>new_super_type</code> - The new supertype.
@raises StructuralError Raised in the following circumstances:
  • If sub_type itself has some subtypes.
  • If new_sub_type is already added to another supertype.
  • If sub_type has any properties that are incompatible with those in new_super_type.
@raises SemanticError Not raised by this implementation.

void NotificationTypes::Inherits::remove in EventType    sub_type,
in EventType    super_type
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Remove a subtype from a supertype.

m <code>sub_type</code> - The subtype to remove.
m <code>super_type</code> - The supertype to remove from.
@raises StructuralError Not raised by this implementation. @raises NotFound If sub_type is not currently added to supertype. @raises SemanticError Not raised by this implementation.

EventType NotificationTypes::Inherits::with_sub_type in EventType    sub_type
 

Find the event type with a given subtype.

m <code>sub_type</code> - The subtype to look for.
Returns:
The EventType object for that subtype.

EventTypeSet NotificationTypes::Inherits::with_super_type in EventType    super_type
 

Find all the event types with a given supertype.

m <code>sub_type</code> - The supertype to look for.
Returns:
An array of EventType objects.