Class ConnectorField.ConnectorFieldBuilder

java.lang.Object
de.iip_ecosphere.platform.connectors.ConnectorField.ConnectorFieldBuilder
All Implemented Interfaces:
de.iip_ecosphere.platform.support.Builder<ConnectorField>
Enclosing class:
ConnectorField

public static class ConnectorField.ConnectorFieldBuilder extends Object implements de.iip_ecosphere.platform.support.Builder<ConnectorField>
Builds a connector field.
Author:
Holger Eichelberger, SSE
  • Field Details

    • name

      private String name
    • path

      private String path
    • nativeType

      private String nativeType
    • nativeId

      private String nativeId
  • Constructor Details

    • ConnectorFieldBuilder

      public ConnectorFieldBuilder(String name)
      Creates a field builder.
      Parameters:
      name - the name of the field, by default also used as path
  • Method Details

    • setPath

      Sets the (hierarchical) path to the field. By default, the path is just the same as the name.
      Parameters:
      path - the path
      Returns:
      this for chaining
    • setNativeType

      public ConnectorField.ConnectorFieldBuilder setNativeType(String nativeType)
      Sets the native type as used in/by the protocol.
      Parameters:
      nativeType - the native type
      Returns:
      this for chaining
    • setNativeTypeIfNotNull

      public ConnectorField.ConnectorFieldBuilder setNativeTypeIfNotNull(String nativeType)
      Sets the native type as used in/by the protocol if nativeType is not null.
      Parameters:
      nativeType - the native type
      Returns:
      this for chaining
    • setNativeId

      public ConnectorField.ConnectorFieldBuilder setNativeId(String nativeId)
      Sets the native id as used in/by the protocol.
      Parameters:
      nativeId - the native id
      Returns:
      this for chaining
    • build

      public ConnectorField build()
      Specified by:
      build in interface de.iip_ecosphere.platform.support.Builder<ConnectorField>