Package org.hl7.fhir

Class Binary

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class Binary
    extends Resource
    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 either a @value, an @id, or extensions

    Java class for Binary complex type.

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

     <complexType name="Binary">
       <complexContent>
         <extension base="{http://hl7.org/fhir}Resource">
           <sequence>
             <element name="contentType" type="{http://hl7.org/fhir}code"/>
             <element name="content" type="{http://hl7.org/fhir}base64Binary"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Binary

        public Binary()
    • Method Detail

      • getContentType

        public Code getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is Code
      • setContentType

        public void setContentType​(Code value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is Code
      • getContent

        public Base64Binary getContent()
        Gets the value of the content property.
        Returns:
        possible object is Base64Binary
      • setContent

        public void setContent​(Base64Binary value)
        Sets the value of the content property.
        Parameters:
        value - allowed object is Base64Binary
      • withContentType

        public Binary withContentType​(Code 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
        Overrides:
        equals in class Resource
      • equals

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

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