Class ModelExtensions
Inheritance
System.Object
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:System.Dynamic.ExpandoObject
Assembly:SilverDawn.SilverModel.UML.dll
Syntax
public static class ModelExtensions
Methods
AddEnumeration(IModel, IEnumeration)
Adds a Enumeration to a class
Declaration
public static IEnumeration AddEnumeration(IModel iModel, IEnumeration Enumeration)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel | |
IEnumeration | Enumeration | The Enumeration to add |
Returns
Type | Description |
---|---|
IEnumeration |
Classes(IModel)
Gets all the Classes owned by the model
Declaration
public static IEnumerable<IClass> Classes(this IModel iModel)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IClass> |
Classifiers(IModel)
Gets all the Classifiers owned by the model
Declaration
public static IEnumerable<IClassifier> Classifiers(this IModel iModel)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IClassifier> |
CreateClass(IModel, String)
Declaration
public static IClass CreateClass(this IModel model, string className)
Parameters
Type | Name | Description |
---|---|---|
IModel | model | |
System.String | className |
Returns
Type | Description |
---|---|
IClass |
CreateEnumeration(IModel)
Adds a blank Enumeration to the class
Declaration
public static IEnumeration CreateEnumeration(this IModel iModel)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel |
Returns
Type | Description |
---|---|
IEnumeration |
Enums(IModel)
Gets all the Enums owned by the model
Declaration
public static IEnumerable<IEnumeration> Enums(this IModel iModel)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IEnumeration> |
Interfaces(IModel)
Gets all the Interfaces owned by the model
Declaration
public static IEnumerable<IInterface> Interfaces(this IModel iModel)
Parameters
Type | Name | Description |
---|---|---|
IModel | iModel |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IInterface> |