public void setCreator(String name) { setProperty(DC.CREATOR, name); }
public void setResource(String url, String protocolInfo, AttributeList attrList) { setProperty(DIDLLite.RES, url); setPropertyAttribure(DIDLLite.RES, DIDLLite.RES_PROTOCOLINFO, protocolInfo); int attrCnt = attrList.size(); for (int n=0; n<attrCnt; n++) { Attribute attr = attrList.getAttribute(n); String name = attr.getName(); String value = attr.getValue(); setPropertyAttribure(DIDLLite.RES, name, value); } }
public void setArtist(String title) { setProperty(UPnP.ARTIST, title); }
public void setResource(String url, String protocolInfo, AttributeList attrList) { setProperty(DIDLLite.RES, url); setPropertyAttribure(DIDLLite.RES, DIDLLite.RES_PROTOCOLINFO, protocolInfo); int attrCnt = attrList.size(); for (int n=0; n<attrCnt; n++) { Attribute attr = attrList.getAttribute(n); String name = attr.getName(); String value = attr.getValue(); setPropertyAttribure(DIDLLite.RES, name, value); } }
public void setStorageMedium(String value) { setProperty(UPnP.STORAGE_MEDIUM, value); }
public void setAlbum(String title) { setProperty(UPnP.ALBUM, title); }
public void setDate(String value) { setProperty(DC.DATE, value); }
public void setStorageUsed(long value) { setProperty(UPnP.STORAGE_USED, value); }
public void setAlbumArtURI(String value) { setProperty(UPnP.ALBUMART_URI, value); }
public void setAlbumArtURI(String value) { setProperty(UPnP.ALBUMART_URI, value); }
public void setStorageMedium(String value) { setProperty(UPnP.STORAGE_MEDIUM, value); }
public void setDate(String value) { setProperty(DC.DATE, value); }
public void setCreator(String name) { setProperty(DC.CREATOR, name); }
public void setStorageUsed(long value) { setProperty(UPnP.STORAGE_USED, value); }
public boolean set(Node node) { // Child Node -> Property; int nNode = node.getNNodes(); for (int n=0; n<nNode; n++) { Node cnode = node.getNode(n); if (ContainerNode.isContainerNode(cnode) == true) continue; if (ItemNode.isItemNode(cnode) == true) continue; if (ResourceNode.isResourceNode(cnode) == true) { ResourceNode resNode = new ResourceNode(); resNode.set(cnode); addResourceNode(resNode); continue; } setProperty(cnode.getName(), cnode.getValue()); } // Attribute -> Attribute; int nAttr = node.getNAttributes(); for (int n=0; n<nAttr; n++) { Attribute attr = node.getAttribute(n); setAttribute(attr.getName(), attr.getValue()); } return true; }
public boolean set(Node node) { // Child Node -> Property; int nNode = node.getNNodes(); for (int n=0; n<nNode; n++) { Node cnode = node.getNode(n); if (ContainerNode.isContainerNode(cnode) == true) continue; if (ItemNode.isItemNode(cnode) == true) continue; if (ResourceNode.isResourceNode(cnode) == true) { ResourceNode resNode = new ResourceNode(); resNode.set(cnode); addResourceNode(resNode); continue; } setProperty(cnode.getName(), cnode.getValue()); } // Attribute -> Attribute; int nAttr = node.getNAttributes(); for (int n=0; n<nAttr; n++) { Attribute attr = node.getAttribute(n); setAttribute(attr.getName(), attr.getValue()); } return true; }