org.coursera.courier.generator.specs

EnumDefinition

Related Doc: package specs

case class EnumDefinition(spec: EnumTemplateSpec) extends Definition with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Definition, Deprecatable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EnumDefinition
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Definition
  7. Deprecatable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnumDefinition(spec: EnumTemplateSpec)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def allReferencedTypes: Set[Definition]

    Return all types directly or transitively referenced by this type.

    Return all types directly or transitively referenced by this type.

    Definition Classes
    Definition
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def containedTypes: Set[Definition]

    All types that should be generated as types inside this type.

    All types that should be generated as types inside this type.

    Definition Classes
    Definition
  8. def dataType: String

    The pegasus "data" type.

    The pegasus "data" type.

    This if sometimes the same as scalaType. It will be different for custom type and for primitive types.

    For custom types, it will be the referenced type.

    For primitives, this will be the java boxed type, e.g. java.lang.Integer whereas the scalaType would be Int.

    Definition Classes
    Definition
  9. def deprecationMessage: Option[String]

    Is is possible for a type to be deprecated but have not deprecation message, so even if this is None, isDeprecated still might be true.

    Is is possible for a type to be deprecated but have not deprecation message, so even if this is None, isDeprecated still might be true.

    Definition Classes
    Deprecatable
  10. def directReferencedTypes: Set[Definition]

    Return types this type references.

    Return types this type references. For a record, this will return the types of all the fields. For a array, this will return the items type.

    Definition Classes
    EnumDefinitionDefinition
  11. def enclosingDefinition: Option[Definition]

    The containing type of this type, if any.

    The containing type of this type, if any.

    When a type is contained in another type, it should be generated as a subtype of that type.

    Unions are commonly generated as contained types.

    Definition Classes
    Definition
  12. def enumFullname: String

  13. def enumName: String

    Because the scalaType is not the same as the enumeration object name, we have separate fields for the enumeration object name.

  14. val enumSchema: EnumDataSchema

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(other: Any): Boolean

    Definition Classes
    Definition → AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Definition Classes
    Definition → AnyRef → Any
  20. def isDeprecated: Boolean

    Definition Classes
    Deprecatable
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def isTopLevel: Boolean

    Definition Classes
    Definition
  23. def memberName: String

    The name that should be given to any Union member wrappers of this type.

    The name that should be given to any Union member wrappers of this type.

    Definition Classes
    EnumDefinitionDefinition
  24. def namespace: Option[String]

    The namespace of the scala type, if any.

    The namespace of the scala type, if any.

    Only present for complex types.

    Definition Classes
    EnumDefinitionDefinition
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def properties: Map[String, AnyRef]

    Definition Classes
    DefinitionDeprecatable
  29. def scalaDoc: Option[String]

    The scaladoc for the entire enumeration.

    The scaladoc for the entire enumeration.

    Definition Classes
    EnumDefinitionDefinition
  30. def scalaType: String

    The enumeration's type.

    The enumeration's type.

    It's important to note that the type for the Enumerations we generate is different than the enumeration object's name.

    A enumeration type is SomeEnum.SomeEnum, where the first SomeEnum is the name of the enumeration scala object, and the second SomeEnum is a member type defined inside the object for the actual type of the enumeration.

    Definition Classes
    EnumDefinitionDefinition
  31. def scalaTypeFullname: String

    The fully qualified name of the scala type.

    The fully qualified name of the scala type.

    Definition Classes
    Definition
  32. def schema: Option[EnumDataSchema]

    The schema of the type.

    The schema of the type. Not present for definitions of "raw" classes, such as the 'coercer' and 'class' of a custom type.

    Definition Classes
    EnumDefinitionDefinition
  33. val spec: EnumTemplateSpec

  34. def symbolScalaDocs: Map[String, Option[String]]

    For enumerations, each symbol may have it's own documentation, this is provided as map from symbol name to documentation string.

  35. def symbols: Seq[String]

    Enumeration symbol strings, not including $UNKNOWN.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Definition

Inherited from Deprecatable

Inherited from AnyRef

Inherited from Any

Ungrouped