Package dev.learning.xapi.model
Class ActivityDefinition.Builder
java.lang.Object
dev.learning.xapi.model.ActivityDefinition.Builder
- Enclosing class:
- ActivityDefinition
Builder for ActivityDefinition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChoice(InteractionComponent interactionComponent) Adds a choice option.addChoice(Consumer<InteractionComponent.Builder> interactionComponent) Consumer Builder for adding a choice option.addDescription(Locale key, String value) Adds a description of the Activity.Adds a human readable name of the Activity.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addName
Adds a human readable name of the Activity.- Parameters:
key- The key of the entry.value- The value of the entry.- Returns:
- This builder
- See Also:
-
ActivityDefinition.name
-
addDescription
Adds a description of the Activity.- Parameters:
key- The key of the entry.value- The value of the entry.- Returns:
- This builder
- See Also:
-
ActivityDefinition.description
-
addChoice
public ActivityDefinition.Builder addChoice(Consumer<InteractionComponent.Builder> interactionComponent) Consumer Builder for adding a choice option.- Parameters:
interactionComponent- The Consumer Builder for interactionComponent.- Returns:
- This builder
- See Also:
-
ActivityDefinition.choices
-
addChoice
Adds a choice option.- Parameters:
interactionComponent- The interactionComponent to add.- Returns:
- This builder
- See Also:
-
ActivityDefinition.choices
-