Class ConnectorField
java.lang.Object
de.iip_ecosphere.platform.connectors.ConnectorField
Descriptive information about a connector field.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds a connector field. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aConnectorField.ConnectorFieldBuilder.getName()Returns the name of the field.Returns the native id as used in/by the protocol.Returns the native type as used in/by the protocol.getPath()Returns the access path to the field.static voidprintFields(List<ConnectorField> fields, PrintStream out) Helper function to print connector fields with a default formatter toout.static voidprintFields(List<ConnectorField> fields, Function<ConnectorField, String> formatter, PrintStream out) Helper function to print connector fields with a default formatter toout.
-
Field Details
-
name
-
path
-
nativeType
-
nativeId
-
-
Constructor Details
-
ConnectorField
private ConnectorField()Creates a connector field instance.
-
-
Method Details
-
builder
Returns aConnectorField.ConnectorFieldBuilder.- Parameters:
name- the name of the field- Returns:
- the builder
-
getName
Returns the name of the field.- Returns:
- the name
-
getPath
Returns the access path to the field.- Returns:
- the path, by default the same as
getName()
-
getNativeType
Returns the native type as used in/by the protocol.- Returns:
- the nativeType, may be null or empty if unknown/unused
-
getNativeId
Returns the native id as used in/by the protocol.- Returns:
- the nativeId, may be null or empty if unknown/unused
-
printFields
Helper function to print connector fields with a default formatter toout.- Parameters:
fields- the fields to printout- 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 toout.- Parameters:
fields- the fields to printformatter- the field output formatterout- the output stream to print to
-