Class Lawyer

All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>

public class Lawyer extends Worker
The Lawyer class represents a legal professional whose primary role is to provide legal advice and represent individuals or organizations in legal matters.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Lawyer

      public Lawyer(Individual individual, LawSuitSituation lawSuitSituation, String function, Administration administration)
      Creates a new Lawyer object.
      Parameters:
      individual - the biological individual who is a lawyer
      lawSuitSituation - the legal situation or context
      function - the specific role or title (e.g., "Counsel", "Advocate")
      administration - the administrative body the lawyer belongs to
      Throws:
      IllegalArgumentException - if individual, lawSuitSituation, or administration is null
    • Lawyer

      public Lawyer(Individual individual, LawSuitSituation lawSuitSituation, Administration administration)
      Creates a new Lawyer object with the default function "Lawyer".
      Parameters:
      individual - the biological individual who is a lawyer
      lawSuitSituation - the legal situation or context
      administration - the administrative body the lawyer belongs to
      Throws:
      IllegalArgumentException - if individual, lawSuitSituation, or administration is null
  • Method Details

    • getClients

      public Set<Individual> getClients()
      Returns the set of clients currently represented by this lawyer.
      Returns:
      the set of clients
    • setClients

      public void setClients(Set<Individual> clients)
      Sets the set of clients for this lawyer.
      Parameters:
      clients - the new set of clients
      Throws:
      IllegalArgumentException - if the set is null or contains non-Individual entities
    • addClient

      public void addClient(Individual individual)
      Adds a new client to the lawyer's representation.
      Parameters:
      individual - the individual to add as a client
      Throws:
      IllegalArgumentException - if individual is null
    • removeClient

      public void removeClient(Individual individual)
      Removes a client from the lawyer's representation.
      Parameters:
      individual - the individual to remove