Class ModelEntityInterface
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Represents data about an interface that a model entity implements
public sealed class ModelEntityInterface : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
- Inheritance
-
ObjectModelEntityInterface
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChangedIDataErrorInfo
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
ModelEntityInterface()
Initializes a new instance of the ModelEntityInterface class.
public ModelEntityInterface()
ModelEntityInterface(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the ModelEntityInterface class.
public ModelEntityInterface(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
propertiesIEnumerable<KeyValuePair<Object, Object>>Collection of properties.
ModelEntityInterface(ModelEntityInterface)
Initializes a new instance of the ModelEntityInterface class.
public ModelEntityInterface(ModelEntityInterface source)
Parameters
sourceModelEntityInterfaceThe source to copy from.
Properties
InterfaceType
Gets or sets the type of the interface
public Type InterfaceType { get; set; }
Property Value
- 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
public string InterfaceTypeName { get; set; }
Property Value
- String
Methods
Accept(ModelElementVisitor)
Accepts a visitor for a ModelEntityInterface.
public override void Accept(ModelElementVisitor visitor)
Parameters
visitorModelElementVisitorthe visitor to accept.
GetInterfaceIdentifier(String)
Generates a valid identifier name from a CLR type's full name
public static string GetInterfaceIdentifier(string typeFullName)
Parameters
typeFullNameStringCLR type's full name
Returns
- String
Valid identifier for the CLR type's full name
Validate(ref IList<PropertyValidationMessage>, Boolean)
Validates a ModelElement according to certain rules.
protected override void Validate(ref IList<PropertyValidationMessage> messages, bool validateRecursively)
Parameters
messagesIList<PropertyValidationMessage>An list of strings that stores that picks up the validation errors of a model element.
validateRecursivelyBooleanIndicates wheter to validate only the current model element or all its children (recursively) as well.
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.