Package org.hl7.fhir
Class Linkage
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.Linkage
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class Linkage extends DomainResource 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 extensionsJava class for Linkage complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Linkage"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="author" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="item" type="{http://hl7.org/fhir}Linkage.Item" maxOccurs="unbounded"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Referenceauthorprotected java.util.List<LinkageItem>item-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Linkage()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)ReferencegetAuthor()Gets the value of the author property.java.util.List<LinkageItem>getItem()Gets the value of the item property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetAuthor(Reference value)Sets the value of the author property.java.lang.StringtoString()LinkagewithAuthor(Reference value)LinkagewithContained(java.util.Collection<ResourceContainer> values)LinkagewithContained(ResourceContainer... values)LinkagewithExtension(java.util.Collection<Extension> values)LinkagewithExtension(Extension... values)LinkagewithId(Id value)LinkagewithImplicitRules(Uri value)LinkagewithItem(java.util.Collection<LinkageItem> values)LinkagewithItem(LinkageItem... values)LinkagewithLanguage(Code value)LinkagewithMeta(Meta value)LinkagewithModifierExtension(java.util.Collection<Extension> values)LinkagewithModifierExtension(Extension... values)LinkagewithText(Narrative value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
author
protected Reference author
-
item
protected java.util.List<LinkageItem> item
-
-
Method Detail
-
getAuthor
public Reference getAuthor()
Gets the value of the author property.- Returns:
- possible object is
Reference
-
setAuthor
public void setAuthor(Reference value)
Sets the value of the author property.- Parameters:
value- allowed object isReference
-
getItem
public java.util.List<LinkageItem> getItem()
Gets the value of the item 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
setmethod for the item property.For example, to add a new item, do as follows:
getItem().add(newItem);Objects of the following type(s) are allowed in the list
LinkageItem
-
withItem
public Linkage withItem(LinkageItem... values)
-
withItem
public Linkage withItem(java.util.Collection<LinkageItem> values)
-
withText
public Linkage withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public Linkage withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public Linkage withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public Linkage withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public Linkage withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public Linkage withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public Linkage withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public Linkage withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public Linkage withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public Linkage withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public Linkage withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
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:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
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:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classDomainResource
-
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 classDomainResource
-
-