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

    Fields 
    Modifier and Type Field Description
    protected Id id  
    protected Uri implicitRules  
    protected Code language  
    protected Meta meta  
  • Constructor Summary

    Constructors 
    Constructor Description
    Resource()  
  • Method Summary

    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)  
    Id getId()
    Gets the value of the id property.
    Uri getImplicitRules()
    Gets the value of the implicitRules property.
    Code getLanguage()
    Gets the value of the language property.
    Meta getMeta()
    Gets the value of the meta property.
    int hashCode()  
    int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)  
    void setId​(Id value)
    Sets the value of the id property.
    void setImplicitRules​(Uri value)
    Sets the value of the implicitRules property.
    void setLanguage​(Code value)
    Sets the value of the language property.
    void setMeta​(Meta value)
    Sets the value of the meta property.
    java.lang.String toString()  
    Resource withId​(Id value)  
    Resource withImplicitRules​(Uri value)  
    Resource withLanguage​(Code value)  
    Resource withMeta​(Meta value)  

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • 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, 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