James Moger
2012-11-01 7ba85bfa11c7fcab21ada61650fe30763aafd7b0
commit | author | age
eb870f 1 /*
JM 2  * Copyright 2012 gitblit.com.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.gitblit.models;
17
18 import java.io.Serializable;
19
20 /**
21  * SubmoduleModel is a serializable model class that represents a git submodule
22  * definition.
23  * 
24  * @author James Moger
25  * 
26  */
27 public class SubmoduleModel implements Serializable {
28
29     private static final long serialVersionUID = 1L;
30
31     public final String name;
32     public final String path;
33     public final String url;
34
35     public boolean hasSubmodule;
36     public String gitblitPath;
37
38     public SubmoduleModel(String name, String path, String url) {
39         this.name = name;
40         this.path = path;
41         this.url = url;
42     }
43     
44     public String toString() {
45         return path + "=" + url;
46     }
47 }