org.jscience.law
Class License

java.lang.Object
  extended by org.jscience.law.License
All Implemented Interfaces:
Property, Identified

public class License
extends java.lang.Object
implements Property, Identified

A class representing a piece of paper by an authority that gives someone the right to do something. This includes birth certificate, driving licence, ID, diplomas...


Constructor Summary
License(Human owner, Organization authority, Identification identification, java.lang.String right)
          Creates a new License object.
License(Person person, Organization authority, Identification identification, java.util.Vector rights)
          Creates a new License object.
 
Method Summary
 Organization getAuthority()
          DOCUMENT ME!
 Identification getIdentification()
          DOCUMENT ME!
 java.util.Set getOwners()
          DOCUMENT ME!
 java.util.Vector getRights()
          DOCUMENT ME!
 Amount<Money> getValue()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

License

public License(Human owner,
               Organization authority,
               Identification identification,
               java.lang.String right)
Creates a new License object.

Parameters:
owner - DOCUMENT ME!
authority - DOCUMENT ME!
identification - DOCUMENT ME!
right - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

License

public License(Person person,
               Organization authority,
               Identification identification,
               java.util.Vector rights)
Creates a new License object.

Parameters:
person - DOCUMENT ME!
authority - DOCUMENT ME!
identification - DOCUMENT ME!
rights - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getOwners

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

Specified by:
getOwners in interface Property
Returns:
DOCUMENT ME!

getAuthority

public Organization getAuthority()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getIdentification

public Identification getIdentification()
DOCUMENT ME!

Specified by:
getIdentification in interface Identified
Returns:
DOCUMENT ME!

getRights

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

Returns:
DOCUMENT ME!

getValue

public Amount<Money> getValue()
DOCUMENT ME!

Specified by:
getValue in interface Property
Returns:
DOCUMENT ME!