File tree Expand file tree Collapse file tree
org.omg.sysml.interactive/src/org/omg/sysml/interactive
org.omg.sysml/src/org/omg/sysml/util/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import java .util .Collections ;
3535import java .util .Date ;
3636import java .util .List ;
37- import java .util .NoSuchElementException ;
3837import java .util .Scanner ;
3938import java .util .UUID ;
4039import java .util .stream .Collectors ;
Original file line number Diff line number Diff line change @@ -67,12 +67,24 @@ public RemoteBranch getDefaultBranch() throws NoSuchElementException {
6767 return new RemoteBranch (defaultBranch .getAtId (), true );
6868 }
6969
70+ /**
71+ * Branch by name
72+ *
73+ * @param branchName name of the branch
74+ * @return branch with the given name or null if no branch is found
75+ */
7076 public RemoteBranch getBranch (String branchName ) {
7177 Branch branch = getProjectRepository ().getBranch (getRemoteId (), branchName );
7278 if (branch == null || branch .getAtId () == null ) return null ;
7379 return new RemoteBranch (branch .getAtId (), branch .getName ());
7480 }
7581
82+ /**
83+ * Branch by id
84+ *
85+ * @param branchId id of the branch
86+ * @return branch with the given UUID or null of no such branch is found
87+ */
7688 public RemoteBranch getBranch (UUID branchId ) {
7789 Branch branch = getProjectRepository ().getBranch (getRemoteId (), branchId );
7890 if (branch == null || branch .getAtId () == null ) return null ;
@@ -190,7 +202,9 @@ public RemoteProject getRemoteProject() {
190202 return RemoteProject .this ;
191203 }
192204
193-
205+ /**
206+ * @return true if this branch is the default branch of its project
207+ */
194208 public boolean isDefault () {
195209 return isDefault ;
196210 }
You can’t perform that action at this time.
0 commit comments