Class PredicateNode
Provides a predicate that is the result of grouping other predicates.
Namespace: ABB.Robotics.RobotStudio .Documents
Assembly: ABB.Robotics.RobotStudio.Documents.dll
Syntax
public sealed class PredicateNode
Constructors
View SourcePredicateNode(Type)
Constructs a grouping predicate node.
Declaration
public PredicateNode(PredicateNode.Type type)
Parameters
Type | Name | Description |
---|---|---|
Predicate |
type |
PredicateNode(Predicate<DocumentInfo>)
Constructs a leaf predicate node.
Declaration
public PredicateNode(Predicate<DocumentInfo> predicate)
Parameters
Type | Name | Description |
---|---|---|
Predicate<Document |
predicate |
Properties
View SourceChildren
Gets the collection of children in a grouping node.
Declaration
public Collection<PredicateNode> Children { get; }
Property Value
Type | Description |
---|---|
Collection<Predicate |
Invert
Gets or sets if the result of the evaluation should be inverted.
Declaration
public bool Invert { get; set; }
Property Value
Type | Description |
---|---|
bool |
NodeType
Specifies the node type.
Declaration
public PredicateNode.Type NodeType { get; set; }
Property Value
Type | Description |
---|---|
Predicate |
Predicate
Gets the predicate for a leaf node.
Declaration
public Predicate<DocumentInfo> Predicate { get; }
Property Value
Type | Description |
---|---|
Predicate<Document |
Methods
View SourceMatch(DocumentInfo)
Returns true if the specified document matches this predicate.
Declaration
public bool Match(DocumentInfo docInfo)
Parameters
Type | Name | Description |
---|---|---|
Document |
docInfo |
Returns
Type | Description |
---|---|
bool |