org.gatein.mop.api.content
Class ContentType<S>

java.lang.Object
  extended by org.gatein.mop.api.content.ContentType<S>
Type Parameters:
S - the content state type parameter

public final class ContentType<S>
extends Object

Represents a content type.

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ContentType(String mimeType, Class<S> stateClass)
          Create a new content type.
 
Method Summary
 boolean equals(Object obj)
           
 String getMimeType()
           
 Class<S> getStateClass()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentType

public ContentType(String mimeType,
                   Class<S> stateClass)
            throws NullPointerException
Create a new content type.

Parameters:
mimeType - the mime type
stateClass - the state class
Throws:
NullPointerException - if any argument is null
Method Detail

getMimeType

public String getMimeType()

getStateClass

public Class<S> getStateClass()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009 eXo Platform SAS. All Rights Reserved.