Class CadfAttachment
- java.lang.Object
-
- org.linuxforhealth.fhir.audit.cadf.CadfAttachment
-
public class CadfAttachment extends java.lang.Object
The CADF Attachment type is used as one means to add domain-specific information to certain CADF entities or data types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CadfAttachment.Builder
Builder is a convenience pattern to assemble to Java Objectstatic class
CadfAttachment.Parser
Parserstatic class
CadfAttachment.Writer
Generates JSON from this object.
-
Constructor Summary
Constructors Constructor Description CadfAttachment(java.lang.String contentType, java.lang.Object content)
Create an attachment object.CadfAttachment(java.lang.String contentType, java.lang.Object content, java.lang.String name)
Create an attachment object with a user-friendly name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CadfAttachment.Builder
builder()
java.lang.Object
getContent()
java.lang.String
getContentType()
java.lang.String
getName()
void
setContent(java.lang.Object content)
void
setContentType(java.lang.String contentType)
void
setName(java.lang.String name)
-
-
-
Constructor Detail
-
CadfAttachment
public CadfAttachment(java.lang.String contentType, java.lang.Object content, java.lang.String name)
Create an attachment object with a user-friendly name.- Parameters:
contentType
- URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"content
- A container with attachment data. Required.name
- An optional name that can be used to identify content (e.g. file name)
-
CadfAttachment
public CadfAttachment(java.lang.String contentType, java.lang.Object content)
Create an attachment object.- Parameters:
contentType
- URI that identifies the data type of the content property. Required. For example, an attachment that includes a standard MIME types (such as "application/pdf") can be included by setting this property to "http://www.iana.org/assignments/media-types/application/pdf"content
- A container with attachment data. Required.
-
-
Method Detail
-
getContentType
public java.lang.String getContentType()
-
setContentType
public void setContentType(java.lang.String contentType)
-
getContent
public java.lang.Object getContent()
-
setContent
public void setContent(java.lang.Object content)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
builder
public static CadfAttachment.Builder builder()
-
-