org.apache.jetspeed.capabilities.impl
Class MediaTypeImpl

java.lang.Object
  extended byorg.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 188405 2005-03-19 12:47:14Z sgala $
Author:
Rapha?l Luta

Field Summary
private  Vector 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 addMimetype(String name)
           
 boolean equals(Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 Vector 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(Vector 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 Vector 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.


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 Vector getCapabilities()
Specified by:
getCapabilities in interface org.apache.jetspeed.capabilities.MediaType

setCapabilities

public void setCapabilities(Vector 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(String name)
Specified by:
addMimetype 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-2005 Apache Software Foundation. All Rights Reserved.