com.adactus.mpeg21.didl.entity
Class ResourceType
java.lang.Object
com.adactus.mpeg21.didl.entity.DIDLBaseType
com.adactus.mpeg21.didl.entity.DIDLChildType
com.adactus.mpeg21.didl.entity.ResourceType
- All Implemented Interfaces:
- Resource, java.io.Serializable, javolution.lang.Reusable
public class ResourceType
- extends DIDLChildType
- implements Resource, javolution.lang.Reusable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
- See Also:
- Constant Field Values
ResourceType
public ResourceType()
getContentEncoding
public java.lang.String getContentEncoding()
- Description copied from interface:
Resource
- Get the content encoding of this statement, for example .zip or .gz.
- Specified by:
getContentEncoding
in interface Resource
- Returns:
- the content encoding, null if none
getEncoding
public java.lang.String getEncoding()
- Description copied from interface:
Resource
- Get the encoding of this statement.
- Specified by:
getEncoding
in interface Resource
- Returns:
- the encoding, null if none
getMimeType
public java.lang.String getMimeType()
- Description copied from interface:
Resource
- Get the mime-type of this resource.
- Specified by:
getMimeType
in interface Resource
- Returns:
- the mime-type
getParent
public DIDLParentType getParent()
getRef
public java.lang.String getRef()
- Description copied from interface:
Resource
- Get the URL reference of the textual value represented by this statement
- Specified by:
getRef
in interface Resource
- Returns:
- the reference or null if not set
getTextContent
public java.lang.String getTextContent()
- Description copied from interface:
Resource
- Get the plain text content of this statement
- Specified by:
getTextContent
in interface Resource
- Returns:
- the text content or null if not set
newInstance
public static ResourceType newInstance()
recycle
public static void recycle(ResourceType type)
reset
public void reset()
- Specified by:
reset
in interface javolution.lang.Reusable
setContentEncoding
public void setContentEncoding(java.lang.String contentEncoding)
setEncoding
public void setEncoding(java.lang.String encoding)
setMimeType
public void setMimeType(java.lang.String mimeType)
setParent
public void setParent(DIDLParentType parent)
setRef
public void setRef(java.lang.String ref)
setTextContent
public void setTextContent(java.lang.String textContent)