/// <summary> /// Initializes a new instance of the <see cref="PropertyDataBase{TElement}" /> class. /// </summary> /// <param name="elementHandler">The element handler.</param> /// <param name="name">The name of the property.</param> /// <param name="propertyType">Type of the property.</param> /// <param name="action">The action.</param> /// <param name="setAction">The set action.</param> public PagePropertyData(IPageElementHandler <TElement> elementHandler, string name, Type propertyType, Func <IPage, Func <object, bool>, bool> action, Action <IPage, object> setAction) : base(elementHandler, name, propertyType) { this.IsElement = false; this.IsList = false; this.action = action; this.setAction = setAction; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDataBase{TElement}" /> class. /// </summary> /// <param name="elementHandler">The element handler.</param> /// <param name="name">The name of the property.</param> /// <param name="propertyType">Type of the property.</param> protected PropertyDataBase(IPageElementHandler <TElement> elementHandler, string name, Type propertyType) { this.elementHandler = elementHandler; this.Name = name; this.PropertyType = propertyType; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDataBase{TElement}" /> class. /// </summary> /// <param name="elementHandler">The element handler.</param> /// <param name="name">The name of the property.</param> /// <param name="propertyType">Type of the property.</param> /// <param name="elementAction">The element action.</param> public ElementPropertyData(IPageElementHandler <TElement> elementHandler, string name, Type propertyType, Func <IPage, Func <TElement, bool>, bool> elementAction) : base(elementHandler, name, propertyType) { this.elementAction = elementAction; this.IsElement = true; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDataBase{TElement}" /> class. /// </summary> /// <param name="elementHandler">The element handler.</param> /// <param name="name">The name of the property.</param> /// <param name="propertyType">Type of the property.</param> /// <param name="action">The action used to get the property.</param> public ListPropertyData(IPageElementHandler <TElement> elementHandler, string name, Type propertyType, Func <IPage, Func <object, bool>, bool> action) : base(elementHandler, name, propertyType) { this.IsList = true; this.action = action; }
/// <summary> /// Initializes a new instance of the <see cref="VirtualPropertyData{TElement}" /> class. /// </summary> /// <param name="elementHandler">The element page handler.</param> /// <param name="name">The name.</param> /// <param name="handler">The element handler.</param> /// <param name="attributeName">Name of the attribute.</param> public VirtualPropertyData(IPageElementHandler <TElement> elementHandler, string name, Func <IPage, Func <TElement, bool>, bool> handler, string attributeName) : base(elementHandler, name, typeof(string)) { this.attributeName = attributeName; this.handler = handler; }