|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.capabilities.impl.MediaTypeImpl
public class MediaTypeImpl
Default bean like implementation of MediaTypeEntry interface suitable for serializing with Castor
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 |
---|
protected String characterSet
private Collection capabilities
private Collection mimetypes
private int mediatypeId
private String title
private String description
private String name
Constructor Detail |
---|
public MediaTypeImpl()
public MediaTypeImpl(long id, String name, int _hidden, String mimeType, String title, String description, String image, String role)
Method Detail |
---|
public boolean equals(Object object)
equals
in class Object
public String getCharacterSet()
getCharacterSet
in interface org.apache.jetspeed.capabilities.MediaType
public void setCharacterSet(String charSet)
setCharacterSet
in interface org.apache.jetspeed.capabilities.MediaType
public Collection getCapabilities()
getCapabilities
in interface org.apache.jetspeed.capabilities.MediaType
public void setCapabilities(Collection capabilities)
setCapabilities
in interface org.apache.jetspeed.capabilities.MediaType
public Collection getMimetypes()
getMimetypes
in interface org.apache.jetspeed.capabilities.MediaType
public void setMimetypes(Collection mimetypes)
setMimetypes
in interface org.apache.jetspeed.capabilities.MediaType
public void addMimetype(org.apache.jetspeed.capabilities.MimeType mimeType)
addMimetype
in interface org.apache.jetspeed.capabilities.MediaType
public void addCapability(org.apache.jetspeed.capabilities.Capability capability)
addCapability
in interface org.apache.jetspeed.capabilities.MediaType
public void removeMimetype(String name)
removeMimetype
in interface org.apache.jetspeed.capabilities.MediaType
public void setMediatypeId(int id)
setMediatypeId
in interface org.apache.jetspeed.capabilities.MediaType
id
- public int getMediatypeId()
getMediatypeId
in interface org.apache.jetspeed.capabilities.MediaType
public void setName(String name)
setName
in interface org.apache.jetspeed.capabilities.MediaType
public String getName()
getName
in interface org.apache.jetspeed.capabilities.MediaType
public String getTitle()
getTitle
in interface org.apache.jetspeed.capabilities.MediaType
public void setTitle(String title)
setTitle
in interface org.apache.jetspeed.capabilities.MediaType
public String getDescription()
getDescription
in interface org.apache.jetspeed.capabilities.MediaType
public void setDescription(String desc)
setDescription
in interface org.apache.jetspeed.capabilities.MediaType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |