Enum Class TargetSelector

java.lang.Object
java.lang.Enum<TargetSelector>
io.goobi.viewer.model.crowdsourcing.questions.TargetSelector
All Implemented Interfaces:
Serializable, Comparable<TargetSelector>, Constable

public enum TargetSelector extends Enum<TargetSelector>
The TargetSelector determines which part of a source (usually a iiif manifest or other collection of iiif canvases) is the target for an annotation generated by a Question
Author:
florian
  • Enum Constant Details

    • WHOLE_SOURCE

      public static final TargetSelector WHOLE_SOURCE
      Target is the entire source, usually a iiif manifest
    • WHOLE_PAGE

      public static final TargetSelector WHOLE_PAGE
      Target is the canvas of the current page
    • RECTANGLE

      public static final TargetSelector RECTANGLE
      Target is a rectangular area within the current canvas, described by a FragmentSelector
  • Method Details

    • values

      public static TargetSelector[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TargetSelector valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null