1 26 28 package de.nava.informa.core; 29 30 import java.io.Serializable ; 31 32 38 public class ChannelFormat implements Serializable { 39 40 private String formatSpec; 41 42 private ChannelFormat(String formatSpec) { 43 this.formatSpec = formatSpec; 44 } 45 46 public String toString() { 47 return formatSpec; 48 } 49 50 public boolean equals(Object obj) { 51 if (!(obj instanceof ChannelFormat)) { 52 return false; 53 } 54 ChannelFormat cf = (ChannelFormat) obj; 55 return cf.formatSpec.equals(formatSpec); 56 } 57 58 public int hashCode() { 59 return formatSpec.hashCode(); 60 } 61 62 63 public static final ChannelFormat UNKNOWN_CHANNEL_FORMAT = 64 new ChannelFormat("Unknown"); 65 66 67 public static final ChannelFormat RSS_0_90 = new ChannelFormat("RSS 0.90"); 68 69 70 public static final ChannelFormat RSS_0_91 = new ChannelFormat("RSS 0.91"); 71 72 73 public static final ChannelFormat RSS_0_92 = new ChannelFormat("RSS 0.92"); 74 75 76 public static final ChannelFormat RSS_0_93 = new ChannelFormat("RSS 0.93"); 77 78 79 public static final ChannelFormat RSS_0_94 = new ChannelFormat("RSS 0.94"); 80 81 82 public static final ChannelFormat RSS_1_0 = new ChannelFormat("RSS 1.0"); 83 84 85 public static final ChannelFormat RSS_2_0 = new ChannelFormat("RSS 2.0"); 86 87 88 89 public static final ChannelFormat ATOM_0_1 = new ChannelFormat("Atom 0.1"); 90 91 92 public static final ChannelFormat ATOM_0_2 = new ChannelFormat("Atom 0.2"); 93 94 95 public static final ChannelFormat ATOM_0_3 = new ChannelFormat("Atom 0.3"); 96 97 } 98 | Popular Tags |