public AudioBook(String id, String parentID, String title, String creator, Person producer, Person contributor, String date, Res... resource) { super(id, parentID, title, creator, resource); setClazz(CLASS); if (producer != null) addProperty(new UPNP.PRODUCER(producer)); if (contributor != null) addProperty(new DC.CONTRIBUTOR(contributor)); if (date != null) setDate(date); }
public StorageMedium getStorageMedium() { return getFirstPropertyValue(UPNP.STORAGE_MEDIUM.class); }
public Person[] getProducers() { List<Person> list = getPropertyValues(UPNP.PRODUCER.class); return list.toArray(new Person[list.size()]); }
public AudioBook setProducers(Person[] persons) { removeProperties(UPNP.PRODUCER.class); for (Person p : persons) { addProperty(new UPNP.PRODUCER(p)); } return this; }
public AudioBook setDate(String date) { replaceFirstProperty(new DC.DATE(date)); return this; }
public AudioBook() { setClazz(CLASS); }
specificItems.add(new MusicTrack(genericItem)); } else if (AudioBook.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBook(genericItem)); } else if (AudioBroadcast.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBroadcast(genericItem));
public AudioBook setContributors(Person[] contributors) { removeProperties(DC.CONTRIBUTOR.class); for (Person p : contributors) { addProperty(new DC.CONTRIBUTOR(p)); } return this; }
public AudioBook setStorageMedium(StorageMedium storageMedium) { replaceFirstProperty(new UPNP.STORAGE_MEDIUM(storageMedium)); return this; }
public AudioBook() { setClazz(CLASS); }
specificItems.add(new MusicTrack(genericItem)); } else if (AudioBook.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBook(genericItem)); } else if (AudioBroadcast.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBroadcast(genericItem));
public AudioBook(String id, String parentID, String title, String creator, Person producer, Person contributor, String date, Res... resource) { super(id, parentID, title, creator, resource); setClazz(CLASS); if (producer != null) addProperty(new UPNP.PRODUCER(producer)); if (contributor != null) addProperty(new DC.CONTRIBUTOR(contributor)); if (date != null) setDate(date); }
public AudioBook setProducers(Person[] persons) { removeProperties(UPNP.PRODUCER.class); for (Person p : persons) { addProperty(new UPNP.PRODUCER(p)); } return this; }
public Person getFirstContributor() { return getFirstPropertyValue(DC.CONTRIBUTOR.class); }
public Person[] getContributors() { List<Person> list = getPropertyValues(DC.CONTRIBUTOR.class); return list.toArray(new Person[list.size()]); }
public AudioBook setStorageMedium(StorageMedium storageMedium) { replaceFirstProperty(new UPNP.STORAGE_MEDIUM(storageMedium)); return this; }
public AudioBook() { setClazz(CLASS); }
specificItems.add(new MusicTrack(genericItem)); } else if (AudioBook.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBook(genericItem)); } else if (AudioBroadcast.CLASS.getValue().equals(genericType)) { specificItems.add(new AudioBroadcast(genericItem));
public AudioBook(String id, String parentID, String title, String creator, Person producer, Person contributor, String date, Res... resource) { super(id, parentID, title, creator, resource); setClazz(CLASS); if (producer != null) addProperty(new UPNP.PRODUCER(producer)); if (contributor != null) addProperty(new DC.CONTRIBUTOR(contributor)); if (date != null) setDate(date); }
public AudioBook setContributors(Person[] contributors) { removeProperties(DC.CONTRIBUTOR.class); for (Person p : contributors) { addProperty(new DC.CONTRIBUTOR(p)); } return this; }