Package org.hl7.fhir
Class ModuleMetadataRelatedResource
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.ModuleMetadataRelatedResource
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class ModuleMetadataRelatedResource extends Element 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 a value for at least one of the defined elements, an @id referenced from the Narrative, or extensionsJava class for ModuleMetadata.RelatedResource complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ModuleMetadata.RelatedResource"> <complexContent> <extension base="{http://hl7.org/fhir}Element"> <sequence> <element name="type" type="{http://hl7.org/fhir}ModuleMetadataResourceType"/> <element name="document" type="{http://hl7.org/fhir}Attachment" minOccurs="0"/> <element name="resource" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Attachmentdocumentprotected Referenceresourceprotected ModuleMetadataResourceTypetype
-
Constructor Summary
Constructors Constructor Description ModuleMetadataRelatedResource()
-
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)AttachmentgetDocument()Gets the value of the document property.ReferencegetResource()Gets the value of the resource property.ModuleMetadataResourceTypegetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetDocument(Attachment value)Sets the value of the document property.voidsetResource(Reference value)Sets the value of the resource property.voidsetType(ModuleMetadataResourceType value)Sets the value of the type property.java.lang.StringtoString()ModuleMetadataRelatedResourcewithDocument(Attachment value)ModuleMetadataRelatedResourcewithExtension(java.util.Collection<Extension> values)ModuleMetadataRelatedResourcewithExtension(Extension... values)ModuleMetadataRelatedResourcewithId(java.lang.String value)ModuleMetadataRelatedResourcewithResource(Reference value)ModuleMetadataRelatedResourcewithType(ModuleMetadataResourceType value)-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
type
protected ModuleMetadataResourceType type
-
document
protected Attachment document
-
resource
protected Reference resource
-
-
Method Detail
-
getType
public ModuleMetadataResourceType getType()
Gets the value of the type property.- Returns:
- possible object is
ModuleMetadataResourceType
-
setType
public void setType(ModuleMetadataResourceType value)
Sets the value of the type property.- Parameters:
value- allowed object isModuleMetadataResourceType
-
getDocument
public Attachment getDocument()
Gets the value of the document property.- Returns:
- possible object is
Attachment
-
setDocument
public void setDocument(Attachment value)
Sets the value of the document property.- Parameters:
value- allowed object isAttachment
-
getResource
public Reference getResource()
Gets the value of the resource property.- Returns:
- possible object is
Reference
-
setResource
public void setResource(Reference value)
Sets the value of the resource property.- Parameters:
value- allowed object isReference
-
withType
public ModuleMetadataRelatedResource withType(ModuleMetadataResourceType value)
-
withDocument
public ModuleMetadataRelatedResource withDocument(Attachment value)
-
withResource
public ModuleMetadataRelatedResource withResource(Reference value)
-
withExtension
public ModuleMetadataRelatedResource withExtension(Extension... values)
- Overrides:
withExtensionin classElement
-
withExtension
public ModuleMetadataRelatedResource withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classElement
-
withId
public ModuleMetadataRelatedResource 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)
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
-
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 classElement
-
-