com.adactus.mpeg21.didl.entity
Class ResourceType

java.lang.Object
  extended by com.adactus.mpeg21.didl.entity.DIDLBaseType
      extended by com.adactus.mpeg21.didl.entity.DIDLChildType
          extended by 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

Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
ResourceType()
           
 
Method Summary
 java.lang.String getContentEncoding()
          Get the content encoding of this statement, for example .zip or .gz.
 java.lang.String getEncoding()
          Get the encoding of this statement.
 java.lang.String getMimeType()
          Get the mime-type of this resource.
 DIDLParentType getParent()
           
 java.lang.String getRef()
          Get the URL reference of the textual value represented by this statement
 java.lang.String getTextContent()
          Get the plain text content of this statement
static ResourceType newInstance()
           
static void recycle(ResourceType type)
           
 void reset()
           
 void setContentEncoding(java.lang.String contentEncoding)
           
 void setEncoding(java.lang.String encoding)
           
 void setMimeType(java.lang.String mimeType)
           
 void setParent(DIDLParentType parent)
           
 void setRef(java.lang.String ref)
           
 void setTextContent(java.lang.String textContent)
           
 
Methods inherited from class com.adactus.mpeg21.didl.entity.DIDLChildType
getId, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_NAME

public static final java.lang.String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

ResourceType

public ResourceType()
Method Detail

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)