edu.cmu.sei.osate.workspace
Interface IAadlElement

All Known Subinterfaces:
IAadlProject, IAadlWorkspace

public interface IAadlElement

Common protocol for all elements provided by the Aadl model. Aadl model elements are exposed to clients as handles to the actual underlying element. The Aadl model may hand out any number of handles for each element. Handles that refer to the same element are guaranteed to be equal, but not necessarily identical.

Methods annotated as "handle-only" do not require underlying elements to exist. Methods that require underlying elements to exist throw a AadlModelException when an underlying element is missing. AadlModelException.isDoesNotExist can be used to recognize this common special case.

This interface is not intended to be implemented by clients.


Field Summary
static int AADL_PACKAGE
           
static int AADL_PROPERTYSET
           
static int AADL_SPECIFICATION
           
 
Method Summary
 IAadlProject getAadlProject()
          Returns the Aadl project this element is contained in, or null if this element is not contained in any Aadl project This is a handle-only method.
 IAadlElement getParent()
          Returns the element directly containing this element, or null if this element has no parent.
 

Field Detail

AADL_SPECIFICATION

static final int AADL_SPECIFICATION
See Also:
Constant Field Values

AADL_PACKAGE

static final int AADL_PACKAGE
See Also:
Constant Field Values

AADL_PROPERTYSET

static final int AADL_PROPERTYSET
See Also:
Constant Field Values
Method Detail

getAadlProject

IAadlProject getAadlProject()
Returns the Aadl project this element is contained in, or null if this element is not contained in any Aadl project This is a handle-only method.

Returns:
the containing Aadl project, or null if this element is not contained in an Aadl project

getParent

IAadlElement getParent()
Returns the element directly containing this element, or null if this element has no parent. This is a handle-only method.

Returns:
the parent element, or null if this element has no parent