org.teleal.cling.support.model
Class DIDLObject
java.lang.Object
org.teleal.cling.support.model.DIDLObject
- Direct Known Subclasses:
- Container, Item
public abstract class DIDLObject
- extends Object
- Author:
- Christian Bauer, Mario Franco
id
protected String id
parentID
protected String parentID
title
protected String title
creator
protected String creator
restricted
protected boolean restricted
writeStatus
protected WriteStatus writeStatus
clazz
protected DIDLObject.Class clazz
resources
protected List<Res> resources
properties
protected List<DIDLObject.Property> properties
descMetadata
protected List<DescMeta> descMetadata
DIDLObject
protected DIDLObject()
DIDLObject
protected DIDLObject(DIDLObject other)
DIDLObject
protected DIDLObject(String id,
String parentID,
String title,
String creator,
boolean restricted,
WriteStatus writeStatus,
DIDLObject.Class clazz,
List<Res> resources,
List<DIDLObject.Property> properties,
List<DescMeta> descMetadata)
getId
public String getId()
setId
public DIDLObject setId(String id)
getParentID
public String getParentID()
setParentID
public DIDLObject setParentID(String parentID)
getTitle
public String getTitle()
setTitle
public DIDLObject setTitle(String title)
getCreator
public String getCreator()
setCreator
public DIDLObject setCreator(String creator)
isRestricted
public boolean isRestricted()
setRestricted
public DIDLObject setRestricted(boolean restricted)
getWriteStatus
public WriteStatus getWriteStatus()
setWriteStatus
public DIDLObject setWriteStatus(WriteStatus writeStatus)
getFirstResource
public Res getFirstResource()
getResources
public List<Res> getResources()
setResources
public DIDLObject setResources(List<Res> resources)
addResource
public DIDLObject addResource(Res resource)
getClazz
public DIDLObject.Class getClazz()
setClazz
public DIDLObject setClazz(DIDLObject.Class clazz)
getProperties
public List<DIDLObject.Property> getProperties()
setProperties
public DIDLObject setProperties(List<DIDLObject.Property> properties)
addProperty
public DIDLObject addProperty(DIDLObject.Property property)
replaceFirstProperty
public DIDLObject replaceFirstProperty(DIDLObject.Property property)
replaceProperties
public DIDLObject replaceProperties(Class<? extends DIDLObject.Property> propertyClass,
DIDLObject.Property[] properties)
addProperties
public DIDLObject addProperties(DIDLObject.Property[] properties)
removeProperties
public DIDLObject removeProperties(Class<? extends DIDLObject.Property> propertyClass)
hasProperty
public boolean hasProperty(Class<? extends DIDLObject.Property> propertyClass)
getFirstProperty
public <V> DIDLObject.Property<V> getFirstProperty(Class<? extends DIDLObject.Property<V>> propertyClass)
getLastProperty
public <V> DIDLObject.Property<V> getLastProperty(Class<? extends DIDLObject.Property<V>> propertyClass)
getProperties
public <V> DIDLObject.Property<V>[] getProperties(Class<? extends DIDLObject.Property<V>> propertyClass)
getPropertiesByNamespace
public <V> DIDLObject.Property<V>[] getPropertiesByNamespace(Class<? extends DIDLObject.Property.NAMESPACE> namespace)
getFirstPropertyValue
public <V> V getFirstPropertyValue(Class<? extends DIDLObject.Property<V>> propertyClass)
getPropertyValues
public <V> List<V> getPropertyValues(Class<? extends DIDLObject.Property<V>> propertyClass)
getDescMetadata
public List<DescMeta> getDescMetadata()
setDescMetadata
public void setDescMetadata(List<DescMeta> descMetadata)
addDescMetadata
public DIDLObject addDescMetadata(DescMeta descMetadata)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.