/*
* Copyright (C) 2010 Teleal GmbH, Switzerland
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.teleal.cling.support.model.item;
import org.teleal.cling.support.model.DIDLObject;
import org.teleal.cling.support.model.DescMeta;
import org.teleal.cling.support.model.Res;
import org.teleal.cling.support.model.WriteStatus;
import org.teleal.cling.support.model.container.Container;
import java.util.ArrayList;
import java.util.List;
/**
* @author Christian Bauer
*/
public class Item extends DIDLObject {
protected String refID;
public Item() {
}
public Item(Item other) {
super(other);
setRefID(other.getRefID());
}
public Item(String id, String parentID, String title, String creator, boolean restricted, WriteStatus writeStatus, Class clazz, List<Res> resources, List<Property> properties, List<DescMeta> descMetadata) {
super(id, parentID, title, creator, restricted, writeStatus, clazz, resources, properties, descMetadata);
}
public Item(String id, String parentID, String title, String creator, boolean restricted, WriteStatus writeStatus, Class clazz, List<Res> resources, List<Property> properties, List<DescMeta> descMetadata, String refID) {
super(id, parentID, title, creator, restricted, writeStatus, clazz, resources, properties, descMetadata);
this.refID = refID;
}
public Item(String id, Container parent, String title, String creator, DIDLObject.Class clazz) {
this(id, parent.getId(), title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList());
}
public Item(String id, Container parent, String title, String creator, DIDLObject.Class clazz, String refID) {
this(id, parent.getId(), title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList(), refID);
}
public Item(String id, String parentID, String title, String creator, DIDLObject.Class clazz) {
this(id, parentID, title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList());
}
public Item(String id, String parentID, String title, String creator, DIDLObject.Class clazz, String refID) {
this(id, parentID, title, creator, false, null, clazz, new ArrayList(), new ArrayList(), new ArrayList(), refID);
}
public String getRefID() {
return refID;
}
public void setRefID(String refID) {
this.refID = refID;
}
}