1 14 package org.wings.session; 15 16 19 public class OSType { 20 23 public static final OSType UNKNOWN = new OSType(0, "Unknown OS"); 24 25 28 public static final OSType UNIX = new OSType(1, "Unix"); 29 30 33 public static final OSType WINDOWS = new OSType(2, "Windows"); 34 35 38 public static final OSType MACOS = new OSType(3, "Mac OS"); 39 40 43 public static final OSType IBMOS = new OSType(4, "IBM OS/2"); 44 45 private int id; 46 private String name; 47 48 49 private OSType(int id, String name) { 50 this.id = id; 51 this.name = name; 52 } 53 54 57 public int getId() { 58 return id; 59 } 60 61 64 public String getName() { 65 return name; 66 } 67 68 public String toString() { 69 return getName(); 70 } 71 } 72 | Popular Tags |