Enum Class AgentCurationKind
- All Implemented Interfaces:
Serializable, Comparable<AgentCurationKind>, Constable
AgentProposal rows: which kind of agent activity a
row records — a forward-looking proposal (pre-curation suggestion), an audit
(a post-hoc review of an existing dataset, reporting findings to act on), or
an evaluation (a scored assessment of curation that already exists).
Forward-compat naming: the enum is AgentCurationKind even though
the entity remains AgentProposal for now — the step-5 rename to
AgentCuration will not need to re-touch this enum.
The Hibernate persistence (see AgentProposal.hbm.xml) stores the
enum Enum.name() verbatim (uppercase) via EnumType useNamed=true,
matching the repo's convention for VARCHAR-mapped enums (Ticket, etc.). The
getDbValue() / fromDbValue(String) helpers expose a
lowercase form for DTOs / external surfaces where lowercase
"proposal" / "audit" is preferred.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentCurationKindParse the lowercase external form back into the enum.static AgentCurationKindReturns the enum constant of this class with the specified name.static AgentCurationKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROPOSAL
-
AUDIT
-
EVALUATION
A scored assessment of curation that already exists — an agent grading annotations against a reference, or comparing two runs, rather than suggesting a change (PROPOSAL) or reporting defects to act on (AUDIT).Distinct from
AUDITin what the payload is for: an audit names findings a curator dispositions one by one, and an evaluation reports a measurement over a run. An evaluation set carries no per-finding dispositions, which is why the two cannot share one value without the review panel having to guess which it is holding.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDbValue
- Returns:
- the lowercase external form, for use in JSON DTOs / API surfaces.
-
fromDbValue
Parse the lowercase external form back into the enum. Accepts either case (delegates tovalueOf(String)after uppercasing).
-