Class Annotator.Builder

  • Enclosing class:
    Annotator

    public static class Annotator.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String name)
        Instantiates a new builder with required properties.
        Parameters:
        name - the name
    • Method Detail

      • build

        public Annotator build()
        Builds a Annotator.
        Returns:
        the annotator
      • addConfigurations

        public Annotator.Builder addConfigurations​(ConfigurationEntity configurations)
        Adds an configurations to configurations.
        Parameters:
        configurations - the new configurations
        Returns:
        the Annotator builder
      • annotator

        public Annotator.Builder annotator​(Annotator annotator)
        Set the annotator.
        Parameters:
        annotator - the annotator
        Returns:
        the Annotator builder
      • flow

        public Annotator.Builder flow​(Flow flow)
        Set the flow.
        Parameters:
        flow - the flow
        Returns:
        the Annotator builder
      • name

        public Annotator.Builder name​(java.lang.String name)
        Set the name.
        Parameters:
        name - the name
        Returns:
        the Annotator builder
      • description

        public Annotator.Builder description​(java.lang.String description)
        Set the description.
        Parameters:
        description - the description
        Returns:
        the Annotator builder
      • parameters

        public Annotator.Builder parameters​(java.util.Map parameters)
        Set the parameters.
        Parameters:
        parameters - the parameters
        Returns:
        the Annotator builder
      • configurations

        public Annotator.Builder configurations​(java.util.List<ConfigurationEntity> configurations)
        Set the configurations. Existing configurations will be replaced.
        Parameters:
        configurations - the configurations
        Returns:
        the Annotator builder