Class Steward.StewardBuilder<C extends Steward,B extends Steward.StewardBuilder<C,B>>

java.lang.Object
gov.niem.tools.api.db.base.BaseEntity.BaseEntityBuilder<C,B>
gov.niem.tools.api.db.steward.Steward.StewardBuilder<C,B>
Enclosing class:
Steward

public abstract static class Steward.StewardBuilder<C extends Steward,B extends Steward.StewardBuilder<C,B>> extends BaseEntity.BaseEntityBuilder<C,B>
  • Constructor Details

    • StewardBuilder

      public StewardBuilder()
  • Method Details

    • stewardKey

      public B stewardKey(String stewardKey)
      A human-readable and url-friendly steward identifier generated from the shortName field.
      Returns:
      this.
    • shortName

      public B shortName(String shortName)
      A short name or acronym used to identify a steward. This could be the name of an organization or unit, a program name, or other kind of authoritative source.
      Returns:
      this.
    • fullName

      public B fullName(String fullName)
      A name of an organization.
      Returns:
      this.
    • category

      public B category(Steward.Category category)
      A kind of steward.
      Returns:
      this.
    • description

      public B description(String description)
      A description of an organization.
      Returns:
      this.
    • contactName

      public B contactName(String contactName)
      A name of the person to be contacted.
      Returns:
      this.
    • website

      public B website(String website)
      A website address by which a person or organization may be contacted.
      Returns:
      this.
    • email

      public B email(String email)
      An electronic mailing address by which a person or organization may be contacted.
      Returns:
      this.
    • phone

      public B phone(String phone)
      A complete telephone number.
      Returns:
      this.
    • address

      public B address(String address)
      A complete address.
      Returns:
      this.
    • country

      public B country(CountryAlpha3CodeType country)
      A country, territory, dependency, or other such geopolitical subdivision of a location.
      Returns:
      this.
    • unit

      public B unit(String unit)
      A name of a high-level division of an organization.
      Returns:
      this.
    • subunit

      public B subunit(String subunit)
      A name of a subdivision of an organization.
      Returns:
      this.
    • models

      public B models(Set<Model> models)
      A set of models which belong to the steward.
      Returns:
      this.
    • self

      protected abstract B self()
      Specified by:
      self in class BaseEntity.BaseEntityBuilder<C extends Steward,B extends Steward.StewardBuilder<C,B>>
    • build

      public abstract C build()
      Specified by:
      build in class BaseEntity.BaseEntityBuilder<C extends Steward,B extends Steward.StewardBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class BaseEntity.BaseEntityBuilder<C extends Steward,B extends Steward.StewardBuilder<C,B>>