public ImageItem setPublishers(Person[] publishers) { removeProperties(DC.PUBLISHER.class); for (Person publisher : publishers) { addProperty(new DC.PUBLISHER(publisher)); } return this; }
public StorageMedium getStorageMedium() { return getFirstPropertyValue(UPNP.STORAGE_MEDIUM.class); }
public Person[] getPublishers() { List<Person> list = getPropertyValues(DC.PUBLISHER.class); return list.toArray(new Person[list.size()]); }
specificItems.add(new ImageItem(genericItem)); } else if (Photo.CLASS.getValue().equals(genericType)) { specificItems.add(new Photo(genericItem));
public ImageItem setStorageMedium(StorageMedium storageMedium) { replaceFirstProperty(new UPNP.STORAGE_MEDIUM(storageMedium)); return this; }
public ImageItem(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 ImageItem() { setClazz(CLASS); }
@Override public String getCount() { try { SimpleDateFormat formatIn = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US); Date date = formatIn.parse(((ImageItem) item).getDate()); DateFormat formatOut = DateFormat.getDateTimeInstance(); return formatOut.format(date); } catch (Exception e) {} return ""; }
specificItems.add(new ImageItem(genericItem)); } else if (Photo.CLASS.getValue().equals(genericType)) { specificItems.add(new Photo(genericItem));
public ImageItem setLongDescription(String description) { replaceFirstProperty(new UPNP.LONG_DESCRIPTION(description)); return this; }
public ImageItem(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 ImageItem() { setClazz(CLASS); }
@Override public String getCount() { try { SimpleDateFormat formatIn = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US); Date date = formatIn.parse(((ImageItem) item).getDate()); DateFormat formatOut = DateFormat.getDateTimeInstance(); return formatOut.format(date); } catch (Exception e) {} return ""; }
public ImageItem setRights(String[] rights) { removeProperties(DC.RIGHTS.class); for (String right : rights) { addProperty(new DC.RIGHTS(right)); } return this; } }
public String getDescription() { return getFirstPropertyValue(DC.DESCRIPTION.class); }
res.setResolution((int) width, (int) height); addItem(new ImageItem(id, parentID, title, "", res));
public ImageItem setDescription(String description) { replaceFirstProperty(new DC.DESCRIPTION(description)); return this; }
public String[] getRights() { List<String> list = getPropertyValues(DC.RIGHTS.class); return list.toArray(new String[list.size()]); }
public ImageItem(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 ImageItem() { setClazz(CLASS); }