Table of Contents

Class ClassExtensions

Namespace
NMF.Models.Meta
Assembly
NMF.Models.dll

Denotes extension methods for Class instances

public static class ClassExtensions
Inheritance
ClassExtensions
Inherited Members

Methods

IsAssignableFrom(IClass, IClass)

Determines whether an instance of the provided class can be assigned to this class

public static bool IsAssignableFrom(this IClass @class, IClass specificType)

Parameters

class IClass

the more abstract class

specificType IClass

the more concrete class

Returns

bool

True, if the provided class is a derived class, otherwise False

IsContainerReference(IReference)

Determines whethe the given reference is a reference to the container

public static bool IsContainerReference(this IReference reference)

Parameters

reference IReference

the reference

Returns

bool

True, if the reference has an opposite containment reference, otherwise False

IsRefined(IClass, IAttribute)

Determines whether the given attribute is refined in the scope of this class

public static bool IsRefined(this IClass @class, IAttribute attribute)

Parameters

class IClass

the context class

attribute IAttribute

the attribute

Returns

bool

True, if the attribute is refined, otherwise False

IsRefined(IClass, IReference)

Determines whether the given reference is refined in the scope of this class

public static bool IsRefined(this IClass @class, IReference reference)

Parameters

class IClass

the context class

reference IReference

the reference

Returns

bool

True, if the reference is refined otherwise False

LookupAttribute(IClass, string)

Looks up the attribute with the given name

public static IAttribute LookupAttribute(this IClass @class, string name)

Parameters

class IClass

the context class

name string

the name of the attribute

Returns

IAttribute

The attribute or null, if no such attribute could be found

LookupOperation(IClass, string)

Looks up the operation with the given name

public static IOperation LookupOperation(this IClass @class, string name)

Parameters

class IClass

the context class

name string

the name of the operation

Returns

IOperation

The operation or null, if no such operation was found

LookupReference(IClass, string)

Looks up the reference with the given name

public static IReference LookupReference(this IClass @class, string name)

Parameters

class IClass

the context class

name string

the name of the reference

Returns

IReference

The reference or null, if no such reference could be found

RetrieveIdentifier(IClass)

Retrieves the identifier of the class

public static ScopedIdentifier RetrieveIdentifier(this IClass @class)

Parameters

class IClass

the class

Returns

ScopedIdentifier

A scoped identifier