Package com.github.loyada.jdollarx
Interface ElementProperty
-
- All Known Subinterfaces:
ElementPropertyWithNumericalBoundaries
public interface ElementPropertyThe main interface to add an additional constraint on aPath. Used with the methodPath.that(com.github.loyada.jdollarx.ElementProperty...), andPath.and(com.github.loyada.jdollarx.ElementProperty...).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ElementPropertyand(ElementProperty prop)returns a new property, that is a combination of the current property AND the given property parameter.default ElementPropertyandNot(ElementProperty prop)returns a new property, that is equivalent to the current property, BUT NOT the property parameter.default ElementPropertyor(ElementProperty prop)returns a new property, that is a combination of the current property OR the given property parameter.StringtoXpath()
-
-
-
Method Detail
-
toXpath
String toXpath()
-
or
default 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)
-
and
default 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
default 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)
-
-