public DIDLObject addResource(Res resource) { getResources().add(resource); return this; }
public Res getFirstResource() { return getResources().size() > 0 ? getResources().get(0) : null; }
protected DIDLObject(DIDLObject other) { this(other.getId(), other.getParentID(), other.getTitle(), other.getCreator(), other.isRestricted(), other.getWriteStatus(), other.getClazz(), other.getResources(), other.getProperties(), other.getDescMetadata() ); }
public DIDLObject addResource(Res resource) { getResources().add(resource); return this; }
public Res getFirstResource() { return getResources().size() > 0 ? getResources().get(0) : null; }
protected DIDLObject(DIDLObject other) { this(other.getId(), other.getParentID(), other.getTitle(), other.getCreator(), other.isRestricted(), other.getWriteStatus(), other.getClazz(), other.getResources(), other.getProperties(), other.getDescMetadata() ); }
public DIDLObject addResource(Res resource) { getResources().add(resource); return this; }
public Res getFirstResource() { return getResources().size() > 0 ? getResources().get(0) : null; }
@Override public String getCount() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getDuration()!=null) ? res.get(0).getDuration().split("\\.")[0] : ""); return ""; }
@Override public String getCount() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getDuration()!=null) ? res.get(0).getDuration().split("\\.")[0] : ""); return ""; }
@Override public String getCount() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getDuration()!=null) ? res.get(0).getDuration().split("\\.")[0] : ""); return ""; }
@Override public String getCount() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getDuration()!=null) ? res.get(0).getDuration().split("\\.")[0] : ""); return ""; }
@Override public String getDescription() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getResolution()!=null) ? res.get(0).getResolution() : ""); return ""; }
@Override public String getDescription() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getResolution()!=null) ? res.get(0).getResolution() : ""); return ""; }
@Override public String getDescription() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getResolution()!=null) ? res.get(0).getResolution() : ""); return ""; }
@Override public String getDescription() { List<Res> res = item.getResources(); if(res!=null && res.size()>0) return "" + ((res.get(0).getResolution()!=null) ? res.get(0).getResolution() : ""); return ""; }
protected DIDLObject(DIDLObject other) { this(other.getId(), other.getParentID(), other.getTitle(), other.getCreator(), other.isRestricted(), other.getWriteStatus(), other.getClazz(), other.getResources(), other.getProperties(), other.getDescMetadata() ); }