|
||||||||||
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 | |
---|---|
protected java.lang.String |
characterSet
|
Constructor Summary | |
---|---|
MediaTypeImpl()
|
|
MediaTypeImpl(long id,
java.lang.String name,
int _hidden,
java.lang.String mimeType,
java.lang.String title,
java.lang.String description,
java.lang.String image,
java.lang.String role)
|
Method Summary | |
---|---|
void |
addCapability(Capability capability)
Add Capability to the Capability collection |
void |
addMimetype(MimeType mimeType)
Add MimeType to the MimeType map |
boolean |
equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal. |
java.util.Collection |
getCapabilities()
Returns all supported capablities as CapabilityMap . |
java.lang.String |
getCharacterSet()
|
java.lang.String |
getDescription()
Get MediaType description |
int |
getMediatypeId()
Get MediaType ID -- Return ID |
java.util.Collection |
getMimetypes()
Returns all supported mimetypes as MimeTypeMap . |
java.lang.String |
getName()
Get name ob MediaTypeEntry |
java.lang.String |
getTitle()
Get Title of MediaType |
void |
removeMimetype(java.lang.String name)
Removes the MimeType to the MimeType map |
void |
setCapabilities(java.util.Collection capabilities)
Set the capabilities |
void |
setCharacterSet(java.lang.String charSet)
Sets the character set associated with this MediaType |
void |
setDescription(java.lang.String desc)
Set description of MediaType |
void |
setMediatypeId(int id)
Set MediaType ID -- Assigns ID |
void |
setMimetypes(java.util.Collection mimetypes)
Set mime types |
void |
setName(java.lang.String name)
Set name ob MediaTypeEntry |
void |
setTitle(java.lang.String title)
Set MediaType title |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String characterSet
Constructor Detail |
---|
public MediaTypeImpl()
public MediaTypeImpl(long id, java.lang.String name, int _hidden, java.lang.String mimeType, java.lang.String title, java.lang.String description, java.lang.String image, java.lang.String role)
Method Detail |
---|
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String getCharacterSet()
getCharacterSet
in interface MediaType
public void setCharacterSet(java.lang.String charSet)
setCharacterSet
in interface MediaType
public java.util.Collection getCapabilities()
MediaType
CapabilityMap
.
The CapabilityMap
contains all capabilities in arbitrary
order.
getCapabilities
in interface MediaType
public void setCapabilities(java.util.Collection capabilities)
MediaType
setCapabilities
in interface MediaType
public java.util.Collection getMimetypes()
MediaType
MimeTypeMap
.
The MimeTypeMap
contains all mimetypes in decreasing
order of importance.
getMimetypes
in interface MediaType
MimeTypeMap
public void setMimetypes(java.util.Collection mimetypes)
MediaType
setMimetypes
in interface MediaType
public void addMimetype(MimeType mimeType)
MediaType
addMimetype
in interface MediaType
mimeType
- mimetype object to addpublic void addCapability(Capability capability)
MediaType
addCapability
in interface MediaType
capability
- capability object to addpublic void removeMimetype(java.lang.String name)
MediaType
removeMimetype
in interface MediaType
name
- of MimeType to removepublic void setMediatypeId(int id)
setMediatypeId
in interface MediaType
id
- public int getMediatypeId()
getMediatypeId
in interface MediaType
public void setName(java.lang.String name)
setName
in interface MediaType
name
- Name of MediaTypepublic java.lang.String getName()
getName
in interface MediaType
public java.lang.String getTitle()
MediaType
getTitle
in interface MediaType
public void setTitle(java.lang.String title)
MediaType
setTitle
in interface MediaType
public java.lang.String getDescription()
MediaType
getDescription
in interface MediaType
public void setDescription(java.lang.String desc)
MediaType
setDescription
in interface MediaType
desc
- Description string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |