Class PredicateHelper
java.lang.Object
org.ehrbase.openehr.sdk.aql.webtemplatepath.predicate.PredicateHelper
- Author:
- Stefan Spiska
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PredicatebuildPredicate(CharSequence predicate) static Optional<PredicateComparisonOperator>static voidformat(StringBuilder sb, Predicate predicate, AqlPath.OtherPredicatesFormat otherPredicatesFormat) static Stringformat(Predicate predicate, AqlPath.OtherPredicatesFormat otherPredicatesFormat) static PredicateLogicalAndOperationremove(PredicateLogicalAndOperation and, ComparisonOperatorSymbol symbol, String... remove) Return a clone ofandwith allPredicateComparisonOperatorremoved where the operatorsymbolmatches andPredicateComparisonOperator.getStatement()is inremove
-
Field Details
-
NAME_VALUE
- See Also:
-
ARCHETYPE_NODE_ID
- See Also:
-
-
Method Details
-
buildPredicate
-
format
public static String format(Predicate predicate, AqlPath.OtherPredicatesFormat otherPredicatesFormat) -
format
public static void format(StringBuilder sb, Predicate predicate, AqlPath.OtherPredicatesFormat otherPredicatesFormat) -
find
-
remove
public static PredicateLogicalAndOperation remove(PredicateLogicalAndOperation and, ComparisonOperatorSymbol symbol, String... remove) Return a clone ofandwith allPredicateComparisonOperatorremoved where the operatorsymbolmatches andPredicateComparisonOperator.getStatement()is inremove- Parameters:
and-symbol- the operator to be matched, or nullremove- names of statements to be removed- Returns:
-