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

NotificationTypes::Composes Interface Reference

An interface for Contains objects. More...

import "NotificationTypes.idl";

List of all members.

Public Methods

ComposesLinkSet all_Composes_links ()
 Return all the links in the Composes interface. More...

boolean exists (in EventType composition, in Property component)
 Check if a property is defined for an event type. More...

PropertyUList with_composition (in EventType composition)
 Find all the properties for an event type. More...

EventType with_component (in Property component)
 Find the event type with the specified property. More...

void add (in EventType composition, in Property component) raises (Reflective::StructuralError, Reflective::SemanticError)
 Add a property to an event type. More...

void add_before_component (in EventType composition, in Property component, in Property before) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Add a property to an event type at a particular position. More...

void modify_composition (in EventType composition, in Property component, in EventType new_composition) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Move a property from one event type to another. More...

void modify_component (in EventType composition, in Property component, in Property new_component) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Replace a property. More...

void remove (in EventType composition, in Property component) raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 Remove a property from an event type. More...


Detailed Description

An interface for Contains objects.

This is used to manage the properties associated with 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::Composes::add in EventType    composition,
in Property    component
raises (Reflective::StructuralError, Reflective::SemanticError)
 

Add a property to an event type.

m <code>composition</code> - The event type to add a property
to.
m <code>component</code> - The property to add.
@raises StructuralError Raised in the following circumstances:
  • The property was already added.
  • Any super type has this property added.
  • The property has a different type in any imported event type.
@raises SemanticError Not raised by this implementation.

void NotificationTypes::Composes::add_before_component in EventType    composition,
in Property    component,
in Property    before
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Add a property to an event type at a particular position.

m <code>composition</code> - The event type to add a property
to.
m <code>component</code> - The property to add.
m <code>before</code> - The property position.
@raises StructuralError Raised in the following circumstances:
  • The property was already added.
  • Any super type has this property added.
  • The property has a different type in any imported event type.
@raises NotFound The before property is not defined. @raises SemanticError Not raised by this implementation.

ComposesLinkSet NotificationTypes::Composes::all_Composes_links  
 

Return all the links in the Composes interface.

Returns:
An array of ComposesLink objects.

boolean NotificationTypes::Composes::exists in EventType    composition,
in Property    component
 

Check if a property is defined for an event type.

m <code>composition</code> - The event type object.
m <code>component</code> - The property.
Returns:
True if property exists, false otherwise.

void NotificationTypes::Composes::modify_component in EventType    composition,
in Property    component,
in Property    new_component
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Replace a property.

m <code>composition</code> - The event type with the property.
m <code>component</code> - The property to replace.
m <code>new_component</code> - The property replacement.
@raises StructuralError Raised in the following circumstances:
  • The property was already added.
  • Any super type has this property added.
  • The property has a different type in any imported event type.
@raises NotFound The component property is not defined. @raises SemanticError Not raised by this implementation.

void NotificationTypes::Composes::modify_composition in EventType    composition,
in Property    component,
in EventType    new_composition
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Move a property from one event type to another.

m <code>composition</code> - The old event type.
m <code>component</code> - The property to move.
m <code>new_composition</code> - The new event type.
@raises StructuralError Raised in the following circumstances:
  • The current event type has subtypes.
  • The current event type has importers.
  • The property was already added to the new event type.
  • Any super type of the new event type has the property added.
  • The property has a different type in any event type imported by new_composition.
@raises NotFound The component property is not defined within the composition event type. @raises SemanticError Not raised by this implementation.

void NotificationTypes::Composes::remove in EventType    composition,
in Property    component
raises (Reflective::StructuralError, Reflective::NotFound, Reflective::SemanticError)
 

Remove a property from an event type.

m <code>composition</code> - The event type with the property.
m <code>component</code> - The property to remove.
@raises StructuralError Raised in the following circumstances:
  • The event type has subtypes.
  • The event type has importers.
@raises NotFound The component property is not defined. @raises SemanticError Not raised by this implementation.

EventType NotificationTypes::Composes::with_component in Property    component
 

Find the event type with the specified property.

m <code>component</code> - The property to find.
Returns:
The event type with that property or null if not found.

PropertyUList NotificationTypes::Composes::with_composition in EventType    composition
 

Find all the properties for an event type.

m <code>composition</code> - The event type object.
Returns:
All the properties for that event type.