Package org.vast.swe

Class SWEBuilders.SweIdentifiableBuilder<B extends SWEBuilders.SweIdentifiableBuilder<B,T>,T extends AbstractSWEIdentifiable>

java.lang.Object
org.vast.util.BaseBuilder<T>
org.vast.swe.SWEBuilders.SweIdentifiableBuilder<B,T>
Direct Known Subclasses:
SMLBuilders.BaseObsPropBuilder, SMLMetadataBuilders.MetadataListBuilder, SWEBuilders.DataComponentBuilder
Enclosing class:
SWEBuilders

public abstract static class SWEBuilders.SweIdentifiableBuilder<B extends SWEBuilders.SweIdentifiableBuilder<B,T>,T extends AbstractSWEIdentifiable> extends BaseBuilder<T>
  • Constructor Details

    • SweIdentifiableBuilder

      protected SweIdentifiableBuilder()
  • Method Details

    • copyFrom

      public B copyFrom(AbstractSWEIdentifiable base)
      Copy all info from another component
      Parameters:
      base - Component to copy from
      Returns:
      This builder for chaining
    • id

      public B id(String id)
      Sets the component ID
      Parameters:
      id -
      Returns:
      This builder for chaining
    • label

      public B label(String label)
      Sets the component human-readable label
      Parameters:
      label -
      Returns:
      This builder for chaining
    • description

      public B description(String description)
      Sets the component human-readable description
      Parameters:
      description -
      Returns:
      This builder for chaining
    • visitor

      public B visitor(Consumer<T> visitor)
      Adds a visitor that will be called with the component after it is built
      Parameters:
      visitor - Component visitor
      Returns:
      This builder for chaining
    • build

      public T build()
      Description copied from class: BaseBuilder
      Builds the object configured by this builder. This can only be called once.
      Overrides:
      build in class BaseBuilder<T extends AbstractSWEIdentifiable>
      Returns:
      The new object instance.