o
uk.gov.hmrc.apiplatform.modules.organisations.submissions.domain.models
Question
Companion trait Question
object Question extends MapJsonFormatters
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Question
- MapJsonFormatters
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class AcknowledgementOnly(id: Id, wording: Wording, statement: Option[Statement]) extends Question with Product with Serializable
- case class AddressQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends Question with LabelAndHints with ErrorMessaging with Product with Serializable
- sealed trait ChoiceQuestion extends Question with LabelAndHints with ErrorMessaging
- case class ChooseOneOfQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, marking: ListMap[PossibleAnswer, Mark], absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends SingleChoiceQuestion with Product with Serializable
- case class DateQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends Question with LabelAndHints with ErrorMessaging with Product with Serializable
- final case class Id(value: String) extends AnyVal with Product with Serializable
- final case class Label(value: String) extends AnyVal with Product with Serializable
- case class MultiChoiceQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, marking: ListMap[PossibleAnswer, Mark], absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends ChoiceQuestion with Product with Serializable
- sealed trait SingleChoiceQuestion extends ChoiceQuestion
- case class TextQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, validation: Option[TextValidation] = None, absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends Question with LabelAndHints with ErrorMessaging with Product with Serializable
- case class YesNoQuestion(id: Id, wording: Wording, statement: Option[Statement], afterStatement: Option[Statement] = None, label: Option[Label] = None, hintText: Option[NonBulletStatementFragment] = None, yesMarking: Mark, noMarking: Mark, absence: Option[(String, Mark)] = None, errorInfo: Option[ErrorInfo] = None) extends SingleChoiceQuestion with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val answerKey: String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val jsonFormatAcknowledgementOnly: OFormat[AcknowledgementOnly]
- implicit val jsonFormatAddressQuestion: OFormat[AddressQuestion]
- implicit val jsonFormatChooseOneOfQuestion: OFormat[ChooseOneOfQuestion]
- implicit val jsonFormatDateQuestion: OFormat[DateQuestion]
- implicit val jsonFormatMultiChoiceQuestion: OFormat[MultiChoiceQuestion]
- implicit val jsonFormatPossibleAnswer: Format[PossibleAnswer]
- implicit val jsonFormatQuestion: Format[Question]
- implicit val jsonFormatTextQuestion: OFormat[TextQuestion]
- implicit val jsonFormatWording: Format[Wording]
- implicit val jsonFormatYesNoQuestion: OFormat[YesNoQuestion]
- implicit val jsonListMapKV: Reads[ListMap[PossibleAnswer, Mark]]
- implicit val keyReadsPossibleAnswer: KeyReads[PossibleAnswer]
- implicit val keyReadsQuestionId: KeyReads[Id]
- implicit val keyWritesPossibleAnswer: KeyWrites[PossibleAnswer]
- implicit val keyWritesQuestionId: KeyWrites[Id]
- implicit def listMapReads[K, V](implicit keyReads: KeyReads[K], readsV: Reads[V]): Reads[ListMap[K, V]]
- Definition Classes
- MapJsonFormatters
- implicit def listMapWrites[K, V](implicit keyWrites: KeyWrites[K], formatV: Writes[V]): Writes[ListMap[K, V]]
- Definition Classes
- MapJsonFormatters
- implicit val markReads: Reads[Mark]
- implicit val markWrites: Writes[Mark]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Id extends Serializable
- object Label extends Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)