Package org.hl7.fhir

Class ElementDefinitionConstraint

java.lang.Object
org.hl7.fhir.Element
org.hl7.fhir.ElementDefinitionConstraint
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

public class ElementDefinitionConstraint extends Element implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have a value for at least one of the defined elements, an @id referenced from the Narrative, or extensions

Java class for ElementDefinition.Constraint complex type.

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

 <complexType name="ElementDefinition.Constraint">
   <complexContent>
     <extension base="{http://hl7.org/fhir}Element">
       <sequence>
         <element name="key" type="{http://hl7.org/fhir}id"/>
         <element name="requirements" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="severity" type="{http://hl7.org/fhir}ConstraintSeverity"/>
         <element name="human" type="{http://hl7.org/fhir}string"/>
         <element name="expression" type="{http://hl7.org/fhir}string" minOccurs="0"/>
         <element name="xpath" type="{http://hl7.org/fhir}string"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

    • key

      protected Id key
    • requirements

      protected String requirements
    • severity

      protected ConstraintSeverity severity
    • human

      protected String human
    • expression

      protected String expression
    • xpath

      protected String xpath
  • Constructor Details

    • ElementDefinitionConstraint

      public ElementDefinitionConstraint()
  • Method Details

    • getKey

      public Id getKey()
      Gets the value of the key property.
      Returns:
      possible object is Id
    • setKey

      public void setKey(Id value)
      Sets the value of the key property.
      Parameters:
      value - allowed object is Id
    • getRequirements

      public String getRequirements()
      Gets the value of the requirements property.
      Returns:
      possible object is String
    • setRequirements

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

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

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

      public String getHuman()
      Gets the value of the human property.
      Returns:
      possible object is String
    • setHuman

      public void setHuman(String value)
      Sets the value of the human property.
      Parameters:
      value - allowed object is String
    • getExpression

      public String getExpression()
      Gets the value of the expression property.
      Returns:
      possible object is String
    • setExpression

      public void setExpression(String value)
      Sets the value of the expression property.
      Parameters:
      value - allowed object is String
    • getXpath

      public String getXpath()
      Gets the value of the xpath property.
      Returns:
      possible object is String
    • setXpath

      public void setXpath(String value)
      Sets the value of the xpath property.
      Parameters:
      value - allowed object is String
    • withKey

      public ElementDefinitionConstraint withKey(Id value)
    • withRequirements

      public ElementDefinitionConstraint withRequirements(String value)
    • withSeverity

      public ElementDefinitionConstraint withSeverity(ConstraintSeverity value)
    • withHuman

      public ElementDefinitionConstraint withHuman(String value)
    • withExpression

      public ElementDefinitionConstraint withExpression(String value)
    • withXpath

      public ElementDefinitionConstraint withXpath(String value)
    • withExtension

      public ElementDefinitionConstraint withExtension(Extension... values)
      Overrides:
      withExtension in class Element
    • withExtension

      public ElementDefinitionConstraint withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class Element
    • withId

      public ElementDefinitionConstraint withId(String value)
      Overrides:
      withId in class Element
    • 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
      Overrides:
      equals in class Element
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Element
    • 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
      Overrides:
      hashCode in class Element
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Element
    • 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
      Overrides:
      append in class Element
    • 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
      Overrides:
      appendFields in class Element