public PlaylistItem setArtists(PersonWithRole[] artists) { removeProperties(UPNP.ARTIST.class); for (PersonWithRole artist : artists) { addProperty(new UPNP.ARTIST(artist)); } return this; }
public String getDate() { return getFirstPropertyValue(DC.DATE.class); }
public PersonWithRole[] getArtists() { List<PersonWithRole> list = getPropertyValues(UPNP.ARTIST.class); return list.toArray(new PersonWithRole[list.size()]); }
PlaylistItem pli = new PlaylistItem(); pli.setTitle( mdop.getName() ); pli.setDescription( mdop.getName() ); pli.setLongDescription( mdop.getName() ); pli.setDate( "24/01/2013" ); MDOAuthor[] mdoauthors = new MDOAuthor[authors.size()]; authors.keySet().toArray( mdoauthors ); persons[k] = pwr; pli.setArtists( persons ); pli.setParentID( mdop.getOwner().getSid() + "" ); pli.setId( mdop.getOwner().getSid() + MessicContainer.SEPARATOR ); dlnaAttributes ) ); pli.addResource( resource );
public PlaylistItem setDescription(String description) { replaceFirstProperty(new DC.DESCRIPTION(description)); return this; }
specificItems.add(new PlaylistItem(genericItem));
public PlaylistItem(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 PlaylistItem() { setClazz(CLASS); }
public PlaylistItem setLongDescription(String description) { replaceFirstProperty(new UPNP.LONG_DESCRIPTION(description)); return this; }
specificItems.add(new PlaylistItem(genericItem));
public PlaylistItem(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 PlaylistItem() { setClazz(CLASS); }
public PlaylistItem setGenres(String[] genres) { removeProperties(UPNP.GENRE.class); for (String genre : genres) { addProperty(new UPNP.GENRE(genre)); } return this; }
public String getFirstGenre() { return getFirstPropertyValue(UPNP.GENRE.class); }
public PlaylistItem setLanguage(String language) { replaceFirstProperty(new DC.LANGUAGE(language)); return this; }
specificItems.add(new PlaylistItem(genericItem));
public String[] getGenres() { List<String> list = getPropertyValues(UPNP.GENRE.class); return list.toArray(new String[list.size()]); }
public PlaylistItem(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 PlaylistItem() { setClazz(CLASS); }
public PlaylistItem setArtists(PersonWithRole[] artists) { removeProperties(UPNP.ARTIST.class); for (PersonWithRole artist : artists) { addProperty(new UPNP.ARTIST(artist)); } return this; }