Package org.hl7.fhir

Class Resource

java.lang.Object
org.hl7.fhir.Resource
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Direct Known Subclasses:
Binary, Bundle, DomainResource, Parameters

public class Resource extends Object implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
This is the base resource type for everything.

Java class for Resource complex type.

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

 <complexType name="Resource">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="id" type="{http://hl7.org/fhir}id" minOccurs="0"/>
         <element name="meta" type="{http://hl7.org/fhir}Meta" minOccurs="0"/>
         <element name="implicitRules" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
         <element name="language" type="{http://hl7.org/fhir}code" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • id

      protected Id id
    • meta

      protected Meta meta
    • implicitRules

      protected Uri implicitRules
    • language

      protected Code language
  • Constructor Details

    • Resource

      public Resource()
  • Method Details

    • getId

      public Id getId()
      Gets the value of the id property.
      Returns:
      possible object is Id
    • setId

      public void setId(Id value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is Id
    • getMeta

      public Meta getMeta()
      Gets the value of the meta property.
      Returns:
      possible object is Meta
    • setMeta

      public void setMeta(Meta value)
      Sets the value of the meta property.
      Parameters:
      value - allowed object is Meta
    • getImplicitRules

      public Uri getImplicitRules()
      Gets the value of the implicitRules property.
      Returns:
      possible object is Uri
    • setImplicitRules

      public void setImplicitRules(Uri value)
      Sets the value of the implicitRules property.
      Parameters:
      value - allowed object is Uri
    • getLanguage

      public Code getLanguage()
      Gets the value of the language property.
      Returns:
      possible object is Code
    • setLanguage

      public void setLanguage(Code value)
      Sets the value of the language property.
      Parameters:
      value - allowed object is Code
    • withId

      public Resource withId(Id value)
    • withMeta

      public Resource withMeta(Meta value)
    • withImplicitRules

      public Resource withImplicitRules(Uri value)
    • withLanguage

      public Resource withLanguage(Code 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