org.jboss.portal.server.theme.strategy
Class AbstractLayoutStrategy

java.lang.Object
  extended by org.jboss.portal.server.theme.strategy.AbstractLayoutStrategy
All Implemented Interfaces:
LayoutStrategy
Direct Known Subclasses:
DefaultStrategyImpl

public abstract class AbstractLayoutStrategy
extends java.lang.Object
implements LayoutStrategy

Abstract implementation of the layout strategy interface.

This implementation serves as base class for all layout strategies. All strategies have to extend this class.

See Also:
LayoutStrategy

Constructor Summary
AbstractLayoutStrategy()
           
 
Method Summary
 java.lang.String getAppName()
          Get the name of the application (the WAR) that contains this strategy.
 MediaType getMediaType()
          Get the media type (content/mime type) this strategy is assigned to.
 java.lang.String getName()
          Get the name of this strategy.
 void setAppName(java.lang.String appName)
          Set the name of the application that contains this strategy.
 void setMediaType(MediaType mediaType)
          Set the media type (the content type) of this strategy.
 void setName(java.lang.String name)
          Set the name of this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.portal.server.theme.strategy.LayoutStrategy
evaluate
 

Constructor Detail

AbstractLayoutStrategy

public AbstractLayoutStrategy()
Method Detail

setMediaType

public void setMediaType(MediaType mediaType)
Set the media type (the content type) of this strategy.

Parameters:
mediaType - the media type to set

getMediaType

public MediaType getMediaType()
Get the media type (content/mime type) this strategy is assigned to.

Returns:
the media type this strategy handles

getName

public java.lang.String getName()
Get the name of this strategy.

Returns:
the name of this strategy

setName

public void setName(java.lang.String name)
Set the name of this strategy.

Parameters:
name - the name of this strategy

getAppName

public java.lang.String getAppName()
Get the name of the application (the WAR) that contains this strategy.

Returns:
the name of the application (the WAR) that contains this strategy

setAppName

public void setAppName(java.lang.String appName)
Set the name of the application that contains this strategy.

Parameters:
appName - the name of the application that contains this strategy