Package com.yetanalytics.xapi.model
Class Attachment
- java.lang.Object
-
- com.yetanalytics.xapi.model.Attachment
-
- All Implemented Interfaces:
JSONObject,Serializable
public class Attachment extends Object implements JSONObject
Class representation of the Attachment Component of the 9274.1.1 xAPI Specification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Attachment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.activation.MimeTypegetContentType()LangMapgetDescription()LangMapgetDisplay()URIgetFileUrl()IntegergetLength()StringgetSha2()URIgetUsageType()@jakarta.validation.constraints.AssertFalse(message="Attachment must not be empty") booleanisEmpty()voidsetContentType(jakarta.activation.MimeType contentType)voidsetDescription(LangMap description)voidsetDisplay(LangMap display)voidsetFileUrl(URI fileUrl)voidsetLength(Integer length)voidsetSha2(String sha2)voidsetUsageType(URI usageType)
-
-
-
Method Detail
-
getUsageType
public URI getUsageType()
-
setUsageType
public void setUsageType(URI usageType)
-
getDisplay
public LangMap getDisplay()
-
setDisplay
public void setDisplay(LangMap display)
-
getDescription
public LangMap getDescription()
-
setDescription
public void setDescription(LangMap description)
-
getContentType
public jakarta.activation.MimeType getContentType()
-
setContentType
public void setContentType(jakarta.activation.MimeType contentType)
-
getLength
public Integer getLength()
-
setLength
public void setLength(Integer length)
-
getSha2
public String getSha2()
-
setSha2
public void setSha2(String sha2)
-
getFileUrl
public URI getFileUrl()
-
setFileUrl
public void setFileUrl(URI fileUrl)
-
isEmpty
@AssertFalse(message="Attachment must not be empty") public @jakarta.validation.constraints.AssertFalse(message="Attachment must not be empty") boolean isEmpty()
- Specified by:
isEmptyin interfaceJSONObject
-
-