value property
Custom value to use when serializing this enum constant.
This value replaces the default enum constant name during RDF serialization. The specific usage depends on the parent enum's annotation:
- For
@RdfLiteralenums: becomes the literal string value - For
@RdfIrienums: replaces the{value}placeholder in the IRI template
Requirements:
- Must not be null, empty, or contain only whitespace
- Must be unique within the same enum
- For IRI enums, should be a valid IRI path segment
Examples:
@RdfEnumValue('H') // Short code for hardcover
hardcover,
@RdfEnumValue('active-status') // Kebab-case for IRI
active,
@RdfEnumValue('NewCondition') // PascalCase matching vocabulary
brandNew,
Implementation
final String value;