Class GovernmentType

java.lang.Object
org.episteme.core.util.ExtensibleEnum
org.episteme.social.politics.GovernmentType
All Implemented Interfaces:
Serializable, Comparable<ExtensibleEnum>

public class GovernmentType extends ExtensibleEnum
Represents a type of government system (e.g. Republic, Monarchy). Uses EnumRegistry pattern to allow dynamic extension.
Since:
1.1
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

  • Constructor Details

    • GovernmentType

      public GovernmentType(String name, String displayName)
      Creates a new GovernmentType. Use of(String) or register(String, String) mainly.
      Parameters:
      name - Unique internal name (enum name)
      displayName - Human readable description
  • Method Details

    • getDisplayName

      public String getDisplayName()
    • 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
    • of

      public static GovernmentType of(String displayName)
      Helper to get or create a type. Transforms "Semi-presidential republic" -> "SEMI_PRESIDENTIAL_REPUBLIC" (normalized) or purely dynamic name.