Class Occupation

java.lang.Object
org.episteme.core.util.ExtensibleEnum
org.episteme.social.sociology.Occupation
All Implemented Interfaces:
Serializable, Comparable<ExtensibleEnum>, Named

public final class Occupation extends ExtensibleEnum implements Named
Represents an extensible set of occupation types for individuals. Allows runtime registration of custom professions beyond the built-in defaults.
Since:
1.0
Version:
1.2
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

  • Method Details

    • registerCustom

      public static Occupation registerCustom(String name, String description)
      Registers a custom occupation type.
    • valueOf

      public static Occupation valueOf(String name)
    • values

      public static List<Occupation> values()
    • getName

      public String getName()
      Specified by:
      getName in interface Named
    • getDescription

      public String getDescription()
    • isBuiltIn

      public boolean isBuiltIn()
      Description copied from class: ExtensibleEnum
      Checks if this is a built-in (predefined) value. Default implementation returns true to mimic standard Enum behavior unless explicitly overridden.
      Overrides:
      isBuiltIn in class ExtensibleEnum