Class CustomAnnotationBuilder
java.lang.Object
org.tasktide.core.model.builders.ModelBuilder<CustomAnnotation>
org.tasktide.core.model.builders.CustomAnnotationBuilder
CustomAnnotation builder-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build annotationstatic CustomAnnotationfromJsonString(String json) Staatic building from command-line input as JSON, where an Id would not already be present, as string is converted to MapAdds annotation fieldAdds Id field
-
Constructor Details
-
CustomAnnotationBuilder
public CustomAnnotationBuilder()Construct
-
-
Method Details
-
withId
Adds Id field- Parameters:
id-- Returns:
CustomAnnotationBuilder
-
withAnno
Adds annotation field- Parameters:
anno-- Returns:
CustomAnnotationBuilder
-
build
Build annotation- Specified by:
buildin classModelBuilder<CustomAnnotation>- Returns:
CustomAnnotation
-
fromJsonString
Staatic building from command-line input as JSON, where an Id would not already be present, as string is converted to Map- Parameters:
json-- Returns:
CustomAnnotation
-