public DIDLObject addProperties(Property[] properties) { if (properties == null) return this; for (Property property : properties) { addProperty(property); } return this; }
public DIDLObject replaceFirstProperty(Property property) { if (property == null) return this; Iterator<Property> it = getProperties().iterator(); while (it.hasNext()) { Property p = it.next(); if (p.getClass().isAssignableFrom(property.getClass())) it.remove(); } addProperty(property); return this; }
getInstance().setCreator(getCharacters()); } else if ("description".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DESCRIPTION(getCharacters())); } else if ("publisher".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.PUBLISHER(new Person(getCharacters()))); } else if ("contributor".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.CONTRIBUTOR(new Person(getCharacters()))); } else if ("date".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DATE(getCharacters())); } else if ("language".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.LANGUAGE(getCharacters())); } else if ("rights".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RIGHTS(getCharacters())); } else if ("relation".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RELATION(URI.create(getCharacters()))); getInstance().addProperty( new DIDLObject.Property.UPNP.ARTIST( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.ACTOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.AUTHOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty(
public DIDLObject addProperties(Property[] properties) { if (properties == null) return this; for (Property property : properties) { addProperty(property); } return this; }
public DIDLObject replaceFirstProperty(Property property) { if (property == null) return this; Iterator<Property> it = getProperties().iterator(); while (it.hasNext()) { Property p = it.next(); if (p.getClass().isAssignableFrom(property.getClass())) it.remove(); } addProperty(property); return this; }
getInstance().setCreator(getCharacters()); } else if ("description".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DESCRIPTION(getCharacters())); } else if ("publisher".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.PUBLISHER(new Person(getCharacters()))); } else if ("contributor".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.CONTRIBUTOR(new Person(getCharacters()))); } else if ("date".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DATE(getCharacters())); } else if ("language".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.LANGUAGE(getCharacters())); } else if ("rights".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RIGHTS(getCharacters())); } else if ("relation".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RELATION(URI.create(getCharacters()))); getInstance().addProperty( new DIDLObject.Property.UPNP.ARTIST( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.ACTOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.AUTHOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty(
public DIDLObject addProperties(Property[] properties) { if (properties == null) return this; for (Property property : properties) { addProperty(property); } return this; }
public DIDLObject replaceFirstProperty(Property property) { if (property == null) return this; Iterator<Property> it = getProperties().iterator(); while (it.hasNext()) { Property p = it.next(); if (p.getClass().isAssignableFrom(property.getClass())) it.remove(); } addProperty(property); return this; }
getInstance().setCreator(getCharacters()); } else if ("description".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DESCRIPTION(getCharacters())); } else if ("publisher".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.PUBLISHER(new Person(getCharacters()))); } else if ("contributor".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.CONTRIBUTOR(new Person(getCharacters()))); } else if ("date".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.DATE(getCharacters())); } else if ("language".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.LANGUAGE(getCharacters())); } else if ("rights".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RIGHTS(getCharacters())); } else if ("relation".equals(localName)) { getInstance().addProperty(new DIDLObject.Property.DC.RELATION(URI.create(getCharacters()))); getInstance().addProperty( new DIDLObject.Property.UPNP.ARTIST( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.ACTOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty( new DIDLObject.Property.UPNP.AUTHOR( new PersonWithRole(getCharacters(), getAttributes().getValue("role")) getInstance().addProperty(