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.AffectedFile, 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
static java.lang.String escapeForXml(java.lang.String string)
           
 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 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, getKind
 
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

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

escapeForXml

public static java.lang.String escapeForXml(java.lang.String string)


Copyright © 2009. All Rights Reserved.