Table of Contents

Interface IPackageImport

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

The public interface for PackageImport

[DefaultImplementationType(typeof(PackageImport))]
[XmlDefaultImplementationType(typeof(PackageImport))]
[ModelRepresentationClass("http://www.omg.org/spec/MOF/20131001/cmof.xmi#//PackageImport")]
public interface IPackageImport : IDirectedRelationship, IRelationship, IElement, IObject, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

ImportedPackage

Specifies the Package whose members are imported into a Namespace.

[XmlElementName("importedPackage")]
[XmlAttribute(true)]
IPackage ImportedPackage { get; set; }

Property Value

IPackage

ImportingNamespace

Specifies the Namespace that imports the members from a Package.

[Browsable(false)]
[XmlElementName("importingNamespace")]
[XmlAttribute(true)]
[XmlOpposite("packageImport")]
INamespace ImportingNamespace { get; set; }

Property Value

INamespace

Visibility

Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not.

[XmlElementName("visibility")]
[XmlAttribute(true)]
VisibilityKind Visibility { get; set; }

Property Value

VisibilityKind

Methods

Public_or_private(object, object)

The visibility of a PackageImport is either public or private. self.visibility = #public or self.visibility = #private

bool Public_or_private(object diagnostics, object context)

Parameters

diagnostics object

The chain of diagnostics to which problems are to be appended.

context object

The cache of context-specific information.

Returns

bool