C# Class DataDictionary.Types.NameSpace

Inheritance: Generated.NameSpace, Utils.ISubDeclarator, Utils.IFinder
Exibir arquivo Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Public Methods

Method 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

Method 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 method

Adds a model element in this model element
public AddModelElement ( IModelElement element ) : void
element IModelElement
return void

ClearCache() public method

Clears the caches
public ClearCache ( ) : void
return void

ClearFunctionCache() public method

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

ClearTempFiles() public method

Removes temporary files created for reference namespaces
public ClearTempFiles ( ) : void
return void

CreateDefault() public static method

Creates a default element
public static CreateDefault ( ICollection enclosingCollection ) : NameSpace
enclosingCollection ICollection
return NameSpace

CreateStatusMessage() public method

Creates the status message
public CreateStatusMessage ( ) : string
return string

CreateUpdateInDictionary() public method

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
return NameSpace

Delete() public method

Removes the namespace and stores the files to delete
public Delete ( ) : void
return void

Find() public method

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

FindOrCreateNameSpaceUpdate() public method

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
return NameSpace

GetExplain() public method

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)
return void

GetStateMachineUpdate() public method

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
return DataDictionary.Types.StateMachine

GetStructureUpdate() public method

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
return Structure

InitDeclaredElements() public method

Initialises the declared elements
public InitDeclaredElements ( ) : void
return void

NameSpace() public method

Constructor
public NameSpace ( ) : System.Collections
return System.Collections

RestoreInfo() public method

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

StoreInfo() public method

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

findNameSpaceByName() public method

Provides the namespace which corresponds to the given name
public findNameSpaceByName ( string name ) : NameSpace
name string
return NameSpace

findStateMachineByName() public method

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

findStructureByName() public method

Provides the structure which corresponds to the given name
public findStructureByName ( string name ) : Structure
name string
return Structure

findTypeByName() public method

Provides the type which corresponds to the given name
public findTypeByName ( string name ) : Type
name string
return Type