C# Класс DataDictionary.Types.NameSpace

Наследование: Generated.NameSpace, Utils.ISubDeclarator, Utils.IFinder
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddModelElement ( IModelElement element ) : void

Adds a model element in this model element

ClearCache ( ) : void

Clears the caches

ClearFunctionCache ( ) : void

Clears the function cache for all functions in this namespace

ClearTempFiles ( ) : void

Removes temporary files created for reference namespaces

CreateDefault ( ICollection enclosingCollection ) : NameSpace

Creates a default element

CreateStatusMessage ( ) : string

Creates the status message

CreateUpdateInDictionary ( Dictionary dictionary ) : NameSpace

Creates a copy of the namespace in the designated dictionary. The enclosing namespace structure is copied over. The new namespace is set to update this one.

Delete ( ) : void

Removes the namespace and stores the files to delete

Find ( string name, List retVal ) : void

Appends the INamable which match the name provided in retVal

FindOrCreateNameSpaceUpdate ( string name, NameSpace initialNameSpace ) : NameSpace

Finds or creates a new namespace, and indicates that the original namespace is updated

GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void

Builds the explanation of the element

GetStateMachineUpdate ( string name, NameSpace initialNameSpace ) : DataDictionary.Types.StateMachine

Either provides the requested state machine or creates it if it cannot be found

GetStructureUpdate ( string name, NameSpace initialNameSpace ) : Structure

Either provides the requested structure or creates it if it cannot be found

InitDeclaredElements ( ) : void

Initialises the declared elements

NameSpace ( ) : System.Collections

Constructor

RestoreInfo ( ) : void

Used to restore the list of sub-namespaces, after having saved the model

StoreInfo ( ) : void

Used to store the list of sub-namespaces before saving the model

findNameSpaceByName ( string name ) : NameSpace

Provides the namespace which corresponds to the given name

findStateMachineByName ( string name ) : DataDictionary.Types.StateMachine

Provides the state machine which corresponds to the given name

findStructureByName ( string name ) : Structure

Provides the structure which corresponds to the given name

findTypeByName ( string name ) : Type

Provides the type which corresponds to the given name

Приватные методы

Метод Описание
CollectNamespaces ( List retVal ) : void

Provides the set of namespaces enclosed in this namespace

RecordFilesToDelete ( ) : void

Stores the files to be deleted

innerFindTypeByName ( string name, bool findInEnclosingNameSpaces ) : Type

Provides the type which corresponds to the given name

Описание методов

AddModelElement() публичный Метод

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
Результат void

ClearCache() публичный Метод

Clears the caches
public ClearCache ( ) : void
Результат void

ClearFunctionCache() публичный Метод

Clears the function cache for all functions in this namespace
public ClearFunctionCache ( ) : void
Результат void

ClearTempFiles() публичный Метод

Removes temporary files created for reference namespaces
public ClearTempFiles ( ) : void
Результат void

CreateDefault() публичный статический Метод

Creates a default element
public static CreateDefault ( ICollection enclosingCollection ) : NameSpace
enclosingCollection ICollection
Результат NameSpace

CreateStatusMessage() публичный Метод

Creates the status message
public CreateStatusMessage ( ) : string
Результат string

CreateUpdateInDictionary() публичный Метод

Creates a copy of the namespace in the designated dictionary. The enclosing namespace structure is copied over. The new namespace is set to update this one.
public CreateUpdateInDictionary ( Dictionary dictionary ) : NameSpace
dictionary Dictionary The target dictionary of the copy
Результат NameSpace

Delete() публичный Метод

Removes the namespace and stores the files to delete
public Delete ( ) : void
Результат void

Find() публичный Метод

Appends the INamable which match the name provided in retVal
public Find ( string name, List retVal ) : void
name string
retVal List
Результат void

FindOrCreateNameSpaceUpdate() публичный Метод

Finds or creates a new namespace, and indicates that the original namespace is updated
public FindOrCreateNameSpaceUpdate ( string name, NameSpace initialNameSpace ) : NameSpace
name string The name of the namespace to find or create
initialNameSpace NameSpace The namespace that is updated
Результат NameSpace

GetExplain() публичный Метод

Builds the explanation of the element
public GetExplain ( TextualExplanation explanation, bool explainSubElements ) : void
explanation TextualExplanation
explainSubElements bool Precises if we need to explain the sub elements (if any)
Результат void

GetStateMachineUpdate() публичный Метод

Either provides the requested state machine or creates it if it cannot be found
public GetStateMachineUpdate ( string name, NameSpace initialNameSpace ) : DataDictionary.Types.StateMachine
name string The name pf the state machine
initialNameSpace NameSpace The namespace the state machine is being copied from
Результат DataDictionary.Types.StateMachine

GetStructureUpdate() публичный Метод

Either provides the requested structure or creates it if it cannot be found
public GetStructureUpdate ( string name, NameSpace initialNameSpace ) : Structure
name string The name pf the structure
initialNameSpace NameSpace The namespace the structure is being copied from
Результат Structure

InitDeclaredElements() публичный Метод

Initialises the declared elements
public InitDeclaredElements ( ) : void
Результат void

NameSpace() публичный Метод

Constructor
public NameSpace ( ) : System.Collections
Результат System.Collections

RestoreInfo() публичный Метод

Used to restore the list of sub-namespaces, after having saved the model
public RestoreInfo ( ) : void
Результат void

StoreInfo() публичный Метод

Used to store the list of sub-namespaces before saving the model
public StoreInfo ( ) : void
Результат void

findNameSpaceByName() публичный Метод

Provides the namespace which corresponds to the given name
public findNameSpaceByName ( string name ) : NameSpace
name string
Результат NameSpace

findStateMachineByName() публичный Метод

Provides the state machine which corresponds to the given name
public findStateMachineByName ( string name ) : DataDictionary.Types.StateMachine
name string
Результат DataDictionary.Types.StateMachine

findStructureByName() публичный Метод

Provides the structure which corresponds to the given name
public findStructureByName ( string name ) : Structure
name string
Результат Structure

findTypeByName() публичный Метод

Provides the type which corresponds to the given name
public findTypeByName ( string name ) : Type
name string
Результат Type