Package org.hl7.fhir
Class Binary
java.lang.Object
org.hl7.fhir.Resource
org.hl7.fhir.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>
-
Field Summary
Fields Modifier and Type Field Description protected Base64Binarycontentprotected CodecontentType -
Constructor Summary
Constructors Constructor Description Binary() -
Method Summary
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)Base64BinarygetContent()Gets the value of the content property.CodegetContentType()Gets the value of the contentType property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetContent(Base64Binary value)Sets the value of the content property.voidsetContentType(Code value)Sets the value of the contentType property.java.lang.StringtoString()BinarywithContent(Base64Binary value)BinarywithContentType(Code value)BinarywithId(Id value)BinarywithImplicitRules(Uri value)BinarywithLanguage(Code value)BinarywithMeta(Meta value)Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
Field Details
-
Constructor Details
-
Binary
public Binary()
-
-
Method Details
-
getContentType
Gets the value of the contentType property.- Returns:
- possible object is
Code
-
setContentType
Sets the value of the contentType property.- Parameters:
value- allowed object isCode
-
getContent
Gets the value of the content property.- Returns:
- possible object is
Base64Binary
-
setContent
Sets the value of the content property.- Parameters:
value- allowed object isBase64Binary
-
withContentType
-
withContent
-
withId
-
withMeta
-
withImplicitRules
- Overrides:
withImplicitRulesin classResource
-
withLanguage
- Overrides:
withLanguagein classResource
-
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) -
equals
public boolean equals(java.lang.Object object) -
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) -
hashCode
public int hashCode() -
toString
public java.lang.String toString() -
append
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) -
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 classResource
-