Class NamedSetDefinition
- Namespace
- TimeCockpit.Data.DataModel
- Assembly
- TimeCockpit.Data.dll
Represents the definition of a NamedSet.
public class NamedSetDefinition : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
- Inheritance
-
ObjectNamedSetDefinition
- Implements
-
IDynamicMetaObjectProviderINotifyPropertyChangedIDataErrorInfo
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
NamedSetDefinition()
Initializes a new instance of the NamedSetDefinition class
public NamedSetDefinition()
NamedSetDefinition(IEnumerable<KeyValuePair<Object, Object>>)
Initializes a new instance of the NamedSetDefinition class.
public NamedSetDefinition(IEnumerable<KeyValuePair<object, object>> properties)
Parameters
propertiesIEnumerable<KeyValuePair<Object, Object>>Collection of properties.
NamedSetDefinition(NamedSetDefinition)
Initializes a new instance of the NamedSetDefinition class.
public NamedSetDefinition(NamedSetDefinition element)
Parameters
elementNamedSetDefinitionThe element to copy.
Properties
EvaluationPolicy
Gets or sets the EvaluationPolicy of a set.
public EvaluationPolicy EvaluationPolicy { get; set; }
Property Value
Query
Gets or sets the TCQL query of the set.
public string Query { get; set; }
Property Value
- String
Methods
Accept(ModelElementVisitor)
Dispatches the visit handler for a NamedSetDefinition on the visitor.
public override void Accept(ModelElementVisitor visitor)
Parameters
visitorModelElementVisitorthe visitor to dispatch the correct visit call to.
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.