Class Message
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected Expressioncodeprotected Expressionconditionprotected Expressionmessageprotected Expressionseverityprotected Expressionsource-
Fields inherited from class org.cqframework.cql.elm.execution.OperatorExpression
signature
-
Fields inherited from class org.cqframework.cql.elm.execution.Element
annotation, localId, locator, resultTypeName, resultTypeSpecifier
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)ExpressiongetCode()Gets the value of the code property.ExpressiongetCondition()Gets the value of the condition property.ExpressiongetMessage()Gets the value of the message property.ExpressiongetSeverity()Gets the value of the severity property.ExpressiongetSource()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.java.lang.StringtoString()MessagewithAnnotation(java.util.Collection<CqlToElmBase> values)MessagewithAnnotation(CqlToElmBase... values)MessagewithCode(Expression value)MessagewithCondition(Expression value)MessagewithLocalId(java.lang.String value)MessagewithLocator(java.lang.String value)MessagewithMessage(Expression value)MessagewithResultTypeName(javax.xml.namespace.QName value)MessagewithResultTypeSpecifier(TypeSpecifier value)MessagewithSeverity(Expression value)MessagewithSignature(java.util.Collection<TypeSpecifier> values)MessagewithSignature(TypeSpecifier... values)MessagewithSource(Expression value)-
Methods inherited from class org.cqframework.cql.elm.execution.OperatorExpression
getSignature
-
Methods inherited from class org.cqframework.cql.elm.execution.Element
getAnnotation, getLocalId, getLocator, getResultTypeName, getResultTypeSpecifier, setLocalId, setLocator, setResultTypeName, setResultTypeSpecifier
-
Methods inherited from class org.opencds.cqf.cql.engine.elm.execution.Executable
evaluate, internalEvaluate
-
-
-
-
Field Detail
-
source
protected Expression source
-
condition
protected Expression condition
-
code
protected Expression code
-
severity
protected Expression severity
-
message
protected Expression message
-
-
Method Detail
-
getSource
public Expression getSource()
Gets the value of the source property.- Returns:
- possible object is
Expression
-
setSource
public void setSource(Expression value)
Sets the value of the source property.- Parameters:
value- allowed object isExpression
-
getCondition
public Expression getCondition()
Gets the value of the condition property.- Returns:
- possible object is
Expression
-
setCondition
public void setCondition(Expression value)
Sets the value of the condition property.- Parameters:
value- allowed object isExpression
-
getCode
public Expression getCode()
Gets the value of the code property.- Returns:
- possible object is
Expression
-
setCode
public void setCode(Expression value)
Sets the value of the code property.- Parameters:
value- allowed object isExpression
-
getSeverity
public Expression getSeverity()
Gets the value of the severity property.- Returns:
- possible object is
Expression
-
setSeverity
public void setSeverity(Expression value)
Sets the value of the severity property.- Parameters:
value- allowed object isExpression
-
getMessage
public Expression getMessage()
Gets the value of the message property.- Returns:
- possible object is
Expression
-
setMessage
public void setMessage(Expression value)
Sets the value of the message property.- Parameters:
value- allowed object isExpression
-
withSource
public Message withSource(Expression value)
-
withCondition
public Message withCondition(Expression value)
-
withCode
public Message withCode(Expression value)
-
withSeverity
public Message withSeverity(Expression value)
-
withMessage
public Message withMessage(Expression value)
-
withSignature
public Message withSignature(TypeSpecifier... values)
- Overrides:
withSignaturein classOperatorExpression
-
withSignature
public Message withSignature(java.util.Collection<TypeSpecifier> values)
- Overrides:
withSignaturein classOperatorExpression
-
withAnnotation
public Message withAnnotation(CqlToElmBase... values)
- Overrides:
withAnnotationin classOperatorExpression
-
withAnnotation
public Message withAnnotation(java.util.Collection<CqlToElmBase> values)
- Overrides:
withAnnotationin classOperatorExpression
-
withResultTypeSpecifier
public Message withResultTypeSpecifier(TypeSpecifier value)
- Overrides:
withResultTypeSpecifierin classOperatorExpression
-
withLocalId
public Message withLocalId(java.lang.String value)
- Overrides:
withLocalIdin classOperatorExpression
-
withLocator
public Message withLocator(java.lang.String value)
- Overrides:
withLocatorin classOperatorExpression
-
withResultTypeName
public Message withResultTypeName(javax.xml.namespace.QName value)
- Overrides:
withResultTypeNamein classOperatorExpression
-
equals
public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)- Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classOperatorExpression
-
equals
public boolean equals(java.lang.Object object)
- 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
public java.lang.String toString()
- Overrides:
toStringin classOperatorExpression
-
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classOperatorExpression
-
appendFields
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)- Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classOperatorExpression
-
-