C# Class DataDictionary.Types.NameSpace

Inheritance: Generated.NameSpace, Utils.ISubDeclarator, Utils.IFinder
Afficher le fichier Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddModelElement() public méthode

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
Résultat void

ClearCache() public méthode

Clears the caches
public ClearCache ( ) : void
Résultat void

ClearFunctionCache() public méthode

Clears the function cache for all functions in this namespace
public ClearFunctionCache ( ) : void
Résultat void

ClearTempFiles() public méthode

Removes temporary files created for reference namespaces
public ClearTempFiles ( ) : void
Résultat void

CreateDefault() public static méthode

Creates a default element
public static CreateDefault ( ICollection enclosingCollection ) : NameSpace
enclosingCollection ICollection
Résultat NameSpace

CreateStatusMessage() public méthode

Creates the status message
public CreateStatusMessage ( ) : string
Résultat string

CreateUpdateInDictionary() public méthode

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
Résultat NameSpace

Delete() public méthode

Removes the namespace and stores the files to delete
public Delete ( ) : void
Résultat void

Find() public méthode

Appends the INamable which match the name provided in retVal
public Find ( string name, List retVal ) : void
name string
retVal List
Résultat void

FindOrCreateNameSpaceUpdate() public méthode

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
Résultat NameSpace

GetExplain() public méthode

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)
Résultat void

GetStateMachineUpdate() public méthode

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
Résultat DataDictionary.Types.StateMachine

GetStructureUpdate() public méthode

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
Résultat Structure

InitDeclaredElements() public méthode

Initialises the declared elements
public InitDeclaredElements ( ) : void
Résultat void

NameSpace() public méthode

Constructor
public NameSpace ( ) : System.Collections
Résultat System.Collections

RestoreInfo() public méthode

Used to restore the list of sub-namespaces, after having saved the model
public RestoreInfo ( ) : void
Résultat void

StoreInfo() public méthode

Used to store the list of sub-namespaces before saving the model
public StoreInfo ( ) : void
Résultat void

findNameSpaceByName() public méthode

Provides the namespace which corresponds to the given name
public findNameSpaceByName ( string name ) : NameSpace
name string
Résultat NameSpace

findStateMachineByName() public méthode

Provides the state machine which corresponds to the given name
public findStateMachineByName ( string name ) : DataDictionary.Types.StateMachine
name string
Résultat DataDictionary.Types.StateMachine

findStructureByName() public méthode

Provides the structure which corresponds to the given name
public findStructureByName ( string name ) : Structure
name string
Résultat Structure

findTypeByName() public méthode

Provides the type which corresponds to the given name
public findTypeByName ( string name ) : Type
name string
Résultat Type