ClassFindExpressionElement
Definition
Namespace:ArtOfTest.Common.Design.ProjectModel.Elements
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class FindExpressionElement : DataBoundObject, INodeData, INotifyPropertyChanged
Inheritance: objectDataBoundObjectFindExpressionElement
Implements:
Inherited Members
Constructors
FindExpressionElement()
Used for serialization.
Declaration
public FindExpressionElement()
FindExpressionElement(List<KeyValuePair<TechnologyType, IFindExpression>>, string, TechnologyType, int)
Create a new FindExpressionElement from a list of FindExpressions
Declaration
public FindExpressionElement(List<KeyValuePair<TechnologyType, IFindExpression>> exprs, string name, TechnologyType tech, int kind)
Parameters
exprs
List<KeyValuePair<TechnologyType, IFindExpression>>
List containing a FindExpression chain that specifies the target element this object wraps
name
Human-readable name for the terminal node in the chain
tech
kind
Fields
Properties
BackupSearchClause
Backup search clause generated by the designer. This backup search clause is used to help diagnose
Declaration
[DataMember(Name = "BackupSearchClause")]
[Browsable(false)]
public string BackupSearchClause { get; set; }
Property Value
ContainerName
Declaration
[Browsable(false)]
[DataMember(Name = "ContainerName", IsRequired = false, EmitDefaultValue = false)]
public string ContainerName { get; set; }
Property Value
DataBindingExpressions
Declaration
[Browsable(false)]
[DataDriven]
[DataMember(Name = "DataBindingExpressions")]
public Dictionary<string, string> DataBindingExpressions { get; set; }
Property Value
DataBoundFindExpressions
Declaration
[Browsable(false)]
public List<KeyValuePair<TechnologyType, IFindExpression>> DataBoundFindExpressions { get; }
Property Value
Expression
Declaration
[Browsable(false)]
public string Expression { get; }
Property Value
FindExpressions
Gets / Sets the list of find expressions identifying the element wrapped by this node
Declaration
[Browsable(false)]
[DataMember(Name = "FindExpressions")]
public IList<KeyValuePair<TechnologyType, IFindExpression>> FindExpressions { get; }
Property Value
FindLogic
Get the find logic string to display to the user.
Declaration
[Browsable(false)]
public string FindLogic { get; }
Property Value
FriendlyName
Gets / Sets the human-readable name of this element node
Declaration
[DataMember(Name = "Name")]
public string FriendlyName { get; set; }
Property Value
Implements
ImageSearchClauses
Contains information about image search. Everty element may have multiple images associated (depending on screen resolution and browser type).
Declaration
[Browsable(false)]
[DataMember(Name = "ImageSearchClauses")]
public ImageSearchClause[] ImageSearchClauses { get; set; }
Property Value
ImageSearchClause[]
IsFullyBoundValue
Declaration
[Browsable(false)]
public bool IsFullyBoundValue { get; }
Property Value
Kind
Gets the NodeKind of this element
Declaration
[DataMember(Name = "NodeKind")]
[Browsable(false)]
public int Kind { get; }
Property Value
Implements
TechnologyType
The technology type
Declaration
[DataMember(Name = "TechnologyType")]
public TechnologyType TechnologyType { get; set; }
Property Value
VariableReference
Code variable reference for code gen
Declaration
[Browsable(false)]
public CodeExpression VariableReference { get; set; }
Property Value
Implements
Methods
BindData(string)
If the descriptor supports data driven tests, then it can use this expand method to expand bindable properties or data before execution.
Clone()
Creates a copy of this element
CopyTo(INodeData)
Not yet implemented
GetUniqueKey()
Gets a string uniquely identifying this expression element
IsDataBound(string)
Gets whether a property of this descriptor is data bound or not.
Match(INodeData)
Compare two FindExpressionElements
OnPropertyChanged(string)
Invoked when a property changes.
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
propertyName
The property name that changed.
ToString()
String representation of this expression.
UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>>, string)
Update the list of expressions. Does not fire on property changed
Declaration
public void UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>> expressions, string backup)
Parameters
expressions
IList<KeyValuePair<TechnologyType, IFindExpression>>
The expressions
backup
The backup
UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>>, string, ImageSearchClause[])
Update the list of expressions. Does not fire on property changed
Declaration
public void UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>> expressions, string backup, ImageSearchClause[] imageSearchClauses)
Parameters
expressions
IList<KeyValuePair<TechnologyType, IFindExpression>>
The expressions
backup
The backup
imageSearchClauses
ImageSearchClause[]
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements