Class Branch
- java.lang.Object
-
- de.aristaflow.adept2.model.common.Branch
-
- All Implemented Interfaces:
Serializable
public class Branch extends Object implements Serializable
Changes of entities takes place inBranch
es. 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.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Revision
baseRevision
The base revision of this branch.protected long
branch
The branch count of this branch.protected 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 Summary
Constructors Constructor Description Branch(long branch, Revision baseRevision, long creationTime, QualifiedAgent creationAgent, long modTime, QualifiedAgent modAgent, String comment)
Creates a new branch object with the designated branch count, base revision, the last modification time, the agent and the comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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.
-
-
-
Field Detail
-
branch
protected final long branch
The branch count of this branch.
-
baseRevision
protected final Revision baseRevision
The base revision of this branch.
-
creationTime
protected final long creationTime
The creation time of this branch.
-
creationAgent
protected final QualifiedAgent creationAgent
The agent creating this branch.
-
modTime
protected final long modTime
The last modification time of this branch.
-
modAgent
protected final QualifiedAgent modAgent
The last modifying agent of this branch.
-
comment
protected final String comment
The comment for this branch.
-
-
Constructor Detail
-
Branch
public Branch(long branch, Revision baseRevision, long creationTime, QualifiedAgent creationAgent, long modTime, QualifiedAgent modAgent, String comment)
Creates a new branch object with the designated branch count, base revision, the last modification time, the agent and the comment.- Parameters:
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.
-
-
Method Detail
-
getBranch
public long getBranch()
Gets the branch count of this branch.- Returns:
- The branch count of this branch.
-
getBaseRevision
public Revision getBaseRevision()
Gets the base revision of this revision, that is the revision this branch is based upon.- Returns:
- The base revision of this branch.
-
getCreationTime
public long getCreationTime()
Gets the creation time of this branch.- Returns:
- The creation time of this branch.
-
getCreationAgent
public QualifiedAgent getCreationAgent()
Gets the creation agent of this branch.- Returns:
- The creation agent of this branch.
-
getModificationTime
public long getModificationTime()
Gets the last modification time of this branch.- Returns:
- The last modification time of this branch.
-
getModificationAgent
public QualifiedAgent getModificationAgent()
Gets the agent of the last modification of this branch.- Returns:
- The agent of the last modification of this branch.
-
getComment
public String getComment()
Gets the comment for this branch, that is arbitrary text provided by the agent creating this branch.- Returns:
- The comment for this branch.
-
-