ca.aura.artefacts
Class AbstractArtefact

java.lang.Object
  |
  +--ca.aura.artefacts.AbstractArtefact
All Implemented Interfaces:
Artefact
Direct Known Subclasses:
Doc, JavaDoc, JunitReport, SourceCode, Webpage

public class AbstractArtefact
extends java.lang.Object
implements Artefact

Author:
Andrew

Constructor Summary
AbstractArtefact(java.lang.String id)
          set the id of the artefact
 
Method Summary
 void addAura(Aura aura)
          add a segment to the content
 boolean equals(java.lang.Object obj)
          check for equality
 java.util.Iterator getAura()
          get the segments of an artefact...
 Description getDescription()
          get a description of the artefact
 java.io.File getFile()
          get the location of the artefact as a URL
 java.lang.String getId()
          get the id of the artefact
 java.lang.String getName()
          get the name of the artefact
 int numberOfAura()
          how many aura elements does the artefact have?
protected  AbstractAura self()
          get the artefact as a aura (to access the name and descr
 void setDescription(Description descr)
          set the description
 void setLocation(Location location)
          set the location of the artefact
 void setName(java.lang.String name)
          set the name
 java.lang.String toString()
          the object as a string
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractArtefact

public AbstractArtefact(java.lang.String id)
set the id of the artefact

Method Detail

getId

public java.lang.String getId()
Description copied from interface: Artefact
get the id of the artefact

Specified by:
getId in interface Artefact
See Also:
ca.aura.artefact.Artefact#getId()

getName

public java.lang.String getName()
Description copied from interface: Artefact
get the name of the artefact

Specified by:
getName in interface Artefact
See Also:
Artefact.getName()

getDescription

public Description getDescription()
Description copied from interface: Artefact
get a description of the artefact

Specified by:
getDescription in interface Artefact
See Also:
Artefact.getDescription()

getFile

public java.io.File getFile()
Description copied from interface: Artefact
get the location of the artefact as a URL

Specified by:
getFile in interface Artefact
See Also:
ca.aura.artefact.Artefact#getLocation()

getAura

public java.util.Iterator getAura()
Description copied from interface: Artefact
get the segments of an artefact... this includes the artefact's aura itself

Specified by:
getAura in interface Artefact
See Also:
ca.aura.artefact.Artefact#getAura()

numberOfAura

public int numberOfAura()
Description copied from interface: Artefact
how many aura elements does the artefact have?

Specified by:
numberOfAura in interface Artefact
See Also:
ca.aura.artefact.Artefact#numberOfAura()

setName

public void setName(java.lang.String name)
set the name


setDescription

public void setDescription(Description descr)
set the description


equals

public boolean equals(java.lang.Object obj)
check for equality

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
the object as a string

Overrides:
toString in class java.lang.Object

self

protected AbstractAura self()
get the artefact as a aura (to access the name and descr


setLocation

public void setLocation(Location location)
set the location of the artefact


addAura

public void addAura(Aura aura)
add a segment to the content



Copyright © 2002 University of Ottawa. All Rights Reserved.