Declaring an element within the body of a namespace denotes that the element is an owned member of the namespace, i.e., there is an owning membership relationship between the namespace and the member element. The visibility of such membership can be specified using the following keywords:

  • public (default) - membership is visible outside the namespace.
  • private - membership is invisible from outside the namespace.
  • protected - membership is invisible outside the namespace, except in inheritance, where it behaves like public.

Visibility must be specified for element import.

Specifying element visibility

Specifying element visibility via the Textual Editor

To specify element visibility via the Textual Editor


  1. In the Textual Editor, place the cursor before the element keyword and specify the needed visibility keyword: public, private, or protected.
  2. Click the Synchronize button.

package 'Vehicle Information' {
    part vehicleSpecs; // public by default
    private part vehicleRecord; // private
}