Class 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 java.lang.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>
     
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstraintInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)  
      java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)  
      boolean equals​(java.lang.Object object)  
      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)  
      java.lang.String getDescription()
      Gets the value of the description property.
      java.util.List<ExpressionInfo> getExpression()
      Gets the value of the expression property.
      java.lang.String getMessage()
      Gets the value of the message property.
      java.lang.String getName()
      Gets the value of the name property.
      java.lang.String getSeverity()
      Gets the value of the severity property.
      int hashCode()  
      int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)  
      void setDescription​(java.lang.String value)
      Sets the value of the description property.
      void setMessage​(java.lang.String value)
      Sets the value of the message property.
      void setName​(java.lang.String value)
      Sets the value of the name property.
      void setSeverity​(java.lang.String value)
      Sets the value of the severity property.
      java.lang.String toString()  
      ConstraintInfo withDescription​(java.lang.String value)  
      ConstraintInfo withExpression​(java.util.Collection<ExpressionInfo> values)  
      ConstraintInfo withExpression​(ExpressionInfo... values)  
      ConstraintInfo withMessage​(java.lang.String value)  
      ConstraintInfo withName​(java.lang.String value)  
      ConstraintInfo withSeverity​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
      • severity

        protected java.lang.String severity
      • description

        protected java.lang.String description
      • message

        protected java.lang.String message
    • Constructor Detail

      • ConstraintInfo

        public ConstraintInfo()
    • Method Detail

      • getExpression

        public java.util.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 java.lang.String getName()
        Gets the value of the name property.
        Returns:
        possible object is String
      • setName

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

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

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

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

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

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

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

        public ConstraintInfo withName​(java.lang.String value)
      • withSeverity

        public ConstraintInfo withSeverity​(java.lang.String value)
      • withDescription

        public ConstraintInfo withDescription​(java.lang.String value)
      • withMessage

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

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.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 java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
      • 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:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2