hudson.plugins.clearcase
Class ClearCaseChangeLogSet

java.lang.Object
  extended by hudson.scm.ChangeLogSet<ClearCaseChangeLogEntry>
      extended by hudson.plugins.clearcase.ClearCaseChangeLogSet
All Implemented Interfaces:
java.lang.Iterable<ClearCaseChangeLogEntry>

public class ClearCaseChangeLogSet
extends hudson.scm.ChangeLogSet<ClearCaseChangeLogEntry>

ClearCase change log set.

Author:
Erik Ramfelt

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.scm.ChangeLogSet
hudson.scm.ChangeLogSet.Entry
 
Field Summary
 
Fields inherited from class hudson.scm.ChangeLogSet
build
 
Constructor Summary
ClearCaseChangeLogSet(hudson.model.AbstractBuild<?,?> build, java.util.List<ClearCaseChangeLogEntry> logs)
           
 
Method Summary
 java.util.List<ClearCaseChangeLogEntry> getLogs()
           
 boolean isEmptySet()
           
 java.util.Iterator<ClearCaseChangeLogEntry> iterator()
           
static ClearCaseChangeLogSet parse(hudson.model.AbstractBuild build, java.io.File changeLogFile)
          Parses the change log file and returns a ClearCase change log set.
static ClearCaseChangeLogSet parse(hudson.model.AbstractBuild build, java.io.InputStream changeLogStream)
          Parses the change log stream and returns a ClearCase change log set.
static void saveToChangeLog(java.io.OutputStream outputStream, java.util.List<ClearCaseChangeLogEntry> history)
          Stores the history objects to the output stream as xml
 
Methods inherited from class hudson.scm.ChangeLogSet
createEmpty, getItems
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearCaseChangeLogSet

public ClearCaseChangeLogSet(hudson.model.AbstractBuild<?,?> build,
                             java.util.List<ClearCaseChangeLogEntry> logs)
Method Detail

isEmptySet

public boolean isEmptySet()
Specified by:
isEmptySet in class hudson.scm.ChangeLogSet<ClearCaseChangeLogEntry>

iterator

public java.util.Iterator<ClearCaseChangeLogEntry> iterator()

getLogs

public java.util.List<ClearCaseChangeLogEntry> getLogs()

parse

public static ClearCaseChangeLogSet parse(hudson.model.AbstractBuild build,
                                          java.io.File changeLogFile)
                                   throws java.io.IOException,
                                          org.xml.sax.SAXException
Parses the change log file and returns a ClearCase change log set.

Parameters:
build - the build for the change log
changeLogFile - the change log file
Returns:
the change log set
Throws:
java.io.IOException
org.xml.sax.SAXException

parse

public static ClearCaseChangeLogSet parse(hudson.model.AbstractBuild build,
                                          java.io.InputStream changeLogStream)
                                   throws java.io.IOException,
                                          org.xml.sax.SAXException
Parses the change log stream and returns a ClearCase change log set.

Parameters:
build - the build for the change log
changeLogStream - input stream containing the change log
Returns:
the change log set
Throws:
java.io.IOException
org.xml.sax.SAXException

saveToChangeLog

public static void saveToChangeLog(java.io.OutputStream outputStream,
                                   java.util.List<ClearCaseChangeLogEntry> history)
                            throws java.io.IOException
Stores the history objects to the output stream as xml

Parameters:
outputStream - the stream to write to
history - the history objects to store
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.