public class Branch
extends java.lang.Object
implements java.io.Serializable
Branches. These resemble
workspace copies in subversion.
There may be several concurrent changes, all of which have their own branch.
Branches are based on a specific revision. Additionally, they provide
information on their creation time, their last modification time, the agent
creating a branch as well as an arbitrary comment.| Modifier and Type | Field and Description |
|---|---|
protected Revision |
baseRevision
The base revision of this branch.
|
protected long |
branch
The branch count of this branch.
|
protected java.lang.String |
comment
The comment for this branch.
|
protected QualifiedAgent |
creationAgent
The agent creating this branch.
|
protected long |
creationTime
The creation time of this branch.
|
protected QualifiedAgent |
modAgent
The last modifying agent of this branch.
|
protected long |
modTime
The last modification time of this branch.
|
| Constructor and Description |
|---|
Branch(long branch,
Revision baseRevision,
long creationTime,
QualifiedAgent creationAgent,
long modTime,
QualifiedAgent modAgent,
java.lang.String comment)
Creates a new branch object with the designated branch count, base
revision, the last modification time, the agent and the comment.
|
| Modifier and Type | Method and Description |
|---|---|
Revision |
getBaseRevision()
Gets the base revision of this revision, that is the revision this branch
is based upon.
|
long |
getBranch()
Gets the branch count of this branch.
|
java.lang.String |
getComment()
Gets the comment for this branch, that is arbitrary text provided by the
agent creating this branch.
|
QualifiedAgent |
getCreationAgent()
Gets the creation agent of this branch.
|
long |
getCreationTime()
Gets the creation time of this branch.
|
QualifiedAgent |
getModificationAgent()
Gets the agent of the last modification of this branch.
|
long |
getModificationTime()
Gets the last modification time of this branch.
|
protected final long branch
protected final Revision baseRevision
protected final long creationTime
protected final QualifiedAgent creationAgent
protected final long modTime
protected final QualifiedAgent modAgent
protected final java.lang.String comment
public Branch(long branch,
Revision baseRevision,
long creationTime,
QualifiedAgent creationAgent,
long modTime,
QualifiedAgent modAgent,
java.lang.String comment)
branch - The branch count of this branch.baseRevision - The base revision of this branch.creationTime - The time this branch has been created.creationAgent - The agent creating this branch.modTime - The time this branch has been modified lately.modAgent - The last modifying agent of this branch.comment - The comment for this branch.public long getBranch()
public Revision getBaseRevision()
public long getCreationTime()
public QualifiedAgent getCreationAgent()
public long getModificationTime()
public QualifiedAgent getModificationAgent()
public java.lang.String getComment()