ElementProperty¶
-
public interface
ElementProperty
¶ The main interface to add an additional constraint on a
Path
. Used with the methodPath.that
, andPath.and
.
Methods¶
and¶
-
ElementProperty
and
(ElementProperty prop)¶ returns a new property, that is a combination of the current property AND the given property parameter. Meaning the element is required to have both properties. Obviously, this can be used multiple times: prop1.and(prop2).or(prop3).and(prop4)
Parameters: - prop – another property to perform a logical “AND” with
Returns: a new property that is equivalent to: (this property AND prop)
andNot¶
-
ElementProperty
andNot
(ElementProperty prop)¶ returns a new property, that is equivalent to the current property, BUT NOT the property parameter. Obviously, this can be used multiple times: prop1.andNot(prop2).or(prop3.andNot(prop4))
Parameters: - prop – another property to perform a logical “NAND” with
Returns: a new property that is equivalent to: (this property and not prop)
or¶
-
ElementProperty
or
(ElementProperty prop)¶ returns a new property, that is a combination of the current property OR the given property parameter. Meaning the element is required to have any of the two properties. Obviously, this can be used multiple times: prop1.or(prop2).or(prop3).and(prop4)
Parameters: - prop – another property to perform a logical “OR” with
Returns: a new property that is equivalent to: (this property OR prop)