Class Message
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
- Direct Known Subclasses:
MessageEvaluator
public class Message
extends OperatorExpression
implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The Message operator is used to support errors, warnings, messages, and tracing in an ELM evaluation environment.
The operator is defined to return the input source.
If the severity is Error, the operator is expected to raise a run-time error and return the message to the calling environment. This is the only severity that stops processing. All other severities continue evaluation of the expression.
If the severity is Trace, the operator is expected to make the message available to a tracing mechanism such as a debug log in the calling environment.
If the severity is Warning, the operator is expected to provide the message as a warning to the calling environment.
If the severity is Message, the operator is expected to provide the message as information to the calling environment.
Java class for Message complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Message">
<complexContent>
<extension base="{urn:hl7-org:elm:r1}OperatorExpression">
<sequence>
<element name="source" type="{urn:hl7-org:elm:r1}Expression"/>
<element name="condition" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="code" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="severity" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
<element name="message" type="{urn:hl7-org:elm:r1}Expression" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expressionprotected Expressionprotected Expressionprotected Expressionprotected ExpressionFields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signatureFields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) getCode()Gets the value of the code property.Gets the value of the condition property.Gets the value of the message property.Gets the value of the severity property.Gets the value of the source property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetCode(Expression value) Sets the value of the code property.voidsetCondition(Expression value) Sets the value of the condition property.voidsetMessage(Expression value) Sets the value of the message property.voidsetSeverity(Expression value) Sets the value of the severity property.voidsetSource(Expression value) Sets the value of the source property.toString()withAnnotation(Collection<CqlToElmBase> values) withAnnotation(CqlToElmBase... values) withCode(Expression value) withCondition(Expression value) withLocalId(String value) withLocator(String value) withMessage(Expression value) withResultTypeName(QName value) withSeverity(Expression value) withSignature(Collection<TypeSpecifier> values) withSignature(TypeSpecifier... values) withSource(Expression value) Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignatureMethods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifierMethods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
Field Details
-
source
-
condition
-
code
-
severity
-
message
-
-
Constructor Details
-
Message
public Message()
-
-
Method Details
-
getSource
Gets the value of the source property.- Returns:
- possible object is
Expression
-
setSource
Sets the value of the source property.- Parameters:
value- allowed object isExpression
-
getCondition
Gets the value of the condition property.- Returns:
- possible object is
Expression
-
setCondition
Sets the value of the condition property.- Parameters:
value- allowed object isExpression
-
getCode
Gets the value of the code property.- Returns:
- possible object is
Expression
-
setCode
Sets the value of the code property.- Parameters:
value- allowed object isExpression
-
getSeverity
Gets the value of the severity property.- Returns:
- possible object is
Expression
-
setSeverity
Sets the value of the severity property.- Parameters:
value- allowed object isExpression
-
getMessage
Gets the value of the message property.- Returns:
- possible object is
Expression
-
setMessage
Sets the value of the message property.- Parameters:
value- allowed object isExpression
-
withSource
-
withCondition
-
withCode
-
withSeverity
-
withMessage
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
- Overrides:
withResultTypeNamein classOperatorExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classOperatorExpression
-
equals
- Overrides:
equalsin classOperatorExpression
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) - Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classOperatorExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classOperatorExpression
-
toString
- Overrides:
toStringin classOperatorExpression
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classOperatorExpression
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classOperatorExpression
-