Java Code Examples for org.fourthline.cling.support.model.DIDLObject#getPropertiesByNamespace()

The following examples show how to use org.fourthline.cling.support.model.DIDLObject#getPropertiesByNamespace() . 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: DIDLParser.java    From TVRemoteIME with GNU General Public License v2.0 5 votes vote down vote up
protected void appendProperties(Document descriptor, Element parent, DIDLObject object, String prefix,
                                Class<? extends DIDLObject.Property.NAMESPACE> namespace,
                                String namespaceURI) {
    for (DIDLObject.Property<Object> property : object.getPropertiesByNamespace(namespace)) {
        Element el = descriptor.createElementNS(namespaceURI, prefix + ":" + property.getDescriptorName());
        parent.appendChild(el);
        property.setOnElement(el);
    }
}
 
Example 2
Source File: DIDLParser.java    From DroidDLNA with GNU General Public License v3.0 5 votes vote down vote up
protected void appendProperties(Document descriptor, Element parent, DIDLObject object, String prefix,
                                Class<? extends DIDLObject.Property.NAMESPACE> namespace,
                                String namespaceURI) {
    for (DIDLObject.Property<Object> property : object.getPropertiesByNamespace(namespace)) {
        Element el = descriptor.createElementNS(namespaceURI, prefix + ":" + property.getDescriptorName());
        parent.appendChild(el);
        property.setOnElement(el);
    }
}
 
Example 3
Source File: GenerateXml.java    From DroidDLNA with GNU General Public License v3.0 5 votes vote down vote up
protected void appendProperties(Document descriptor, Element parent,
		DIDLObject object, String prefix,
		Class<? extends DIDLObject.Property.NAMESPACE> namespace,
		String namespaceURI) {
	for (DIDLObject.Property<Object> property : object
			.getPropertiesByNamespace(namespace)) {
		Element el = descriptor.createElementNS(namespaceURI, prefix + ":"
				+ property.getDescriptorName());
		parent.appendChild(el);
		property.setOnElement(el);
	}
}