Course

abstract class Course

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val autoInstallComponents: List<<Error class: unknown class>?>
Link copied to clipboard
val callbacks: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
abstract val exerciseDataSource: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String

Returns the id of the course.

Link copied to clipboard

Returns the languages of the course (as ISO 639-1 codes).

Link copied to clipboard

Returns the name of the course.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val requiredPlugins: List<<Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun getComponentIfExists(name: String): <Error class: unknown class>?
Link copied to clipboard
open fun getComponents(): Collection<<Error class: unknown class>>
Link copied to clipboard

Returns a mapping of exercise IDs to modules. The keys are exercise IDs, and the values are maps from language codes to module names. Note, that some exercises use modules that are not in the course configuration file, so the modules may not be in Course.getModules.

Link copied to clipboard
fun getLibraries(): List<<Error class: unknown class>>

Returns the list of libraries (not including common libraries) of the course.

Link copied to clipboard

Returns the list of all modules in this course. If the course object is created with , then the modules are returned in the order in which they are listed in the course configuration data.

Link copied to clipboard

Returns a map containing URLs of resources for the course. The keys are the names of the resources and the values are the URLs.

Link copied to clipboard
open fun register()
Link copied to clipboard
Link copied to clipboard
fun resolve()

Resolves states of unresolved components and calls validate().

Link copied to clipboard
open fun unregister()
Link copied to clipboard
fun validate()

Validates that components conform integrity constraints.