1 package de.tud.plt.r43ples.existentobjects;
2
3 import de.tud.plt.r43ples.exception.InternalErrorException;
4 import org.apache.logging.log4j.LogManager;
5 import org.apache.logging.log4j.Logger;
6
7
8
9
10
11
12 public class Branch extends Reference {
13
14
15 private Logger logger = LogManager.getLogger(Branch.class);
16
17
18
19
20
21
22
23
24
25
26 public Branch(RevisionGraph revisionGraph, String branchInformation, boolean isIdentifier) throws InternalErrorException {
27 super(revisionGraph, branchInformation, isIdentifier);
28 }
29
30
31
32
33
34
35
36
37
38
39 public Branch(RevisionGraph revisionGraph, String referenceIdentifier, String referenceURI, String fullGraphURI) throws InternalErrorException {
40 super(revisionGraph, referenceIdentifier, referenceURI, fullGraphURI);
41 }
42
43
44
45
46
47
48
49 public Revision getLeafRevision() throws InternalErrorException {
50 return this.getRevisionGraph().getRevision(this.getReferenceIdentifier());
51 }
52
53 }