Class Statute
java.lang.Object
org.episteme.social.law.Statute
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Represents a legal statute, law, or regulation.
A statute is a formal written enactment of a legislative authority. This class provides a structured representation including hierarchical elements like articles.
Modernized to implement ComprehensiveIdentification and use extensible StatuteType and StatuteStatus.- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatute(String code, String title, StatuteType type, String jurisdiction, int yearEnacted, StatuteStatus status) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArticle(Article article) booleangetCode()getId()Returns the unique identifier of this entity.getTitle()Returns the traits map for this entity.getType()intinthashCode()booleanisActive()voidsetJurisdiction(String jurisdiction) voidsetStatus(StatuteStatus status) voidsetType(StatuteType type) voidsetYearEnacted(int yearEnacted) toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Statute
public Statute(String code, String title, StatuteType type, String jurisdiction, int yearEnacted, StatuteStatus status)
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getCode
-
getTitle
-
getType
-
setType
-
getJurisdiction
-
setJurisdiction
-
getYearEnacted
public int getYearEnacted() -
setYearEnacted
public void setYearEnacted(int yearEnacted) -
getStatus
-
setStatus
-
getArticles
-
addArticle
-
isActive
public boolean isActive() -
equals
-
hashCode
-
toString
-