1 7 8 package javax.sound.midi; 9 10 50 51 public abstract class SoundbankResource { 52 53 54 57 private final Soundbank soundBank; 58 59 60 63 private final String name; 64 65 66 69 private final Class dataClass; 70 71 72 75 77 78 91 protected SoundbankResource(Soundbank soundBank, String name, Class <?> dataClass) { 92 93 this.soundBank = soundBank; 94 this.name = name; 95 this.dataClass = dataClass; 96 } 97 98 99 103 public Soundbank getSoundbank() { 104 return soundBank; 105 } 106 107 108 113 public String getName() { 114 return name; 115 } 116 117 118 126 public Class <?> getDataClass() { 127 return dataClass; 128 } 129 130 131 138 public abstract Object getData(); 139 140 141 146 150 151 159 } 161 162 | Popular Tags |