org.jscience.law
Class Treaty

java.lang.Object
  extended by org.jscience.law.Treaty
All Implemented Interfaces:
Named

public class Treaty
extends java.lang.Object
implements Named

A class representing a Set of agreements between two or more parties.


Constructor Summary
Treaty(java.lang.String name, java.util.Date date, java.util.Set groups, java.util.Vector articles)
          Creates a new Treaty object.
 
Method Summary
 void addArticle(Article article)
          DOCUMENT ME!
 void addGroup(HumanGroup group)
          DOCUMENT ME!
 java.util.Vector getArticles()
          DOCUMENT ME!
 java.util.Date getDate()
          DOCUMENT ME!
 java.util.Set getGroups()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 void removeArticle(Article article)
          DOCUMENT ME!
 void removeGroup(HumanGroup group)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Treaty

public Treaty(java.lang.String name,
              java.util.Date date,
              java.util.Set groups,
              java.util.Vector articles)
Creates a new Treaty object.

Parameters:
name - DOCUMENT ME!
date - DOCUMENT ME!
groups - DOCUMENT ME!
articles - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

getDate

public java.util.Date getDate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getGroups

public java.util.Set getGroups()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addGroup

public void addGroup(HumanGroup group)
DOCUMENT ME!

Parameters:
group - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

removeGroup

public void removeGroup(HumanGroup group)
DOCUMENT ME!

Parameters:
group - DOCUMENT ME!

getArticles

public java.util.Vector getArticles()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addArticle

public void addArticle(Article article)
DOCUMENT ME!

Parameters:
article - DOCUMENT ME!

removeArticle

public void removeArticle(Article article)
DOCUMENT ME!

Parameters:
article - DOCUMENT ME!