01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.ivy.plugins.namespace;
19:
20: public class MRIDRule {
21: private String org;
22:
23: private String module;
24:
25: private String branch;
26:
27: private String rev;
28:
29: public MRIDRule(String org, String mod, String rev) {
30: this .org = org;
31: this .module = mod;
32: this .rev = rev;
33: }
34:
35: public MRIDRule() {
36: }
37:
38: public String getModule() {
39: return module;
40: }
41:
42: public void setModule(String module) {
43: this .module = module;
44: }
45:
46: public String getOrg() {
47: return org;
48: }
49:
50: public void setOrg(String org) {
51: this .org = org;
52: }
53:
54: public String getRev() {
55: return rev;
56: }
57:
58: public void setRev(String rev) {
59: this .rev = rev;
60: }
61:
62: public String toString() {
63: return "[ " + org + " " + module
64: + (branch != null ? " " + branch : "") + " " + rev
65: + " ]";
66: }
67:
68: public String getBranch() {
69: return branch;
70: }
71:
72: public void setBranch(String branch) {
73: this.branch = branch;
74: }
75: }
|