1 29 38 39 package org.planetamessenger.plugin; 40 41 42 public class JPluginProperties { 43 44 private int nLibrarySpecificationMinorVersion; 45 private int nLibrarySpecificationMajorVersion; 46 private int nPluginId; 47 private String strName; 48 private String strVersion; 49 private String strDescription; 50 private String strPluginOwner; 51 private String strLicense; 52 private String strHomePage; 53 private String strFileName; 54 private String strClassName; 55 56 57 58 59 62 public JPluginProperties() { 63 64 nPluginId = -1; 65 strName = ""; 66 strVersion = ""; 67 strFileName = ""; 68 strDescription = ""; 69 strClassName = ""; 70 strPluginOwner = ""; 71 strLicense = ""; 72 nLibrarySpecificationMinorVersion = -1; 73 nLibrarySpecificationMajorVersion = -1; 74 } 75 76 80 public void setPluginId( int nPluginId ) { 81 82 this.nPluginId = nPluginId; 83 } 84 85 88 public int getPluginId() { 89 90 return nPluginId; 91 } 92 93 97 public void setName( String strName ) { 98 99 this.strName = strName; 100 } 101 102 105 public String getName() { 106 107 return strName; 108 } 109 110 114 public void setVersion( String strVersion ) { 115 116 this.strVersion = strVersion; 117 } 118 119 122 public String getVersion() { 123 124 return strVersion; 125 } 126 127 131 public void setLibrarySpecificationMinorVersion( int nLibrarySpecificationMinorVersion ) { 132 133 this.nLibrarySpecificationMinorVersion = nLibrarySpecificationMinorVersion; 134 } 135 136 139 public int getLibrarySpecificationMinorVersion() { 140 141 return nLibrarySpecificationMinorVersion; 142 } 143 144 148 public void setLibrarySpecificationMajorVersion( int nLibrarySpecificationMajorVersion ) { 149 150 this.nLibrarySpecificationMajorVersion = nLibrarySpecificationMajorVersion; 151 } 152 153 156 public int getLibrarySpecificationMajorVersion() { 157 158 return nLibrarySpecificationMajorVersion; 159 } 160 161 165 public void setDescription( String strDescription ) { 166 167 this.strDescription = strDescription; 168 } 169 170 173 public String getDescription() { 174 175 return strDescription; 176 } 177 178 182 public void setPluginOwner( String strPluginOwner ) { 183 184 this.strPluginOwner = strPluginOwner; 185 } 186 187 190 public String getPluginOwner() { 191 192 return strPluginOwner; 193 } 194 195 199 public void setLicense( String strLicense ) { 200 201 this.strLicense = strLicense; 202 } 203 204 207 public String getLicense() { 208 209 return strLicense; 210 } 211 212 216 public void setHomePage( String strHomePage ) { 217 218 this.strHomePage = strHomePage; 219 } 220 221 224 public String getHomePage() { 225 226 return strHomePage; 227 } 228 229 233 public void setFileName( java.lang.String strFileName ) { 234 235 this.strFileName = strFileName; 236 } 237 238 241 public String getFileName() { 242 243 return strFileName; 244 } 245 246 250 public void setClassName( java.lang.String strClassName ) { 251 252 this.strClassName = strClassName; 253 } 254 255 258 public String getClassName() { 259 260 return strClassName; 261 } 262 263 266 public Object clone() { 267 268 JPluginProperties properties = new JPluginProperties(); 269 270 properties.setClassName( strClassName ); 271 properties.setDescription( strDescription ); 272 properties.setLibrarySpecificationMajorVersion( nLibrarySpecificationMajorVersion ); 273 properties.setLibrarySpecificationMinorVersion( nLibrarySpecificationMinorVersion ); 274 properties.setPluginId( nPluginId ); 275 properties.setName( strName ); 276 properties.setVersion( strVersion ); 277 properties.setPluginOwner( strPluginOwner ); 278 properties.setLicense( strLicense ); 279 properties.setHomePage( strHomePage ); 280 281 return properties; 282 } 283 } 284 285 | Popular Tags |