Class ConnectorField

java.lang.Object
de.iip_ecosphere.platform.connectors.ConnectorField

public class ConnectorField extends Object
Descriptive information about 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

    • ConnectorField

      private ConnectorField()
      Creates a connector field instance.
  • Method Details

    • builder

      public static ConnectorField.ConnectorFieldBuilder builder(String name)
      Parameters:
      name - the name of the field
      Returns:
      the builder
    • getName

      public String getName()
      Returns the name of the field.
      Returns:
      the name
    • getPath

      public String getPath()
      Returns the access path to the field.
      Returns:
      the path, by default the same as getName()
    • getNativeType

      public String getNativeType()
      Returns the native type as used in/by the protocol.
      Returns:
      the nativeType, may be null or empty if unknown/unused
    • getNativeId

      public String getNativeId()
      Returns the native id as used in/by the protocol.
      Returns:
      the nativeId, may be null or empty if unknown/unused
    • printFields

      public static void printFields(List<ConnectorField> fields, PrintStream out)
      Helper function to print connector fields with a default formatter to out.
      Parameters:
      fields - the fields to print
      out - the output stream to print to
      See Also:
    • printFields

      public static void printFields(List<ConnectorField> fields, Function<ConnectorField,String> formatter, PrintStream out)
      Helper function to print connector fields with a default formatter to out.
      Parameters:
      fields - the fields to print
      formatter - the field output formatter
      out - the output stream to print to