org.jscience.arts
Class Collection

java.lang.Object
  extended by org.jscience.arts.Collection
All Implemented Interfaces:
Named

public class Collection
extends java.lang.Object
implements Named

A class representing a group of artworks (usually located at one and only place). For example, a museum is a collection.


Constructor Summary
Collection()
          Creates a new Collection object.
Collection(java.lang.String name)
          Creates a new Collection object.
 
Method Summary
 void addArtwork(Artwork artwork)
          DOCUMENT ME!
 boolean contains(Artwork artwork)
          DOCUMENT ME!
 Artwork contains(Identification identification)
          DOCUMENT ME!
 boolean equals(java.lang.Object o)
          DOCUMENT ME!
 java.util.Set getArtworks()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 void removeArtwork(Artwork artwork)
          DOCUMENT ME!
 void setName(java.lang.String name)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collection

public Collection()
Creates a new Collection object.


Collection

public Collection(java.lang.String name)
Creates a new Collection object.

Parameters:
name - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!
Method Detail

getName

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

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

setName

public void setName(java.lang.String name)
DOCUMENT ME!

Parameters:
name - DOCUMENT ME!

addArtwork

public void addArtwork(Artwork artwork)
DOCUMENT ME!

Parameters:
artwork - DOCUMENT ME!

removeArtwork

public void removeArtwork(Artwork artwork)
DOCUMENT ME!

Parameters:
artwork - DOCUMENT ME!

contains

public boolean contains(Artwork artwork)
DOCUMENT ME!

Parameters:
artwork - DOCUMENT ME!
Returns:
DOCUMENT ME!

contains

public Artwork contains(Identification identification)
DOCUMENT ME!

Parameters:
identification - DOCUMENT ME!
Returns:
DOCUMENT ME!

getArtworks

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

Returns:
DOCUMENT ME!

equals

public boolean equals(java.lang.Object o)
DOCUMENT ME!

Overrides:
equals in class java.lang.Object
Parameters:
o - DOCUMENT ME!
Returns:
DOCUMENT ME!