org.apache.jetspeed.capabilities.impl
Class MimeTypeImpl

java.lang.Object
  extended by org.apache.jetspeed.capabilities.impl.MimeTypeImpl
All Implemented Interfaces:
MimeType

public class MimeTypeImpl
extends java.lang.Object
implements MimeType

Mimetype implementation class.

Version:
$Id: MimeTypeImpl.java 517719 2007-03-13 15:05:48Z ate $
Author:
Roger Ruttimann

Constructor Summary
MimeTypeImpl()
           
 
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.
 int getMimetypeId()
          Get CapabilityId
 java.lang.String getName()
          Get CapabilityId
 int hashCode()
          Implements the hashCode calculation so two different objects with the content return the same hashcode....
 void setMimetypeId(int id)
          Set MimetypeId
 void setName(java.lang.String name)
          Set Capability name
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypeImpl

public MimeTypeImpl()
Method Detail

setMimetypeId

public void setMimetypeId(int id)
Description copied from interface: MimeType
Set MimetypeId

Specified by:
setMimetypeId in interface MimeType

getMimetypeId

public int getMimetypeId()
Description copied from interface: MimeType
Get CapabilityId

Specified by:
getMimetypeId in interface MimeType
Returns:
capabilityId

setName

public void setName(java.lang.String name)
Description copied from interface: MimeType
Set Capability name

Specified by:
setName in interface MimeType

getName

public java.lang.String getName()
Description copied from interface: MimeType
Get CapabilityId

Specified by:
getName in interface MimeType
Returns:
capability string

hashCode

public int hashCode()
Implements the hashCode calculation so two different objects with the content return the same hashcode....

Overrides:
hashCode in class java.lang.Object

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 java.lang.Object
Parameters:
object - to compare this one with
Returns:
true if both objects represent the same (logical) content


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