Package org.hl7.fhir.dstu2016may.model
Class ModuleMetadata.ModuleMetadataRelatedResourceComponent
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.model.Base
-
- org.hl7.fhir.dstu2016may.model.Element
-
- org.hl7.fhir.dstu2016may.model.ModuleMetadata.ModuleMetadataRelatedResourceComponent
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseDatatypeElement,org.hl7.fhir.instance.model.api.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions
- Enclosing class:
- ModuleMetadata
public static class ModuleMetadata.ModuleMetadataRelatedResourceComponent extends Element implements org.hl7.fhir.instance.model.api.IBaseDatatypeElement
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttachmentdocumentThe document being referenced, represented as an attachment.protected ReferenceresourceThe related resource, such as a library, value set, profile, or other module.protected ResourceresourceTargetThe actual object that is the target of the reference (The related resource, such as a library, value set, profile, or other module.)protected Enumeration<ModuleMetadata.ModuleMetadataResourceType>typeThe type of related resource.
-
Constructor Summary
Constructors Constructor Description ModuleMetadataRelatedResourceComponent()ConstructorModuleMetadataRelatedResourceComponent(Enumeration<ModuleMetadata.ModuleMetadataResourceType> type)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Element
addExtension, addExtension, copyValues, getExtension, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElement
-
Methods inherited from class org.hl7.fhir.dstu2016may.model.Base
castToActionDefinition, castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToModuleMetadata, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
type
protected Enumeration<ModuleMetadata.ModuleMetadataResourceType> type
The type of related resource.
-
document
protected Attachment document
The document being referenced, represented as an attachment. This is exclusive with the resource element.
-
resource
protected Reference resource
The related resource, such as a library, value set, profile, or other module.
-
resourceTarget
protected Resource resourceTarget
The actual object that is the target of the reference (The related resource, such as a library, value set, profile, or other module.)
-
-
Constructor Detail
-
ModuleMetadataRelatedResourceComponent
public ModuleMetadataRelatedResourceComponent()
Constructor
-
ModuleMetadataRelatedResourceComponent
public ModuleMetadataRelatedResourceComponent(Enumeration<ModuleMetadata.ModuleMetadataResourceType> type)
Constructor
-
-
Method Detail
-
getTypeElement
public Enumeration<ModuleMetadata.ModuleMetadataResourceType> getTypeElement()
- Returns:
type(The type of related resource.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
hasTypeElement
public boolean hasTypeElement()
-
hasType
public boolean hasType()
-
setTypeElement
public ModuleMetadata.ModuleMetadataRelatedResourceComponent setTypeElement(Enumeration<ModuleMetadata.ModuleMetadataResourceType> value)
- Parameters:
value-type(The type of related resource.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
-
getType
public ModuleMetadata.ModuleMetadataResourceType getType()
- Returns:
- The type of related resource.
-
setType
public ModuleMetadata.ModuleMetadataRelatedResourceComponent setType(ModuleMetadata.ModuleMetadataResourceType value)
- Parameters:
value- The type of related resource.
-
getDocument
public Attachment getDocument()
- Returns:
document(The document being referenced, represented as an attachment. This is exclusive with the resource element.)
-
hasDocument
public boolean hasDocument()
-
setDocument
public ModuleMetadata.ModuleMetadataRelatedResourceComponent setDocument(Attachment value)
- Parameters:
value-document(The document being referenced, represented as an attachment. This is exclusive with the resource element.)
-
getResource
public Reference getResource()
- Returns:
resource(The related resource, such as a library, value set, profile, or other module.)
-
hasResource
public boolean hasResource()
-
setResource
public ModuleMetadata.ModuleMetadataRelatedResourceComponent setResource(Reference value)
- Parameters:
value-resource(The related resource, such as a library, value set, profile, or other module.)
-
getResourceTarget
public Resource getResourceTarget()
- Returns:
resourceThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The related resource, such as a library, value set, profile, or other module.)
-
setResourceTarget
public ModuleMetadata.ModuleMetadataRelatedResourceComponent setResourceTarget(Resource value)
- Parameters:
value-resourceThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The related resource, such as a library, value set, profile, or other module.)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classElement
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
Description copied from class:Basemake an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property- Overrides:
makePropertyin classElement- Returns:
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
copy
public ModuleMetadata.ModuleMetadataRelatedResourceComponent copy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classElement
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classElement
-
isEmpty
public boolean isEmpty()
-
-