net.sourceforge.groboutils.pmti.v1.itf
Class ITFReadProblemManager

java.lang.Object
  extended bynet.sourceforge.groboutils.pmti.v1.itf.ITFReadProblemManager
All Implemented Interfaces:
IProblemManager

public class ITFReadProblemManager
extends java.lang.Object
implements IProblemManager

A read-only ProblemManager for the ITF section of the PMTI framework. No states are supported.

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

Constructor Summary
ITFReadProblemManager(IParser parsers)
           
ITFReadProblemManager(IParser[] parsers)
           
ITFReadProblemManager(IParserGenerator generator)
           
 
Method Summary
protected  void addTestIssueRecord(ITestIssueRecord tir)
           
protected  boolean attributeMatch(IAttribute checkA, IAttribute verifyA)
           
protected  boolean attributesMatch(IAttributeSet check, IAttributeSet verify)
           
 IEditableIssue createIssue(java.lang.String type)
          Creates a new issue of the given type.
protected  IIssue createITFIssue(java.lang.String id, java.lang.String desc, ITestRecord[] tr)
           
protected  IIssue createNewITFIssue(ITestIssueRecord tir)
           
 IEditableIssue editIssue(IIssue issue)
          Given the real issue, returns the editable version of the issue.
 IIssue getIssueByID(java.lang.String id)
          Returns the issue associated with the given unique issue ID.
 java.lang.String[] getIssueIDs()
          Returns a list of all issue IDs known by the PMT.
 java.lang.String[] getIssueIDsForTemplate(IIssue issue)
          Returns all issue IDs that match the given 'template'.
 IProblemManagerInfo getProblemManagerInfo()
          Returns all meta-data for this problem management tracker.
protected  void loadParser(IParser p)
           
protected  void setupInfo()
           
protected  IIssue updateITFIssue(IIssue orig, ITestIssueRecord addTir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITFReadProblemManager

public ITFReadProblemManager(IParserGenerator generator)

ITFReadProblemManager

public ITFReadProblemManager(IParser parsers)

ITFReadProblemManager

public ITFReadProblemManager(IParser[] parsers)
Method Detail

getIssueIDs

public java.lang.String[] getIssueIDs()
Returns a list of all issue IDs known by the PMT. This may be an extremely expensive operation, depending on the size of the underlying system. This call must never return null.

Specified by:
getIssueIDs in interface IProblemManager

getIssueIDsForTemplate

public java.lang.String[] getIssueIDsForTemplate(IIssue issue)
Returns all issue IDs that match the given 'template'. A template is an issue where all null values are considered 'wildcards', so that a null state, for instance, would match for any state object. May change the template in the future to a different but similar type to allow for regular-expressions.

Specified by:
getIssueIDsForTemplate in interface IProblemManager

getIssueByID

public IIssue getIssueByID(java.lang.String id)
Returns the issue associated with the given unique issue ID. If no such issue exists, then null is returned. Note that the returned element is a non-editable version of the issue.

Specified by:
getIssueByID in interface IProblemManager

editIssue

public IEditableIssue editIssue(IIssue issue)
                         throws ProblemManagerException
Given the real issue, returns the editable version of the issue.

Specified by:
editIssue in interface IProblemManager
Throws:
ProblemManagerException

createIssue

public IEditableIssue createIssue(java.lang.String type)
                           throws ProblemManagerException
Creates a new issue of the given type. If type is null, then a new issue of the default issue type is created and returned.

Specified by:
createIssue in interface IProblemManager
Throws:
ProblemManagerException

getProblemManagerInfo

public IProblemManagerInfo getProblemManagerInfo()
Returns all meta-data for this problem management tracker.

Specified by:
getProblemManagerInfo in interface IProblemManager

loadParser

protected void loadParser(IParser p)

addTestIssueRecord

protected void addTestIssueRecord(ITestIssueRecord tir)

createNewITFIssue

protected IIssue createNewITFIssue(ITestIssueRecord tir)

updateITFIssue

protected IIssue updateITFIssue(IIssue orig,
                                ITestIssueRecord addTir)

createITFIssue

protected IIssue createITFIssue(java.lang.String id,
                                java.lang.String desc,
                                ITestRecord[] tr)

setupInfo

protected void setupInfo()

attributesMatch

protected boolean attributesMatch(IAttributeSet check,
                                  IAttributeSet verify)

attributeMatch

protected boolean attributeMatch(IAttribute checkA,
                                 IAttribute verifyA)


Copyright © 2001-2003 by The GroboUtils Project