| 1 | // Copyright 2004-2007 Jean-Francois Poilpret |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | package net.sourceforge.hiveutils.util; |
| 16 | |
| 17 | import org.apache.hivemind.impl.BaseLocatable; |
| 18 | import org.apache.hivemind.util.ToStringBuilder; |
| 19 | |
| 20 | /** |
| 21 | * @author Jean-Francois Poilpret |
| 22 | */ |
| 23 | public class Version extends BaseLocatable |
| 24 | { |
| 25 | public void setCode(String code) |
| 26 | { |
| 27 | _code = code; |
| 28 | } |
| 29 | public String getCode() |
| 30 | { |
| 31 | return _code; |
| 32 | } |
| 33 | |
| 34 | public void setName(String name) |
| 35 | { |
| 36 | _name = name; |
| 37 | } |
| 38 | public String getName() |
| 39 | { |
| 40 | return _name; |
| 41 | } |
| 42 | |
| 43 | public void setVersion(String version) |
| 44 | { |
| 45 | _version = version; |
| 46 | } |
| 47 | public String getVersion() |
| 48 | { |
| 49 | return _version; |
| 50 | } |
| 51 | |
| 52 | public void setDate(String date) |
| 53 | { |
| 54 | _date = date; |
| 55 | } |
| 56 | public String getDate() |
| 57 | { |
| 58 | return _date; |
| 59 | } |
| 60 | |
| 61 | public void setCopyright(String copyright) |
| 62 | { |
| 63 | _copyright = copyright; |
| 64 | } |
| 65 | public String getCopyright() |
| 66 | { |
| 67 | return _copyright; |
| 68 | } |
| 69 | |
| 70 | public void setAuthors(String authors) |
| 71 | { |
| 72 | _authors = authors; |
| 73 | } |
| 74 | public String getAuthors() |
| 75 | { |
| 76 | return _authors; |
| 77 | } |
| 78 | |
| 79 | public void setUrl(String url) |
| 80 | { |
| 81 | _url = url; |
| 82 | } |
| 83 | public String getUrl() |
| 84 | { |
| 85 | return _url; |
| 86 | } |
| 87 | |
| 88 | public String toString() |
| 89 | { |
| 90 | ToStringBuilder builder = new ToStringBuilder(this); |
| 91 | builder.append("code", _code); |
| 92 | builder.append("name", _name); |
| 93 | builder.append("version", _version); |
| 94 | builder.append("date", _date); |
| 95 | builder.append("copyright", _copyright); |
| 96 | builder.append("authors", _authors); |
| 97 | builder.append("url", _url); |
| 98 | return builder.toString(); |
| 99 | } |
| 100 | |
| 101 | private String _code; |
| 102 | private String _name; |
| 103 | private String _version; |
| 104 | private String _date; |
| 105 | private String _copyright; |
| 106 | private String _authors; |
| 107 | private String _url; |
| 108 | } |