Class Contract
java.lang.Object
org.episteme.social.law.Contract
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
A class representing a legal contract or agreement between organizations or individuals.
It describes the terms, clauses, and identifiers of the deal.
Modernized to implement ComprehensiveIdentification and support dynamic traits and consistent identity.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHelper constructor for LocalDate.Contract(String title, TimeCoordinate date) Minimal constructor.Contract(Organization firstParty, Organization secondParty, String title, TimeCoordinate date, List<String> contents) Creates a new Contract with parties and contents. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleangetId()Returns the unique identifier of this entity.Returns the traits map for this entity.inthashCode()booleanisValid()voidsetFirstParty(Organization firstParty) voidsetSecondParty(Organization secondParty) voidsetSigningDate(TimeCoordinate signingDate) toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Contract
Minimal constructor. -
Contract
-
Contract
public Contract(Organization firstParty, Organization secondParty, String title, TimeCoordinate date, List<String> contents) Creates a new Contract with parties and contents.
-
-
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
-
getFirstParty
-
setFirstParty
-
getSecondParty
-
setSecondParty
-
getSigningDate
-
setSigningDate
-
getContents
-
addClause
-
addParty
-
getParties
-
isValid
public boolean isValid() -
equals
-
hashCode
-
toString
-