ca.aura.artefacts.usage
Class DefaultUsage

java.lang.Object
  |
  +--ca.aura.artefacts.usage.DefaultUsage
All Implemented Interfaces:
Usage

public class DefaultUsage
extends java.lang.Object
implements Usage

Author:
Andrew

Constructor Summary
DefaultUsage()
          default
DefaultUsage(java.lang.String id)
          default
DefaultUsage(java.lang.String artefactId, java.util.Date date)
          set the comment and the date
DefaultUsage(java.lang.String artefactId, java.util.Date date, java.lang.String comment)
          set the comment and the date
DefaultUsage(java.lang.String artefactId, java.lang.String comment)
          set the comment
 
Method Summary
 java.lang.String getArtefactId()
          get the artefact that was used
 java.lang.String getComment()
          get a description of the use
 java.util.Date getDate()
          get the date of use
 java.lang.String getRole()
          get the role of the user
 java.lang.String getTask()
          get the type of usage
 boolean hasBeenUsed()
           
 void setArtefactId(java.lang.String id)
          set the id
 boolean setComment(java.lang.String comment)
          set the comment
 void setDate(java.lang.String date)
           
 void setRole(java.lang.String role)
          set the role
 void setTask(java.lang.String task)
          set the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUsage

public DefaultUsage()
default


DefaultUsage

public DefaultUsage(java.lang.String id)
default


DefaultUsage

public DefaultUsage(java.lang.String artefactId,
                    java.lang.String comment)
set the comment


DefaultUsage

public DefaultUsage(java.lang.String artefactId,
                    java.util.Date date)
set the comment and the date


DefaultUsage

public DefaultUsage(java.lang.String artefactId,
                    java.util.Date date,
                    java.lang.String comment)
set the comment and the date

Method Detail

getTask

public java.lang.String getTask()
Description copied from interface: Usage
get the type of usage

Specified by:
getTask in interface Usage
See Also:
ca.aura.whiteboard.Utilize#getTask()

getRole

public java.lang.String getRole()
Description copied from interface: Usage
get the role of the user

Specified by:
getRole in interface Usage
See Also:
ca.aura.whiteboard.Utilize#getRole()

getArtefactId

public java.lang.String getArtefactId()
Description copied from interface: Usage
get the artefact that was used

Specified by:
getArtefactId in interface Usage
See Also:
ca.aura.whiteboard.Utilize#getArtefact()

getDate

public java.util.Date getDate()
Description copied from interface: Usage
get the date of use

Specified by:
getDate in interface Usage
See Also:
ca.aura.utilize.Utilize#getDate()

getComment

public java.lang.String getComment()
Description copied from interface: Usage
get a description of the use

Specified by:
getComment in interface Usage
See Also:
ca.aura.utilize.Utilize#getComment()

setTask

public void setTask(java.lang.String task)
set the task


setRole

public void setRole(java.lang.String role)
set the role


setArtefactId

public void setArtefactId(java.lang.String id)
set the id


setDate

public void setDate(java.lang.String date)
See Also:
ca.aura.utilize.Utilize#getDate()

setComment

public boolean setComment(java.lang.String comment)
set the comment


hasBeenUsed

public boolean hasBeenUsed()
See Also:
ca.aura.utilize.Utilize#hasBeenUsed()


Copyright © 2002 University of Ottawa. All Rights Reserved.