public TextItem setRelations(URI[] relations) { removeProperties(DC.RELATION.class); for (URI relation : relations) { addProperty(new DC.RELATION(relation)); } return this; }
public PersonWithRole getFirstAuthor() { return getFirstPropertyValue(UPNP.AUTHOR.class); }
public PersonWithRole[] getAuthors() { List<PersonWithRole> list = getPropertyValues(UPNP.AUTHOR.class); return list.toArray(new PersonWithRole[list.size()]); }
public TextItem setDescription(String description) { replaceFirstProperty(new DC.DESCRIPTION(description)); return this; }
public TextItem(String id, String parentID, String title, String creator, Res... resource) { super(id, parentID, title, creator, CLASS); if (resource != null) { getResources().addAll(Arrays.asList(resource)); } }
public TextItem() { setClazz(CLASS); }
specificItems.add(new TextItem(genericItem));
public TextItem setStorageMedium(StorageMedium storageMedium) { replaceFirstProperty(new UPNP.STORAGE_MEDIUM(storageMedium)); return this; }
public TextItem(String id, String parentID, String title, String creator, Res... resource) { super(id, parentID, title, creator, CLASS); if (resource != null) { getResources().addAll(Arrays.asList(resource)); } }
public TextItem() { setClazz(CLASS); }
specificItems.add(new TextItem(genericItem));
public TextItem setContributors(Person[] contributors) { removeProperties(DC.CONTRIBUTOR.class); for (Person p : contributors) { addProperty(new DC.CONTRIBUTOR(p)); } return this; }
public String getLanguage() { return getFirstPropertyValue(DC.LANGUAGE.class); }
public TextItem setRating(String rating) { replaceFirstProperty(new UPNP.RATING(rating)); return this; }
public String[] getRights() { List<String> list = getPropertyValues(DC.RIGHTS.class); return list.toArray(new String[list.size()]); }
public TextItem(String id, String parentID, String title, String creator, Res... resource) { super(id, parentID, title, creator, CLASS); if (resource != null) { getResources().addAll(Arrays.asList(resource)); } }
public TextItem() { setClazz(CLASS); }
specificItems.add(new TextItem(genericItem));
public TextItem setRights(String[] rights) { removeProperties(DC.RIGHTS.class); for (String right : rights) { addProperty(new DC.RIGHTS(right)); } return this; }
public String getDate() { return getFirstPropertyValue(DC.DATE.class); }