Table of Contents

Class NamedSetDefinition

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Represents the definition of a NamedSet.

public class NamedSetDefinition : ModelElement, IDynamicMetaObjectProvider, INotifyPropertyChanged, IDataErrorInfo
Inheritance
Object
NamedSetDefinition
Implements
IDynamicMetaObjectProvider
INotifyPropertyChanged
IDataErrorInfo
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

properties IEnumerable<KeyValuePair<Object, Object>>

Collection of properties.

NamedSetDefinition(NamedSetDefinition)

Initializes a new instance of the NamedSetDefinition class.

public NamedSetDefinition(NamedSetDefinition element)

Parameters

element NamedSetDefinition

The element to copy.

Properties

EvaluationPolicy

Gets or sets the EvaluationPolicy of a set.

public EvaluationPolicy EvaluationPolicy { get; set; }

Property Value

EvaluationPolicy

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

visitor ModelElementVisitor

the 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

messages IList<PropertyValidationMessage>

An list of strings that stores that picks up the validation errors of a model element.

validateRecursively Boolean

Indicates 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.