com.tractrac.clientmodule
Class Competitor

java.lang.Object
  extended by com.tractrac.clientmodule.details.Attachments
      extended by com.tractrac.clientmodule.details.IdBase
          extended by com.tractrac.clientmodule.details.IdBaseNamed
              extended by com.tractrac.clientmodule.Competitor

public class Competitor
extends IdBaseNamed

Encapsulates data related to a Competitor of an Event.

An instance of this class has a unique id and a name. Furthermore it may be linked to a Competitor Class.

Custom data may be attached to each Competitor instance.

Use Event.addCompetitor(java.util.UUID, java.lang.String, java.lang.String, java.lang.String, com.tractrac.clientmodule.CompetitorClass) to create a new Competitor.

Version:
2.0
Author:
TracTrac
See Also:
Event, CompetitorClass

Method Summary
 CompetitorClass getCompetitorClass()
          Returns the Competitor Class associated with this Competitor, if any.
 java.lang.String getNationality()
          Returns the nationality associated with this competitor
 java.lang.String getShortName()
          Returns the short name associated with this competitor
static AttKey newAttKey()
          Creates a new (static) key to be used to set/get custom data related to competitors.
 
Methods inherited from class com.tractrac.clientmodule.details.IdBaseNamed
getName, toString
 
Methods inherited from class com.tractrac.clientmodule.details.IdBase
equals, getId, hashCode
 
Methods inherited from class com.tractrac.clientmodule.details.Attachments
getAttachment, setAttachment
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newAttKey

public static AttKey newAttKey()
Creates a new (static) key to be used to set/get custom data related to competitors.

Returns:
a new key.

getCompetitorClass

public CompetitorClass getCompetitorClass()
Returns the Competitor Class associated with this Competitor, if any.

Returns:
the Competitor Class associated with this Competitor, may be null.

getShortName

public java.lang.String getShortName()
Returns the short name associated with this competitor

Returns:
the short name associated with this competitor

getNationality

public java.lang.String getNationality()
Returns the nationality associated with this competitor

Returns:
the nationality associated with this competitor