org.dartra.standard
Class StandardDartsSet

java.lang.Object
  extended byorg.dartra.standard.PersistentObject
      extended byorg.dartra.standard.StandardDartsSet
All Implemented Interfaces:
DartsSet, Persistent

public class StandardDartsSet
extends PersistentObject
implements DartsSet

Standard implementation of a darts set.

Author:
Erwin Vervaet, Maarten De Cock

Constructor Summary
StandardDartsSet(java.lang.String spec, java.lang.String name, java.lang.String brand, int weight)
           
 
Method Summary
 java.lang.String getBrand()
          Returns the darts set brand name.
 java.lang.String getName()
          Return the name of the darts set.
 java.lang.String getSpec()
          Get a product specification for this darts set.
 int getWeight()
          Returns the weight of a dart of this darts set in grams.
 java.lang.String toString()
           
 
Methods inherited from class org.dartra.standard.PersistentObject
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.dartra.framework.Persistent
getId, setId
 

Constructor Detail

StandardDartsSet

public StandardDartsSet(java.lang.String spec,
                        java.lang.String name,
                        java.lang.String brand,
                        int weight)
Method Detail

getSpec

public java.lang.String getSpec()
Description copied from interface: DartsSet

Get a product specification for this darts set. This could be a manufacturer code, a model year, a grip type, or anything else to uniquely identify the darts set.

Specified by:
getSpec in interface DartsSet

getName

public java.lang.String getName()
Description copied from interface: DartsSet

Return the name of the darts set.

Specified by:
getName in interface DartsSet

getBrand

public java.lang.String getBrand()
Description copied from interface: DartsSet

Returns the darts set brand name.

Specified by:
getBrand in interface DartsSet

getWeight

public int getWeight()
Description copied from interface: DartsSet

Returns the weight of a dart of this darts set in grams.

Specified by:
getWeight in interface DartsSet

toString

public java.lang.String toString()