org.apache.jetspeed.capabilities.impl
Class MediaTypeImpl

java.lang.Object
  extended by org.apache.jetspeed.capabilities.impl.MediaTypeImpl
All Implemented Interfaces:
org.apache.jetspeed.capabilities.MediaType

public class MediaTypeImpl
extends Object
implements org.apache.jetspeed.capabilities.MediaType

Default bean like implementation of MediaTypeEntry interface suitable for serializing with Castor

Version:
$Id: MediaTypeImpl.java 516448 2007-03-09 16:25:47Z ate $
Author:
Raphaël Luta

Field Summary
private  Collection capabilities
           
protected  String characterSet
           
private  String description
           
private  int mediatypeId
           
private  Collection mimetypes
           
private  String name
           
private  String title
           
 
Constructor Summary
MediaTypeImpl()
           
MediaTypeImpl(long id, String name, int _hidden, String mimeType, String title, String description, String image, String role)
           
 
Method Summary
 void addCapability(org.apache.jetspeed.capabilities.Capability capability)
           
 void addMimetype(org.apache.jetspeed.capabilities.MimeType mimeType)
           
 boolean equals(Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 Collection getCapabilities()
           
 String getCharacterSet()
           
 String getDescription()
           
 int getMediatypeId()
          Get MediaType ID -- Return ID
 Collection getMimetypes()
           
 String getName()
          Get name ob MediaTypeEntry
 String getTitle()
           
 void removeMimetype(String name)
           
 void setCapabilities(Collection capabilities)
           
 void setCharacterSet(String charSet)
          Sets the character set associated with this MediaType
 void setDescription(String desc)
           
 void setMediatypeId(int id)
          Set MediaType ID -- Assigns ID
 void setMimetypes(Collection mimetypes)
           
 void setName(String name)
          Set name ob MediaTypeEntry
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

characterSet

protected String characterSet

capabilities

private Collection capabilities

mimetypes

private Collection mimetypes

mediatypeId

private int mediatypeId

title

private String title

description

private String description

name

private String name
Constructor Detail

MediaTypeImpl

public MediaTypeImpl()

MediaTypeImpl

public MediaTypeImpl(long id,
                     String name,
                     int _hidden,
                     String mimeType,
                     String title,
                     String description,
                     String image,
                     String role)
Method Detail

equals

public boolean equals(Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.

Overrides:
equals in class Object

getCharacterSet

public String getCharacterSet()
Specified by:
getCharacterSet in interface org.apache.jetspeed.capabilities.MediaType
Returns:
the character set associated with this MediaType

setCharacterSet

public void setCharacterSet(String charSet)
Sets the character set associated with this MediaType

Specified by:
setCharacterSet in interface org.apache.jetspeed.capabilities.MediaType

getCapabilities

public Collection getCapabilities()
Specified by:
getCapabilities in interface org.apache.jetspeed.capabilities.MediaType

setCapabilities

public void setCapabilities(Collection capabilities)
Specified by:
setCapabilities in interface org.apache.jetspeed.capabilities.MediaType

getMimetypes

public Collection getMimetypes()
Specified by:
getMimetypes in interface org.apache.jetspeed.capabilities.MediaType

setMimetypes

public void setMimetypes(Collection mimetypes)
Specified by:
setMimetypes in interface org.apache.jetspeed.capabilities.MediaType

addMimetype

public void addMimetype(org.apache.jetspeed.capabilities.MimeType mimeType)
Specified by:
addMimetype in interface org.apache.jetspeed.capabilities.MediaType

addCapability

public void addCapability(org.apache.jetspeed.capabilities.Capability capability)
Specified by:
addCapability in interface org.apache.jetspeed.capabilities.MediaType

removeMimetype

public void removeMimetype(String name)
Specified by:
removeMimetype in interface org.apache.jetspeed.capabilities.MediaType

setMediatypeId

public void setMediatypeId(int id)
Set MediaType ID -- Assigns ID

Specified by:
setMediatypeId in interface org.apache.jetspeed.capabilities.MediaType
Parameters:
id -

getMediatypeId

public int getMediatypeId()
Get MediaType ID -- Return ID

Specified by:
getMediatypeId in interface org.apache.jetspeed.capabilities.MediaType
Returns:
MediaTypeID

setName

public void setName(String name)
Set name ob MediaTypeEntry

Specified by:
setName in interface org.apache.jetspeed.capabilities.MediaType

getName

public String getName()
Get name ob MediaTypeEntry

Specified by:
getName in interface org.apache.jetspeed.capabilities.MediaType

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.jetspeed.capabilities.MediaType

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.apache.jetspeed.capabilities.MediaType

getDescription

public String getDescription()
Specified by:
getDescription in interface org.apache.jetspeed.capabilities.MediaType

setDescription

public void setDescription(String desc)
Specified by:
setDescription in interface org.apache.jetspeed.capabilities.MediaType


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.