org.paylogic.jenkins.upmerge.releasebranch
Class ReleaseBranchImpl

java.lang.Object
  extended by org.paylogic.jenkins.upmerge.releasebranch.ReleaseBranch
      extended by org.paylogic.jenkins.upmerge.releasebranch.ReleaseBranchImpl
All Implemented Interfaces:
hudson.ExtensionPoint

public class ReleaseBranchImpl
extends ReleaseBranch


Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
ReleaseBranchImpl(String startBranch)
          Constructor of ReleaseBranch.
ReleaseBranchImpl(String startBranch, String default_branch)
           
 
Method Summary
 ReleaseBranch copy()
          Create a new ReleaseBranch object with the current release branch.
 String getName()
          Returns the current branch name as String
 void next()
          Sets the object to the next release.
 void next(List<String> branches)
          Sets the object to the next release.
 
Methods inherited from class org.paylogic.jenkins.upmerge.releasebranch.ReleaseBranch
all
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReleaseBranchImpl

public ReleaseBranchImpl(String startBranch)
                  throws ReleaseBranchInvalidException
Constructor of ReleaseBranch. Split the name of the branch if needed and store locally.

Parameters:
startBranch - Name of branch to start with (String).
Throws:
ReleaseBranchInvalidException

ReleaseBranchImpl

public ReleaseBranchImpl(String startBranch,
                         String default_branch)
                  throws ReleaseBranchInvalidException
Throws:
ReleaseBranchInvalidException
Method Detail

next

public void next()
Sets the object to the next release. Does not return representation of release.

Specified by:
next in class ReleaseBranch

next

public void next(List<String> branches)
Sets the object to the next release. Does not return representation of release.

Specified by:
next in class ReleaseBranch

getName

public String getName()
Returns the current branch name as String

Specified by:
getName in class ReleaseBranch
Returns:
current branch name

copy

public ReleaseBranch copy()
                   throws ReleaseBranchInvalidException
Create a new ReleaseBranch object with the current release branch.

Specified by:
copy in class ReleaseBranch
Returns:
new ReleaseBranch
Throws:
ReleaseBranchInvalidException


Copyright © 2004-2014. All Rights Reserved.