Package com.io7m.cedarbridge.schema.compiled.internal

# Class CBField

java.lang.Object
com.io7m.cedarbridge.schema.compiled.internal.CBField

All Implemented Interfaces:
  `CBFieldType`

public final class CBField extends Object implements CBFieldType
A field.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CBField(String inName, List<String> inDocumentation, CBTypeExpressionType inType)`
  Construct a field.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<String>`
  `documentation()`
  `CBFieldOwnerType`
  `fieldOwner()`
  `String`
  `name()`
  `void`
  `setOwner(CBFieldOwnerType newOwner)`
  Set the field owner.
  `CBTypeExpressionType`
  `type()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CBField

    public CBField(String inName, List<String> inDocumentation, CBTypeExpressionType inType)
    Construct a field.
    Parameters:
      `inName` - The name
      `inDocumentation` - The documentation
      `inType` - The type

- ## Method Details

  - ### setOwner

    public void setOwner(CBFieldOwnerType newOwner)
    Set the field owner.
    Parameters:
      `newOwner` - The owner

  - ### fieldOwner

    public CBFieldOwnerType fieldOwner()
    Specified by:
      `fieldOwner` in interface `CBFieldType`
    Returns:
      The object that contains this field

  - ### name

    public String name()
    Specified by:
      `name` in interface `CBFieldType`
    Returns:
      The name of the field

  - ### type

    public CBTypeExpressionType type()
    Specified by:
      `type` in interface `CBFieldType`
    Returns:
      The type of the field

  - ### documentation

    public List<String> documentation()
    Specified by:
      `documentation` in interface `CBFieldType`
    Returns:
      Documentation for the field