Class ModelEntityInterface
Represents data about an interface that a model entity implements
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public sealed class ModelEntityInterface : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
Constructors
ModelEntityInterface()
Initializes a new instance of the ModelEntityInterface class.
Declaration
public ModelEntityInterface()
ModelEntityInterface(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the ModelEntityInterface class.
Declaration
public ModelEntityInterface(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Object, System.Object>> | properties | Collection of properties. |
ModelEntityInterface(ModelEntityInterface)
Initializes a new instance of the ModelEntityInterface class.
Declaration
public ModelEntityInterface(ModelEntityInterface source)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelEntityInterface | source | The source to copy from. |
Properties
InterfaceType
Gets or sets the type of the interface
Declaration
public Type InterfaceType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Remarks
If the name (Name) is empty the full name of the type is automatically set as the new name for the object.
InterfaceTypeName
Gets or sets the typename of the interface
Declaration
public string InterfaceTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Accept(ModelElementVisitor)
Accepts a visitor for a ModelEntityInterface.
Declaration
public override void Accept(ModelElementVisitor visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelElementVisitor | visitor | the visitor to accept. |
Overrides
GetInterfaceIdentifier(String)
Generates a valid identifier name from a CLR type's full name
Declaration
public static string GetInterfaceIdentifier(string typeFullName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | typeFullName | CLR type's full name |
Returns
| Type | Description |
|---|---|
| System.String | Valid identifier for the CLR type's full name |
Validate(ref IList<PropertyValidationMessage>, Boolean)
Validates a ModelElement according to certain rules.
Declaration
protected override void Validate(ref IList<PropertyValidationMessage> messages, bool validateRecursively)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IList<PropertyValidationMessage> | messages | An list of strings that stores that picks up the validation errors of a model element. |
| System.Boolean | validateRecursively | Indicates wheter to validate only the current model element or all its children (recursively) as well. |
Overrides
Remarks
The rules the ModelElement is validated against are dependent on the type of ModelElement that is validated. This method can be overridden to provide custom validation behavior for subclasses of ModelElement
When Validate(ref IList<PropertyValidationMessage>, Boolean) is called on a modelelement, the Validate(ref IList<PropertyValidationMessage>, Boolean) method of all children attatched to the modelelemnt are validated recursivly.