1 package com.xaraya.wizard;
5 * Class to hold the details of a xarya module so the
6 * filecreation process can be performed
8 public final class XarayaVersionModel
10 //Fields to hold the details of the project to write
11 //in the xarVersions.php file..
12 private static String modversionname; //compulsory
13 private static String modversiondescription; //compulsory
14 private static String modversionid; //compulsory
15 private static String modversionversion; //compulsory
16 private static String modversioncredits;
17 private static String modversionhelp;
18 private static String modversionchangelog;
19 private static String modversionlicense;
20 private static String modversioncoding;
21 private static String modversionofficial; //compulsory
22 private static String modversionauthor; //compulsory
23 private static String modversioncontact; //compulsory
24 private static String modversionadmin; //compulsory
25 private static String modversionuser; //compulsory
26 private static String modversionsecurityschema; //compulsory
27 private static String modversionclass; //compulsory
28 private static String modversioncategory; //compulsory
30 public static boolean /*modversionofficial,*/userApi, userGui, adminApi, adminGui;
33 //Getters and setters for xaraya specifics
34 public static String getModversiondescription() { return modversiondescription; }
35 public static String getModversionname() { return modversionname; }
36 public static String getModversionadmin() { return modversionadmin;}
37 public static String getModversionauthor() { return modversionauthor;}
38 public static String getModversioncategory() { return modversioncategory;}
39 public static String getModversionchangelog() {return modversionchangelog;}
40 public static String getModversionclass() {return modversionclass;}
41 public static String getModversioncontact() {return modversioncontact;}
42 public static String getModversioncredits() {return modversioncredits;}
43 public static String getModversionhelp() {return modversionhelp;}
44 public static String getModversionid() {return modversionid;}
45 public static String getModversionlicense() {return modversionlicense;}
46 public static String getModversioncoding() {return modversioncoding;}
47 public static String getModversionofficial() {return modversionofficial;}
48 public static String getModversionsecurityschema() {return modversionsecurityschema;}
49 public static String getModversionuser() {return modversionuser;}
50 public static String getModversionversion() {return modversionversion;}
51 public static void setModversiondescription(String mvd) { XarayaVersionModel.modversiondescription = mvd; }
52 public static void setModversionname(String mvn) { XarayaVersionModel.modversionname = mvn; }
53 public static void setModversionadmin(String mva) {XarayaVersionModel.modversionadmin = mva;}
54 public static void setModversionauthor(String mva) {XarayaVersionModel.modversionauthor = mva;}
55 public static void setModversioncategory(String mvc) {XarayaVersionModel.modversioncategory = mvc;}
56 public static void setModversionchangelog(String mvc) {XarayaVersionModel.modversionchangelog = mvc;}
57 public static void setModversionclass(String mvc) {XarayaVersionModel.modversionclass = mvc;}
58 public static void setModversioncontact(String mvc) {XarayaVersionModel.modversioncontact = mvc;}
59 public static void setModversioncredits(String mvc) {XarayaVersionModel.modversioncredits = mvc;}
60 public static void setModversionhelp(String mvh) {XarayaVersionModel.modversionhelp = mvh;}
61 public static void setModversionid(String mvid) {XarayaVersionModel.modversionid = mvid;}
62 public static void setModversionlicense(String mvl) {XarayaVersionModel.modversionlicense = mvl;}
63 public static void setModversioncoding(String mvl) {XarayaVersionModel.modversioncoding = mvl;}
64 public static void setModversionofficial(String mvo) {XarayaVersionModel.modversionofficial = mvo;}
65 public static void setModversionsecurityschema(String mvss) {XarayaVersionModel.modversionsecurityschema = mvss;}
66 public static void setModversionuser(String mvu) {XarayaVersionModel.modversionuser = mvu;}
67 public static void setModversionversion(String mvv) {XarayaVersionModel.modversionversion = mvv;}
69 //public static boolean isOfficial() { return modversionofficial; }
70 public static boolean isAdminApi() { return adminApi; }
71 public static boolean isAdminGui() { return adminGui; }
72 public static boolean isUserApi() { return userApi; }
73 public static boolean isUserGui() { return userGui; }
74 //public static void setOfficial(boolean official) { XarayaVersionModel.modversionofficial = official; }
75 public static void setAdminApi(boolean adminApi) { XarayaVersionModel.adminApi = adminApi;}
76 public static void setAdminGui(boolean adminGui) { XarayaVersionModel.adminGui = adminGui; }
77 public static void setUserApi(boolean userApi) { XarayaVersionModel.userApi = userApi; }
78 public static void setUserGui(boolean userGui) { XarayaVersionModel.userGui = userGui; }