org.apache.jetspeed.capabilities.impl
Class MimeTypeImpl

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

public class MimeTypeImpl
extends Object
implements org.apache.jetspeed.capabilities.MimeType

Mimetype implementation class.

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

Field Summary
private  int mimeTypeId
           
private  String name
           
 
Constructor Summary
MimeTypeImpl()
           
 
Method Summary
 boolean equals(Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 int getMimetypeId()
           
 String getName()
           
 int hashCode()
          Implements the hashCode calculation so two different objects with the content return the same hashcode....
 void setMimetypeId(int id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mimeTypeId

private int mimeTypeId

name

private String name
Constructor Detail

MimeTypeImpl

public MimeTypeImpl()
Method Detail

setMimetypeId

public void setMimetypeId(int id)
Specified by:
setMimetypeId in interface org.apache.jetspeed.capabilities.MimeType

getMimetypeId

public int getMimetypeId()
Specified by:
getMimetypeId in interface org.apache.jetspeed.capabilities.MimeType

setName

public void setName(String name)
Specified by:
setName in interface org.apache.jetspeed.capabilities.MimeType

getName

public String getName()
Specified by:
getName in interface org.apache.jetspeed.capabilities.MimeType

hashCode

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

Overrides:
hashCode in class Object

equals

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

Overrides:
equals in class Object
Parameters:
object - to compare this one with
Returns:
true if both objects represent the same (logical) content


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