Package com.yetanalytics.xapi.model
Class ActivityDefinition
- java.lang.Object
-
- com.yetanalytics.xapi.model.ActivityDefinition
-
- All Implemented Interfaces:
JSONObject,Serializable
public class ActivityDefinition extends Object implements JSONObject
Class representation of the Activity Definition Component of the 9274.1.1 xAPI Specification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityDefinition()
-
Method Summary
-
-
-
Method Detail
-
getName
public LangMap getName()
-
setName
public void setName(LangMap name)
-
getDescription
public LangMap getDescription()
-
setDescription
public void setDescription(LangMap description)
-
getType
public URI getType()
-
setType
public void setType(URI type)
-
getMoreInfo
public URI getMoreInfo()
-
setMoreInfo
public void setMoreInfo(URI moreInfo)
-
getExtensions
public Extensions getExtensions()
-
setExtensions
public void setExtensions(Extensions extensions)
-
getInteractionType
public InteractionType getInteractionType()
-
setInteractionType
public void setInteractionType(InteractionType interactionType)
-
setCorrectResponsesPattern
public void setCorrectResponsesPattern(List<String> correctResponsesPattern)
-
getChoices
public List<InteractionComponent> getChoices()
-
setChoices
public void setChoices(List<InteractionComponent> choices)
-
getScale
public List<InteractionComponent> getScale()
-
setScale
public void setScale(List<InteractionComponent> scale)
-
getSource
public List<InteractionComponent> getSource()
-
setSource
public void setSource(List<InteractionComponent> source)
-
getTarget
public List<InteractionComponent> getTarget()
-
setTarget
public void setTarget(List<InteractionComponent> target)
-
getSteps
public List<InteractionComponent> getSteps()
-
setSteps
public void setSteps(List<InteractionComponent> steps)
-
isEmpty
@AssertFalse(message="ActivityDefinition must not be empty") public @jakarta.validation.constraints.AssertFalse(message="ActivityDefinition must not be empty") boolean isEmpty()
- Specified by:
isEmptyin interfaceJSONObject
-
isValidInteractionActivity
@AssertTrue(message="ActivityDefinition must be a valid interaction activity") public @jakarta.validation.constraints.AssertTrue(message="ActivityDefinition must be a valid interaction activity") boolean isValidInteractionActivity()
-
-