org.apache.pluto.om.portlet
Interface ContentType

All Superinterfaces:
Model

public interface ContentType
extends Model

This interface provides access to a content type and its supported portlet modes. A content type is defined as part of a portlet application in the portlet.xml. It is accessible via the ServletDefinition as it is bound to the application code.

This interface defines the model as known from the MVC pattern. Its purpose is to provide read access to the data stored in the model.


Method Summary
 java.lang.String getContentType()
          Returns the content type The return value cannot be NULL.
 java.util.Iterator getPortletModes()
          Returns all portlet modes for this content type
 boolean supportsPortletMode(javax.portlet.PortletMode portletMode)
          Returns true if the given portlet mode is supported for this content type.
 

Method Detail

getContentType

public java.lang.String getContentType()
Returns the content type The return value cannot be NULL.

Returns:
the content type

getPortletModes

public java.util.Iterator getPortletModes()
Returns all portlet modes for this content type

Returns:
an iterator over javax.portlet.PortletMode objects

supportsPortletMode

public boolean supportsPortletMode(javax.portlet.PortletMode portletMode)
Returns true if the given portlet mode is supported for this content type.

Returns:
boolean


Copyright © 2003-2006 . All Rights Reserved.