org.apache.jetspeed.om.registry.base
Class BaseMediaTypeEntry

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseRegistryEntry
      extended byorg.apache.jetspeed.om.registry.base.BaseMediaTypeEntry
All Implemented Interfaces:
MediaTypeEntry, RegistryEntry, java.io.Serializable

public class BaseMediaTypeEntry
extends BaseRegistryEntry
implements MediaTypeEntry

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

Version:
$Id: BaseMediaTypeEntry.java,v 1.7 2005/03/21 18:21:37 sgala Exp $
Author:
Raphaël Luta
See Also:
Serialized Form

Field Summary
protected  java.lang.String characterSet
           
protected  java.lang.String mimeType
           
 
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
_hidden, hidden, id, metaInfo, name, security, securityRef
 
Constructor Summary
BaseMediaTypeEntry()
           
BaseMediaTypeEntry(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
 boolean equals(java.lang.Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 BaseCapabilityMap getCapabilities()
           
 CapabilityMap getCapabilityMap()
          Returns all supported capablities as CapabilityMap.
 java.lang.String getCharacterSet()
           
 java.lang.String getMimeType()
           
 void setCapabilities(BaseCapabilityMap capabilities)
           
 void setCharacterSet(java.lang.String charSet)
          Sets the character set associated with this MediaType
 void setMimeType(java.lang.String mimeType)
          Sets the MimeType associated with this MediaType
 
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
getBaseMetaInfo, getBaseSecurity, getDescription, getHidden, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setBaseMetaInfo, setBaseSecurity, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.registry.RegistryEntry
getDescription, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 

Field Detail

mimeType

protected java.lang.String mimeType

characterSet

protected java.lang.String characterSet
Constructor Detail

BaseMediaTypeEntry

public BaseMediaTypeEntry()

BaseMediaTypeEntry

public BaseMediaTypeEntry(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

equals

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

Overrides:
equals in class BaseRegistryEntry

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface MediaTypeEntry
Returns:
the mime type associated with this MediaType

setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the MimeType associated with this MediaType

Specified by:
setMimeType in interface MediaTypeEntry
Parameters:
mimeType - the MIME type to associate

getCharacterSet

public java.lang.String getCharacterSet()
Specified by:
getCharacterSet in interface MediaTypeEntry
Returns:
the character set associated with this MediaType

setCharacterSet

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

Specified by:
setCharacterSet in interface MediaTypeEntry

getCapabilityMap

public CapabilityMap getCapabilityMap()
Description copied from interface: MediaTypeEntry
Returns all supported capablities as CapabilityMap. The CapabilityMap contains all capabilities in arbitrary order.

Specified by:
getCapabilityMap in interface MediaTypeEntry
Returns:
the CapabilityMap
See Also:
CapabilityMap

getCapabilities

public BaseCapabilityMap getCapabilities()

setCapabilities

public void setCapabilities(BaseCapabilityMap capabilities)


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.