Package org.hl7.fhir

Class Element

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<Extension> extension  
      protected java.lang.String id  
    • Constructor Summary

      Constructors 
      Constructor Description
      Element()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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)  
      java.util.List<Extension> getExtension()
      Gets the value of the extension property.
      java.lang.String getId()
      Gets the value of the id property.
      int hashCode()  
      int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)  
      void setId​(java.lang.String value)
      Sets the value of the id property.
      java.lang.String toString()  
      Element withExtension​(java.util.Collection<Extension> values)  
      Element withExtension​(Extension... values)  
      Element withId​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

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

      • extension

        protected java.util.List<Extension> extension
      • id

        protected java.lang.String id
    • Constructor Detail

      • Element

        public Element()
    • Method Detail

      • getExtension

        public java.util.List<Extension> getExtension()
        Gets the value of the extension property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the extension property.

        For example, to add a new item, do as follows:

            getExtension().add(newItem);
         

        Objects of the following type(s) are allowed in the list Extension

      • getId

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

        public void setId​(java.lang.String value)
        Sets the value of the id property.
        Parameters:
        value - allowed object is String
      • withExtension

        public Element withExtension​(java.util.Collection<Extension> values)
      • withId

        public Element withId​(java.lang.String 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