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.
- Alphabetic
- By Inheritance
- RecordField
- Serializable
- Serializable
- Product
- Equals
- Deprecatable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RecordField(field: Field)
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
-
def
applyIfOption(ref: String)(f: (String) ⇒ Txt): Txt
If this field is optional, apply the expression in a foreach body to the ref, else apply it directly to the ref.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
customInfo: Option[CustomInfoDefinition]
Present only if the type of a field is a custom type.
-
def
dataClass: Definition
The pegasus data type of the field.
The pegasus data type of the field.
For the put and obtain methods in RecordTemplate (be it direct, wrapped or customType), this is the type that RecordTemplate expects for the "dataClass".
- def default: Option[FieldDefault]
-
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
-
def
enclosingClass: Option[Definition]
If the field type is enclosed in another type, the enclosing class.
If the field type is enclosed in another type, the enclosing class.
When generating classes, if the enclosing type is the current type being generated, then the type of this field should be generated as a subclass.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
explicit: Boolean
Custom property supported by Courier.
Custom property supported by Courier. If "explicit" is true for an optional value, it will not be defaulted to None in generated data bindings.
This is useful in Scala, because Scala supports default values on parameters, allowing defaults to be provided by the generator to record type "constructors" (apply methods really).
- val field: Field
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isDeprecated: Boolean
- Definition Classes
- Deprecatable
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOptional: Boolean
-
def
name: String
Escaped name for use in scala source.
-
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()
- def omit: Boolean
-
def
pegasusName: String
Unescaped name.
-
def
properties: Map[String, AnyRef]
- Definition Classes
- RecordField → Deprecatable
- def scalaDoc: Option[String]
- def scalaProperties: Option[DataMap]
-
def
scalaType: String
Fields are aware of optionality, so the scalaType of a field type can be wrapped with Option[] if it is an optional field.
-
def
scalaTypeFullname: String
Fields are aware of optionality, so the fully qualified name of a field type can be wrapped with Option[] if it is an optional field.
- def schemaField: Field
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
typ: Definition
The type definition of the field, may be any pegasus type (record, primitive, enum, union, ...).
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
wrapAndMapIfOption(ref: Txt)(f: (Txt) ⇒ Txt): Txt
If this field is optional, wrap the provided ref expression with Option(ref) and then map the option with the provided
ffunction. -
def
wrapIfOption(expr: Txt): Txt
If this field is optional, wrap the provided expression with Option(expr), else return the expression.