Package ca.uhn.hl7v2.validation.builder
Interface Expression<T extends Structure>
- Type Parameters:
T-
public interface Expression<T extends Structure>
Expression used to obtain values from a message structure
-
Method Summary
Modifier and TypeMethodDescriptionApplies this expression on the structureReturns the expression description used for describing the Rule this expression is used in.getLocation(T structure) Returns the location of the structure to which is expression is applied to
-
Method Details
-
evaluate
Applies this expression on the structure- Parameters:
structure- HL7 structure to be evaluated- Returns:
- the result value
- Throws:
HL7Exception
-
getDescription
Returns the expression description used for describing the Rule this expression is used in.- Returns:
- description
-
getLocation
Returns the location of the structure to which is expression is applied to- Parameters:
structure- HL7 structure to be located- Returns:
- the location of the structure
- Throws:
HL7Exception- if the structure refers to an invalid location
-