Class GovernmentType
java.lang.Object
org.episteme.core.util.ExtensibleEnum
org.episteme.social.politics.GovernmentType
- All Implemented Interfaces:
Serializable, Comparable<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 Summary
FieldsModifier and TypeFieldDescriptionstatic final GovernmentTypestatic final GovernmentTypestatic final GovernmentTypestatic final GovernmentTypestatic final GovernmentTypestatic final GovernmentTypestatic final GovernmentType -
Constructor Summary
ConstructorsConstructorDescriptionGovernmentType(String name, String displayName) Creates a new GovernmentType. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this is a built-in (predefined) value.static GovernmentTypeHelper to get or create a type.Methods inherited from class ExtensibleEnum
compareTo, description, equals, getDeclaringClass, hashCode, name, ordinal, toString
-
Field Details
-
REPUBLIC
-
MONARCHY
-
DEMOCRACY
-
DICTATORSHIP
-
FEDERATION
-
COMMUNIST_STATE
-
THEOCRACY
-
-
Constructor Details
-
GovernmentType
Creates a new GovernmentType. Useof(String)orregister(String, String)mainly.- Parameters:
name- Unique internal name (enum name)displayName- Human readable description
-
-
Method Details
-
getDisplayName
-
isBuiltIn
public boolean isBuiltIn()Description copied from class:ExtensibleEnumChecks if this is a built-in (predefined) value. Default implementation returns true to mimic standard Enum behavior unless explicitly overridden.- Overrides:
isBuiltInin classExtensibleEnum
-
of
Helper to get or create a type. Transforms "Semi-presidential republic" -> "SEMI_PRESIDENTIAL_REPUBLIC" (normalized) or purely dynamic name.
-