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 extensions
Java 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
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)
-
Field Details
-
Constructor Details
-
ModuleMetadataRelatedResource
public ModuleMetadataRelatedResource()
-
-
Method Details
-
getType
Gets the value of the type property.- Returns:
- possible object is
ModuleMetadataResourceType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isModuleMetadataResourceType
-
getDocument
Gets the value of the document property.- Returns:
- possible object is
Attachment
-
setDocument
Sets the value of the document property.- Parameters:
value- allowed object isAttachment
-
getResource
Gets the value of the resource property.- Returns:
- possible object is
Reference
-
setResource
Sets the value of the resource property.- Parameters:
value- allowed object isReference
-
withType
-
withDocument
-
withResource
-
withExtension
- Overrides:
withExtensionin classElement
-
withExtension
- Overrides:
withExtensionin classElement
-
withId
-
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) -
equals
public boolean equals(java.lang.Object object) -
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) -
hashCode
public int hashCode() -
toString
public java.lang.String toString() -
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
-