Class ConstraintInfo

java.lang.Object
org.hl7.elm_modelinfo.r1.ConstraintInfo
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class ConstraintInfo extends Object implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
The ConstraintInfo type models the definition of a constraint which can then be associated with a class info, class info element, or other model element.

Java class for ConstraintInfo complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="ConstraintInfo">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="expression" type="{urn:hl7-org:elm-modelinfo:r1}ExpressionInfo" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="severity" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • ConstraintInfo

      public ConstraintInfo()
  • Method Details

    • getExpression

      public List<ExpressionInfo> getExpression()
      Gets the value of the expression property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the expression property.

      For example, to add a new item, do as follows:

          getExpression().add(newItem);
       

      Objects of the following type(s) are allowed in the list ExpressionInfo

    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String
    • getSeverity

      public String getSeverity()
      Gets the value of the severity property.
      Returns:
      possible object is String
    • setSeverity

      public void setSeverity(String value)
      Sets the value of the severity property.
      Parameters:
      value - allowed object is String
    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Returns:
      possible object is String
    • setDescription

      public void setDescription(String value)
      Sets the value of the description property.
      Parameters:
      value - allowed object is String
    • getMessage

      public String getMessage()
      Gets the value of the message property.
      Returns:
      possible object is String
    • setMessage

      public void setMessage(String value)
      Sets the value of the message property.
      Parameters:
      value - allowed object is String
    • withExpression

      public ConstraintInfo withExpression(ExpressionInfo... values)
    • withExpression

      public ConstraintInfo withExpression(Collection<ExpressionInfo> values)
    • withName

      public ConstraintInfo withName(String value)
    • withSeverity

      public ConstraintInfo withSeverity(String value)
    • withDescription

      public ConstraintInfo withDescription(String value)
    • withMessage

      public ConstraintInfo withMessage(String value)
    • 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:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2