Package org.vast.swe

Class SWEBuilders.DataComponentBuilder<B extends SWEBuilders.DataComponentBuilder<B,T>,T extends DataComponent>

java.lang.Object
org.vast.util.BaseBuilder<T>
org.vast.swe.SWEBuilders.SweIdentifiableBuilder<B,T>
org.vast.swe.SWEBuilders.DataComponentBuilder<B,T>
Direct Known Subclasses:
SWEBuilders.BaseDataArrayBuilder, SWEBuilders.BaseDataChoiceBuilder, SWEBuilders.BaseDataRecordBuilder, SWEBuilders.BaseGeomBuilder, SWEBuilders.BaseMatrixBuilder, SWEBuilders.BaseVectorBuilder, SWEBuilders.SimpleComponentBuilder
Enclosing class:
SWEBuilders

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

    • DataComponentBuilder

      protected DataComponentBuilder(SWEFactory fac)
  • Method Details

    • from

      public B from(T base)
    • copyFrom

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

      public B name(String name)
      Sets the component name (usually only at the top level)
      Parameters:
      name -
      Returns:
      This builder for chaining
    • definition

      public B definition(String uri)
      Sets the component definition URI
      Parameters:
      uri - URI of definition (usually resolvable to the actual definition of observable or concept)
      Returns:
      This builder for chaining
    • optional

      public B optional(boolean optional)
      Sets the component optional flag
      Parameters:
      optional -
      Returns:
      This builder for chaining
    • updatable

      public B updatable(boolean updatable)
      Sets the component updatable flag
      Parameters:
      updatable -
      Returns:
      This builder for chaining