Class Branch
java.lang.Object
de.aristaflow.adept2.model.common.Branch
- All Implemented Interfaces:
Serializable
Changes of entities takes place in
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.- Author:
- Ulrich Kreher
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RevisionThe base revision of this branch.protected final longThe branch count of this branch.protected final StringThe comment for this branch.protected final QualifiedAgentThe agent creating this branch.protected final longThe creation time of this branch.protected final QualifiedAgentThe last modifying agent of this branch.protected final longThe last modification time of this branch. -
Constructor Summary
ConstructorsConstructorDescriptionBranch(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
Modifier and TypeMethodDescriptionGets the base revision of this revision, that is the revision this branch is based upon.longGets the branch count of this branch.Gets the comment for this branch, that is arbitrary text provided by the agent creating this branch.Gets the creation agent of this branch.longGets the creation time of this branch.Gets the agent of the last modification of this branch.longGets the last modification time of this branch.
-
Field Details
-
branch
protected final long branchThe branch count of this branch. -
baseRevision
The base revision of this branch. -
creationTime
protected final long creationTimeThe creation time of this branch. -
creationAgent
The agent creating this branch. -
modTime
protected final long modTimeThe last modification time of this branch. -
modAgent
The last modifying agent of this branch. -
comment
The comment for this branch.
-
-
Constructor Details
-
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 Details
-
getBranch
public long getBranch()Gets the branch count of this branch.- Returns:
- The branch count of this branch.
-
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
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
Gets the agent of the last modification of this branch.- Returns:
- The agent of the last modification of this branch.
-
getComment
Gets the comment for this branch, that is arbitrary text provided by the agent creating this branch.- Returns:
- The comment for this branch.
-