Java Code Examples for org.fourthline.cling.support.model.container.Container#getId()
The following examples show how to use
org.fourthline.cling.support.model.container.Container#getId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ContentItem.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public ContentItem(Container container, Service service) { // TODO Auto-generated constructor stub this.service = service; this.content = container; this.id = container.getId(); this.isContainer = true; }
Example 2
Source File: ContentItem.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public ContentItem(Container container, Service service, Device device) { // TODO Auto-generated constructor stub this.device = device; this.service = service; this.content = container; this.id = container.getId(); this.isContainer = true; }
Example 3
Source File: ContentItem.java From HPlayer with Apache License 2.0 | 5 votes |
public ContentItem(Service service, Container container) { this.service = service; didlObject = container; id = container.getId(); title = container.getTitle(); isContainer = true; }
Example 4
Source File: ContentBrowseActionCallback.java From DroidDLNA with GNU General Public License v3.0 | 5 votes |
public ContentBrowseActionCallback(Activity activity, Service service, Container container, ArrayList<ContentItem> list, Handler handler) { super(service, container.getId(), BrowseFlag.DIRECT_CHILDREN, "*", 0, null, new SortCriterion(true, "dc:title")); this.activity = activity; this.service = service; this.container = container; this.list = list; this.handler = handler; }
Example 5
Source File: PlaylistItem.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public PlaylistItem(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 6
Source File: AudioBook.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public AudioBook(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, null, null, null, resource); }
Example 7
Source File: Movie.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Movie(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 8
Source File: MusicVideoClip.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public MusicVideoClip(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 9
Source File: Item.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Item(String id, Container parent, String title, String creator, DIDLObject.Class clazz, String refID) { this(id, parent.getId(), title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList(), refID); }
Example 10
Source File: Item.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public Item(String id, Container parent, String title, String creator, DIDLObject.Class clazz) { this(id, parent.getId(), title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList()); }
Example 11
Source File: GenerateXml.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
protected void generateContainer(Container container, Document descriptor, Element parent, boolean nestedItems) { if (container.getClazz() == null) { throw new RuntimeException( "Missing 'upnp:class' element for container: " + container.getId()); } Element containerElement = appendNewElement(descriptor, parent, "container"); if (container.getId() == null) throw new NullPointerException("Missing id on container: " + container); containerElement.setAttribute("id", container.getId()); if (container.getParentID() == null) throw new NullPointerException("Missing parent id on container: " + container); containerElement.setAttribute("parentID", container.getParentID()); if (container.getChildCount() != null) { containerElement.setAttribute("childCount", Integer.toString(container.getChildCount())); } containerElement.setAttribute("restricted", booleanToInt(container.isRestricted())); containerElement.setAttribute("searchable", booleanToInt(container.isSearchable())); String title = container.getTitle(); if (title == null) { title = UNKNOWN_TITLE; } appendNewElementIfNotNull(descriptor, containerElement, "dc:title", title, DIDLObject.Property.DC.NAMESPACE.URI); appendNewElementIfNotNull(descriptor, containerElement, "dc:creator", container.getCreator(), DIDLObject.Property.DC.NAMESPACE.URI); appendNewElementIfNotNull(descriptor, containerElement, "upnp:writeStatus", container.getWriteStatus(), DIDLObject.Property.UPNP.NAMESPACE.URI); appendClass(descriptor, containerElement, container.getClazz(), "upnp:class", false); for (DIDLObject.Class searchClass : container.getSearchClasses()) { appendClass(descriptor, containerElement, searchClass, "upnp:searchClass", true); } for (DIDLObject.Class createClass : container.getCreateClasses()) { appendClass(descriptor, containerElement, createClass, "upnp:createClass", true); } appendProperties(descriptor, containerElement, container, "upnp", DIDLObject.Property.UPNP.NAMESPACE.class, DIDLObject.Property.UPNP.NAMESPACE.URI); appendProperties(descriptor, containerElement, container, "dc", DIDLObject.Property.DC.NAMESPACE.class, DIDLObject.Property.DC.NAMESPACE.URI); if (nestedItems) { for (Item item : container.getItems()) { if (item == null) continue; generateItem(item, descriptor, containerElement); } } for (Res resource : container.getResources()) { if (resource == null) continue; generateResource(resource, descriptor, containerElement); } for (DescMeta descMeta : container.getDescMetadata()) { if (descMeta == null) continue; generateDescMetadata(descMeta, descriptor, containerElement); } }
Example 12
Source File: Photo.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public Photo(String id, Container parent, String title, String creator, String album, Res... resource) { this(id, parent.getId(), title, creator, album, resource); }
Example 13
Source File: MusicTrack.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public MusicTrack(String id, Container parent, String title, String creator, String album, String artist, Res... resource) { this(id, parent.getId(), title, creator, album, artist, resource); }
Example 14
Source File: MusicVideoClip.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public MusicVideoClip(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 15
Source File: MusicTrack.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public MusicTrack(String id, Container parent, String title, String creator, String album, PersonWithRole artist, Res... resource) { this(id, parent.getId(), title, creator, album, artist, resource); }
Example 16
Source File: PlaylistItem.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public PlaylistItem(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 17
Source File: VideoItem.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public VideoItem(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, resource); }
Example 18
Source File: AudioBook.java From DroidDLNA with GNU General Public License v3.0 | 4 votes |
public AudioBook(String id, Container parent, String title, String creator, String producer, String contributor, String date, Res... resource) { this(id, parent.getId(), title, creator, new Person(producer), new Person(contributor), date, resource); }
Example 19
Source File: AudioBook.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public AudioBook(String id, Container parent, String title, String creator, String producer, String contributor, String date, Res... resource) { this(id, parent.getId(), title, creator, new Person(producer), new Person(contributor), date, resource); }
Example 20
Source File: AudioBook.java From TVRemoteIME with GNU General Public License v2.0 | 4 votes |
public AudioBook(String id, Container parent, String title, String creator, Res... resource) { this(id, parent.getId(), title, creator, null, null, null, resource); }