Class AnnotationChoices

java.lang.Object
annotation.handler.AnnotationChoices
All Implemented Interfaces:
Serializable, ManagedParameters

public class AnnotationChoices extends Object implements Serializable, ManagedParameters
Class to handle choice of annotator and any other associated options. This can be used to control which annotation(s) is/are added to data and options controlling how the annotations work.
Author:
Doug Gillespie
See Also:
  • Field Details

  • Constructor Details

    • AnnotationChoices

      public AnnotationChoices()
  • Method Details

    • setAnnotionOption

      public void setAnnotionOption(String annotationName, AnnotationOptions annotationOptions, boolean setSelected)
      Set the options for an annotation type
      Parameters:
      annotationName - annotation type name
      annotationOptions - options
      setSelected - set the selected option true or false.
    • setAnnotionOption

      public void setAnnotionOption(String annotationName, AnnotationOptions annotationOption)
      Set the options for an annotation type
      Parameters:
      annotationName - annotation type name
      annotationOptions - options
    • getAnnotationOptions

      public AnnotationOptions getAnnotationOptions(String annotationName)
      Get an annotation options, or null if nothin in list.
      Parameters:
      annotationName - annotation type name
      Returns:
      annotation options.
    • isAllowMany

      public boolean isAllowMany()
      Returns:
      the allowMany
    • setAllowMany

      public void setAllowMany(boolean allowMany)
      Parameters:
      allowMany - the allowMany to set
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.