C# 클래스 DataDictionary.Types.NameSpace

상속: Generated.NameSpace, Utils.ISubDeclarator, Utils.IFinder
파일 보기 프로젝트 열기: ERTMSSolutions/ERTMSFormalSpecs 1 사용 예제들

공개 메소드들

메소드 설명
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