Package com.ibm.fhir.model.type
Class RelatedArtifact
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.RelatedArtifact
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class RelatedArtifact extends Element
Related artifacts such as additional documentation, justification, or bibliographic references.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRelatedArtifact.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static RelatedArtifact.Builderbuilder()booleanequals(Object obj)MarkdowngetCitation()A bibliographic citation for the related artifact.StringgetDisplay()A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.AttachmentgetDocument()The document being referenced, represented as an attachment.StringgetLabel()A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.CanonicalgetResource()The related resource, such as a library, value set, profile, or other knowledge resource.RelatedArtifactTypegetType()The type of relationship to the related artifact.UrlgetUrl()A url for the artifact that can be followed to access the actual content.booleanhasChildren()inthashCode()RelatedArtifact.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getType
public RelatedArtifactType getType()
The type of relationship to the related artifact.- Returns:
- An immutable object of type
RelatedArtifactTypethat is non-null.
-
getLabel
public String getLabel()
A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index.- Returns:
- An immutable object of type
Stringthat may be null.
-
getDisplay
public String getDisplay()
A brief description of the document or knowledge resource being referenced, suitable for display to a consumer.- Returns:
- An immutable object of type
Stringthat may be null.
-
getCitation
public Markdown getCitation()
A bibliographic citation for the related artifact. This text SHOULD be formatted according to an accepted citation format.- Returns:
- An immutable object of type
Markdownthat may be null.
-
getUrl
public Url getUrl()
A url for the artifact that can be followed to access the actual content.- Returns:
- An immutable object of type
Urlthat may be null.
-
getDocument
public Attachment getDocument()
The document being referenced, represented as an attachment. This is exclusive with the resource element.- Returns:
- An immutable object of type
Attachmentthat may be null.
-
getResource
public Canonical getResource()
The related resource, such as a library, value set, profile, or other knowledge resource.- Returns:
- An immutable object of type
Canonicalthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public RelatedArtifact.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static RelatedArtifact.Builder builder()
-
-