Package com.ibm.fhir.audit.cadf.model
Class CadfAttachment
- java.lang.Object
-
- com.ibm.fhir.audit.cadf.model.CadfAttachment
-
public class CadfAttachment extends 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 classCadfAttachment.BuilderBuilder is a convenience pattern to assemble to Java Objectstatic classCadfAttachment.ParserParserstatic classCadfAttachment.WriterGenerates JSON from this object.
-
Constructor Summary
Constructors Constructor Description CadfAttachment(String contentType, Object content)Create an attachment object.CadfAttachment(String contentType, Object content, 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.Builderbuilder()ObjectgetContent()StringgetContentType()StringgetName()voidsetContent(Object content)voidsetContentType(String contentType)voidsetName(String name)
-
-
-
Constructor Detail
-
CadfAttachment
public CadfAttachment(String contentType, Object content, 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(String contentType, 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 String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getContent
public Object getContent()
-
setContent
public void setContent(Object content)
-
getName
public String getName()
-
setName
public void setName(String name)
-
builder
public static CadfAttachment.Builder builder()
-
-