1 package org.apache.slide.projector.application; 2 3 import java.util.ArrayList ; 4 import java.util.HashMap ; 5 import java.util.List ; 6 import java.util.Map ; 7 8 import org.apache.slide.projector.URI; 9 10 public final class Application { 11 public final static String PROCESSORS = "processors"; 12 public final static String MESSAGES = "messages"; 13 public final static String JOBS = "jobs"; 14 15 private URI uri; 16 private String name, displayName, vendor, description; 17 private Map content = new HashMap (); 18 private List dependecies = new ArrayList (); 19 private String version; 20 21 Application(URI applicationUri) { 22 this.uri = applicationUri; 23 } 24 25 public List getDependencies() { 26 return dependecies; 27 } 28 29 public void addDependency(Dependency dependency) { 30 dependecies.add(dependency); 31 } 32 33 public URI getUri() { 34 return uri; 35 } 36 37 String getDescription() { 38 return description; 39 } 40 41 void setDescription(String description) { 42 this.description = description; 43 } 44 45 String getDisplayName() { 46 return displayName; 47 } 48 49 void setDisplayName(String displayName) { 50 this.displayName = displayName; 51 } 52 53 String getVendor() { 54 return vendor; 55 } 56 57 void setVendor(String vendor) { 58 this.vendor = vendor; 59 } 60 61 void addContent(String type, URI contentUri) { 62 List contentUris = (List )content.get(type); 63 if ( contentUris == null ) { 64 contentUris = new ArrayList (); 65 content.put(type, contentUris); 66 } 67 contentUris.add(contentUri); 68 } 69 70 List getContent(String type) { 71 return (List )content.get(type); 72 } 73 74 Map getContent() { 75 return content; 76 } 77 78 String getVersion() { 79 return version; 80 } 81 82 void setVersion(String version) { 83 this.version = version; 84 } 85 86 89 String getName() { 90 return name; 91 } 92 93 96 void setName(String name) { 97 this.name = name; 98 } 99 } | Popular Tags |