Table of Contents

Interface IClass

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The public interface for Class

[DefaultImplementationType(typeof(Class))]
[XmlDefaultImplementationType(typeof(Class))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Class")]
public interface IClass : IBehavioredClassifier, IEncapsulatedClassifier, IStructuredClassifier, IClassifier, ITemplateableElement, IType, IPackageableElement, IParameterableElement, IRedefinableElement, INamespace, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
Inherited Members

Properties

IsActive

Determines whether an object specified by this Class is active or not. If true, then the owning Class is referred to as an active Class. If false, then such a Class is referred to as a passive Class. <p>From package UML::StructuredClassifiers.</p>

[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isActive")]
[XmlAttribute(true)]
bool IsActive { get; set; }

Property Value

bool

NestedClassifier

The Classifiers owned by the Class that are not ownedBehaviors. <p>From package UML::StructuredClassifiers.</p>

[Browsable(false)]
[XmlElementName("nestedClassifier")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IClassifier> NestedClassifier { get; }

Property Value

IOrderedSetExpression<IClassifier>

OwnedOperation

The Operations owned by the Class. <p>From package UML::StructuredClassifiers.</p>

[Browsable(false)]
[XmlElementName("ownedOperation")]
[XmlAttribute(false)]
[Containment]
[XmlOpposite("class")]
IOrderedSetExpression<IOperation> OwnedOperation { get; }

Property Value

IOrderedSetExpression<IOperation>

OwnedReception

The Receptions owned by the Class. <p>From package UML::StructuredClassifiers.</p>

[Browsable(false)]
[XmlElementName("ownedReception")]
[XmlAttribute(false)]
[Containment]
IOrderedSetExpression<IReception> OwnedReception { get; }

Property Value

IOrderedSetExpression<IReception>

Methods

CreateOwnedOperation(string, IEnumerable<string>, IEnumerable<IType>, IType)

Creates an operation with the specified name, parameter names, parameter types, and return type (or null) as an owned operation of this class.

IOperation CreateOwnedOperation(string name, IEnumerable<string> parameterNames, IEnumerable<IType> parameterTypes, IType returnType)

Parameters

name string

The name for the new operation, or null.

parameterNames IEnumerable<string>

The parameter names for the new operation, or null.

parameterTypes IEnumerable<IType>

The parameter types for the new operation, or null.

returnType IType

The return type for the new operation, or null.

Returns

IOperation

GetExtensions()

Derivation for Class::/extension : Extension result = (Extension.allInstances()->select(ext | let endTypes : Sequence(Classifier) = ext.memberEnd->collect(type.oclAsType(Classifier)) in endTypes->includes(self) or endTypes.allParents()->includes(self) )) <p>From package UML::StructuredClassifiers.</p>

ISetExpression<IExtension> GetExtensions()

Returns

ISetExpression<IExtension>

GetSuperClasses()

Derivation for Class::/superClass : Class result = (self.general()->select(oclIsKindOf(Class))->collect(oclAsType(Class))->asSet()) <p>From package UML::StructuredClassifiers.</p>

ISetExpression<IClass> GetSuperClasses()

Returns

ISetExpression<IClass>

IsMetaclass()

Determines whether this class is a metaclass.

bool IsMetaclass()

Returns

bool

Passive_class(object, object)

Only an active Class may own Receptions and have a classifierBehavior. not isActive implies (ownedReception->isEmpty() and classifierBehavior = null)

bool Passive_class(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