package specs
- Alphabetic
- Public
- All
Type Members
- case class ArrayDefinition(spec: ArrayTemplateSpec) extends Definition with Product with Serializable
-
case class
ClassDefinition(spec: ClassTemplateSpec) extends Definition with MaybeBoxable with Product with Serializable
A language specific class definition.
A language specific class definition.
Purely a reference to a class. The class must already exist and will not be generated.
May refer to a primitive type.
Usages: - A custom class - A coercer for a custom class
- case class CustomInfoDefinition(spec: CustomInfoSpec) extends Product with Serializable
-
abstract
class
Definition extends Deprecatable
Pegasus provides
ClassTemplateSpecs to "flatten" the data schemas provided to a data binding generator and make it easier to write the generator.Pegasus provides
ClassTemplateSpecs to "flatten" the data schemas provided to a data binding generator and make it easier to write the generator.These Definitions classes wrap
ClassTemplateSpecs so that we can use idiomatic scala types in our templates. They also add language specific escaping and convenience functions specifically for generating data bindings for Scala.This trait is for all Scala classes that wrap ClassTemplateSpec and it's sub-classes, it represents the common properties shared by all pegasus data binding generator utility types.
- trait Deprecatable extends AnyRef
- case class EnumDefinition(spec: EnumTemplateSpec) extends Definition with Product with Serializable
- trait FieldDefault extends AnyRef
- case class FixedDefinition(spec: FixedTemplateSpec) extends Definition with Product with Serializable
- case class MapDefinition(spec: CourierMapTemplateSpec) extends Definition with Product with Serializable
-
trait
MaybeBoxable extends Definition
Convenience trait for primitive types since they sometimes need to be boxed/unboxed.
- case class OptionalFieldDefault(default: Option[AnyRef]) extends FieldDefault with Product with Serializable
- case class PrimitiveDefinition(spec: PrimitiveTemplateSpec) extends Definition with MaybeBoxable with Product with Serializable
- case class RecordDefinition(spec: RecordTemplateSpec) extends Definition with Product with Serializable
-
case class
RecordField(field: Field) extends Deprecatable with Product with Serializable
The field of a record, may be either a field directly defined in the record or an "include" field.
- case class RequiredFieldDefault(default: AnyRef) extends FieldDefault with Product with Serializable
- case class TyperefDefinition(spec: TyperefTemplateSpec) extends Definition with Product with Serializable
-
case class
UnionDefinition(spec: UnionTemplateSpec) extends Definition with Product with Serializable
Union names are inferred from the containing type or typeref.
Union names are inferred from the containing type or typeref.
Note that all unions are defined anonymously, so pegasus makes a best effort to give them a reasonable name.
E.g. A union defined as the type of a field of a record will be named after that field.
- case class UnionMemberDefinition(spec: Member) extends Product with Serializable
Value Members
- object ArrayDefinition extends Serializable
- object Definition
- object MapDefinition extends Serializable
- object TyperefDefinition extends Serializable