Package ca.uhn.hl7v2.validation.builder
Class PredicateMessageRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<Message>
ca.uhn.hl7v2.validation.impl.AbstractMessageRule
ca.uhn.hl7v2.validation.builder.PredicateMessageRule
- All Implemented Interfaces:
PredicateRuleSupport<Message>,MessageRule,Rule<Message>,Serializable
- Direct Known Subclasses:
TerserMessageRule
public abstract class PredicateMessageRule
extends AbstractMessageRule
implements PredicateRuleSupport<Message>
Abstract base class for message rules that are evaluated using predicates
- Author:
- Christian Ohr
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPredicateMessageRule(Predicate predicate, Expression<Message> expression) Create a new message rule -
Method Summary
Modifier and TypeMethodDescriptionApplies to rule to an object to be checkedMethods inherited from class ca.uhn.hl7v2.validation.impl.AbstractMessageRule
testMethods inherited from class ca.uhn.hl7v2.validation.impl.RuleSupport
failed, failed, failed, failed, failedWithValue, getDescription, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.validation.Rule
getDescription, getSectionReference
-
Constructor Details
-
PredicateMessageRule
Create a new message rule- Parameters:
predicate- the predicate to be used for the testexpression- the expression to be used to extract the message part to be tested
-
-
Method Details
-
apply
Description copied from interface:RuleApplies to rule to an object to be checked -
getPredicate
- Specified by:
getPredicatein interfacePredicateRuleSupport<Message>- Returns:
- the predicate instance used to test
-