org.codehaus.mojo.scmchangelog.changelog.log.grammar
Class BugzillaScmGrammar

java.lang.Object
  extended by org.codehaus.mojo.scmchangelog.changelog.log.grammar.AbstractScmGrammar
      extended by org.codehaus.mojo.scmchangelog.changelog.log.grammar.BugzillaScmGrammar
All Implemented Interfaces:
ScmGrammar

public class BugzillaScmGrammar
extends AbstractScmGrammar

Simple grammar which recognizes bug references in the format: bug ####. For more information, refer to the "Autolinkification" section of the Bugzilla manual: http://www.bugzilla.org/docs/3.2/en/html/hintsandtips.html

Author:
Matthew Beermann

Field Summary
 
Fields inherited from interface org.codehaus.mojo.scmchangelog.changelog.log.ScmGrammar
NEW_LINE
 
Constructor Summary
BugzillaScmGrammar()
           
 
Method Summary
 Message extractMessage(String content)
          Extract a Message from a comment.
 String getIssueSeparator()
          Returns the String to be inserted between each issue comment.
 boolean hasMessage(String content)
          Indicates if the content has a Message to be extracted.
 
Methods inherited from class org.codehaus.mojo.scmchangelog.changelog.log.grammar.AbstractScmGrammar
removeComments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugzillaScmGrammar

public BugzillaScmGrammar()
Method Detail

extractMessage

public Message extractMessage(String content)
Extract a Message from a comment.

Parameters:
content -

the comment to be parsed and from which a Message will be extracted

Returns:

the Message extracted from the content


getIssueSeparator

public String getIssueSeparator()
Returns the String to be inserted between each issue comment. It may be replaced when generating the report.

Returns:
the String to be inserted between each issue comment.

hasMessage

public boolean hasMessage(String content)
Indicates if the content has a Message to be extracted.

Parameters:
content -

the content to be tested

Returns:

true if a Message can be extracted - false otherwise



Copyright © 2008-2009 Codehaus. All Rights Reserved.