Interface IClass
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
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
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
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
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
stringThe 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
ITypeThe return type for the new operation, or null.
Returns
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
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
IsMetaclass()
Determines whether this class is a metaclass.
bool IsMetaclass()
Returns
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
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.