source: AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotConfig.java@ 653

Last change on this file since 653 was 648, checked in by alloc, 12 years ago

AEI2 0.99e:

  • Added forced offline mode (argument -offline)
  • Fixed bug when displaying dependencies during installation
  • Switched from term "mandatory" to "core" for always-install packages
File size: 2.0 KB
RevLine 
[591]1package net.oni2.aeinstaller.backend.depot;
2
[626]3import java.util.TreeSet;
4
[621]5import net.oni2.aeinstaller.backend.Settings;
6
[591]7/**
8 * @author Christian Illy
9 */
10public class DepotConfig {
[592]11
[591]12 /**
[592]13 * @return Type-value of nodes which contain Mods
[591]14 */
[592]15 public static String getNodeType_Mod() {
16 return "mod";
17 }
[591]18
19 /**
[592]20 * @return Vocabulary name for platform field
[591]21 */
[636]22 static String getVocabularyName_Platform() {
[592]23 return "Platform";
24 }
25
[591]26 /**
[592]27 * @return Vocabulary name for installtype field
[591]28 */
[636]29 static String getVocabularyName_InstallType() {
[592]30 return "Install method";
31 }
32
[591]33 /**
[592]34 * @return Vocabulary name for modtype field
[591]35 */
[636]36 static String getVocabularyName_ModType() {
[592]37 return "Mod type";
38 }
39
[591]40 /**
[592]41 * @return Taxonomy term name for platform value Win
[591]42 */
[592]43 public static String getTaxonomyName_Platform_Win() {
44 return "Windows";
45 }
46
[591]47 /**
[592]48 * @return Taxonomy term name for platform value Mac
[591]49 */
[592]50 public static String getTaxonomyName_Platform_Mac() {
51 return "Mac OS";
52 }
53
[591]54 /**
[592]55 * @return Taxonomy term name for platform value Both
[591]56 */
[592]57 public static String getTaxonomyName_Platform_Both() {
58 return "Both";
59 }
[591]60
61 /**
[592]62 * @return Taxonomy term name for installtype Package
[591]63 */
[636]64 static String getTaxonomyName_InstallType_Package() {
[592]65 return "Package";
66 }
[604]67
[602]68 /**
[626]69 * @return Taxonomy term names for mods of type Tool
[602]70 */
[626]71 public static TreeSet<String> getTaxonomyName_ModType_Tool() {
72 TreeSet<String> res = new TreeSet<String>();
73 res.add("Tool");
74 res.add("Patch");
75 return res;
[602]76 }
[604]77
78 /**
[648]79 * @return First package number that's not a core tool/mod. Everything
80 * below is considered a core package
[604]81 */
[648]82 public static int getCoreNumberLimit() {
[604]83 return 8000;
84 }
[621]85
86 /**
87 * @return URL of Depot
88 */
[636]89 static String getDepotUrl() {
[621]90 return Settings.getInstance().get("depot_url", "http://mods.oni2.net/");
91 }
92
93 /**
94 * @return URL of Depot API
95 */
[636]96 static String getDepotApiUrl() {
[621]97 return Settings.getInstance().get("depot_api_url",
98 "http://mods.oni2.net/?q=api/");
99 }
[591]100}
Note: See TracBrowser for help on using the repository browser.