org.fopps.model
Class Artefact

java.lang.Object
  |
  +--org.fopps.model.AbstractItem
        |
        +--org.fopps.model.Artefact
Direct Known Subclasses:
FileAttachment

public abstract class Artefact
extends AbstractItem

Base class for all (programming) artefacts, such as code files, documentation, test reports, etc.


Field Summary
 
Fields inherited from class org.fopps.model.AbstractItem
ADDED_EVENT, CHANGE_EVENT, name, REMOVED_EVENT
 
Constructor Summary
Artefact(java.lang.String pName)
          Constructor for Artefact with default category
Artefact(java.lang.String pName, java.lang.String pCategory)
          Constructor for Artefact.
 
Method Summary
 ArtefactCategory getCategory()
          Returns the category of the artefact
 java.lang.String getCategoryName()
          Returns the name of the category
 boolean isValid()
          Checks, if artefact is still valid.
 void setCategory(ArtefactCategory pCategory)
          Changes the category of the artefact
 
Methods inherited from class org.fopps.model.AbstractItem
addIncoming, addListener, addOutgoing, commitGhostRelations, containsType, copyAttributes, delete, filterElements, fireItemAdded, fireItemChanged, fireItemRemoved, getConstraints, getDescription, getIncoming, getIncomingConstraints, getListeners, getName, getOutgoing, getOutgoingConstraints, getRelationTo, hasConstraints, isBlockEvents, isConnectedWith, notifyListeners, removeAllConstraints, removeAllIncoming, removeAllListener, removeAllOutgoing, removeAllRelations, removeGhostRelations, removeIncoming, removeListener, removeOutgoing, removeRelationTo, setBlockEvents, setDescription, setIncoming, setName, setOutgoing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Artefact

public Artefact(java.lang.String pName)
Constructor for Artefact with default category


Artefact

public Artefact(java.lang.String pName,
                java.lang.String pCategory)
Constructor for Artefact.

Parameters:
pName - Name of artefact
pCategory - Category of artefact
Method Detail

setCategory

public void setCategory(ArtefactCategory pCategory)
Changes the category of the artefact


getCategoryName

public java.lang.String getCategoryName()
Returns the name of the category


getCategory

public ArtefactCategory getCategory()
Returns the category of the artefact


isValid

public boolean isValid()
Checks, if artefact is still valid. The default implementation returns always true.

Returns:
true, if artefact is valid, otherwise false


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.