Метод | Описание | |
---|---|---|
ModelRepository ( ) : System |
Creates a new model repository with the meta repository as parent
|
|
ModelRepository ( IModelRepository parent ) : System |
Creates a new model repository with a given parent If no parent repository is provided, the meta repository is used as parent repository |
|
Resolve ( |
Resolves the given Uri and returns the model element
|
|
Resolve ( |
Resolves the given Uri and returns the model element
|
|
Resolve ( string path ) : Model |
Resolves the given file path for a model element
|
|
Save ( IModelElement element, Stream stream, |
Saves the given model element to the specified stream
|
|
Save ( IModelElement element, string path ) : void |
Saves the given model element to the specified stream
|
|
Save ( IModelElement element, string path, |
Saves the given model element to the specified stream
|
Метод | Описание | |
---|---|---|
OnBubbledChange ( BubbledChangeEventArgs e ) : void | ||
OnUnresolvedModelElement ( NMF.Models.Repository.UnresolvedModelElementEventArgs e ) : void |
Gets called when a Uri cannot be resolved
|
Метод | Описание | |
---|---|---|
EnsureModelIsKnown ( IModelElement element ) : void | ||
Parent_BubbledChange ( object sender, BubbledChangeEventArgs e ) : void |
public ModelRepository ( IModelRepository parent ) : System | ||
parent | IModelRepository | The parent repository |
Результат | System |
protected OnBubbledChange ( BubbledChangeEventArgs e ) : void | ||
e | BubbledChangeEventArgs | |
Результат | void |
protected OnUnresolvedModelElement ( NMF.Models.Repository.UnresolvedModelElementEventArgs e ) : void | ||
e | NMF.Models.Repository.UnresolvedModelElementEventArgs | The event data |
Результат | void |
public Resolve ( |
||
uri | The Uri where to look for the model element | |
loadOnDemand | bool | A boolean flag indicating whether the uri should be attempted /// to load, if the model is not already registered with the repository |
Результат | IModelElement |
public Resolve ( |
||
uri | The Uri where to look for the model element | |
hintPath | string | The path where the model can be found |
loadOnDemand | bool | A boolean flag indicating whether the uri should be attempted /// to load, if the model is not already registered with the repository |
Результат | IModelElement |
public Resolve ( string path ) : Model | ||
path | string | The file path where to look for models |
Результат | Model |
public Save ( IModelElement element, Stream stream, |
||
element | IModelElement | The model element |
stream | Stream | The stream to save the model element to |
uri | The uri under which the model element shall be retrievable | |
Результат | void |
public Save ( IModelElement element, string path ) : void | ||
element | IModelElement | The model element |
path | string | The path where to save the model element |
Результат | void |
public Save ( IModelElement element, string path, |
||
element | IModelElement | The model element |
path | string | The path where to save the model element |
uri | The uri under which the model element can be retrieved | |
Результат | void |