Class TemplateVariable
java.lang.Object
io.aiven.commons.kafka.connector.common.templating.TemplateVariable
The template variable definition.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder for TemplateVariable instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TemplateVariableThe standard key definitionstatic final TemplateVariablethe standard partition definitionstatic final TemplateVariablethe standard start offset definitionstatic final TemplateVariableThe standard timestamp definitionstatic final TemplateVariablethe standard topic definition -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateVariable.BuilderGets the builder for TemplateVariables.Gets the description of this TemplateVariable.example()Generates an example of this variable.getName()Gets the name of the variable.Gets the parameter descriptor for this variable.booleanDetermines if there is a parameter descriptor.voidValidate the parameter against the template variable.
-
Field Details
-
KEY
The standard key definition -
TOPIC
the standard topic definition -
PARTITION
the standard partition definition -
START_OFFSET
the standard start offset definition -
TIMESTAMP
The standard timestamp definition
-
-
Method Details
-
description
Gets the description of this TemplateVariable.- Returns:
- the description of this template variable.
-
example
Generates an example of this variable.- Returns:
- the example text for this variable.
-
builder
Gets the builder for TemplateVariables.- Parameters:
name- name of the variable being built.- Returns:
- the Builder.
-
getName
Gets the name of the variable.- Returns:
- the name of the variable.
-
hasParameter
public boolean hasParameter()Determines if there is a parameter descriptor.- Returns:
trueif there is a descriptor.
-
getParameterDescriptor
Gets the parameter descriptor for this variable.- Returns:
- the parameter descriptor.
-
validate
Validate the parameter against the template variable.- Parameters:
errStr- the error string for this template.template- the template the parameter was parsed from.parameter- The parsed parameter
-