net.sourceforge.groboutils.pmti.v1.defimpl
Class DefaultIssueState

java.lang.Object
  extended bynet.sourceforge.groboutils.pmti.v1.defimpl.DefaultIssueState
All Implemented Interfaces:
IIssueState
Direct Known Subclasses:
DefaultEditableIssueState

public class DefaultIssueState
extends java.lang.Object
implements IIssueState

Describes the state of an Issue. Issue states may have additional information associated with them, and as such uses the Attribute methodology in the same way an Issue does. All implementations of IIssueState must be immutable, unless they are also instances of IEditableIssueState.

Since:
July 12, 2002
Version:
$Date: 2003/02/10 22:51:58 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
DefaultIssueState(java.lang.String n, java.lang.String d, boolean o, IAttributeSet s)
           
 
Method Summary
 IAttributeSet getAttributes()
          Returns a list of all attributes associated with this state.
 java.lang.String getDescription()
          Retrieves a long, human-readable, description of the state.
 java.lang.String getName()
          Returns the short name of the state.
 boolean isClosed()
          A broad category for the state - it means that the issue has been resolved, and the code is no longer open for changes based on this issue.
 boolean isOpen()
          A broad category for the state - it means that the issue has not been resolved yet, and the code is still open for changes based on this issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueState

public DefaultIssueState(java.lang.String n,
                         java.lang.String d,
                         boolean o,
                         IAttributeSet s)
Method Detail

getName

public java.lang.String getName()
Returns the short name of the state.

Specified by:
getName in interface IIssueState
Returns:
the short readable name of the state.

getDescription

public java.lang.String getDescription()
Retrieves a long, human-readable, description of the state.

Specified by:
getDescription in interface IIssueState
Returns:
the state's description.

isOpen

public boolean isOpen()
A broad category for the state - it means that the issue has not been resolved yet, and the code is still open for changes based on this issue.

isOpen() must always return the opposite of isClosed(); that is, the following code:

      isOpen() == !isClosed()
 
must always evaluate to true.

Specified by:
isOpen in interface IIssueState

isClosed

public boolean isClosed()
A broad category for the state - it means that the issue has been resolved, and the code is no longer open for changes based on this issue.

isClosed() must always return the opposite of isOpen(); that is, the following code:

      isOpen() == !isClosed()
 
must always evaluate to true.

Specified by:
isClosed in interface IIssueState

getAttributes

public IAttributeSet getAttributes()
Returns a list of all attributes associated with this state. All states of a particular type should have the same set of issues. If the problem tracker does not have attributes associated with an issue state, then this must still return a non-null, but the set will be empty.

Specified by:
getAttributes in interface IIssueState
Returns:
the set of tracker-specific and issue type-specific attributes and values associated with this issue. Can never return null.


Copyright © 2001-2003 by The GroboUtils Project