org.norther.tammi.spray.engine.content
Interface Content

All Known Implementing Classes:
ContentTool, PageTool

public interface Content

An interface to content tools. The content is returned by the toString method when referring to a Content implementation in a template context.

Version:
$Id: Content.java,v 1.5 2009/09/28 15:08:31 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 Content clear()
          Clears the content.
 CharSequence get()
          Gets the content.
 String getTarget()
          The the current content processing target.
 String getTargetEncoding()
          The the content processing target encoding.
 Writer getTargetWriter()
          Gets the content processing target writer.
 CharSequence set(CharSequence content)
          Sets the content.
 String toString()
          Converts the content into a string and returns the result.
 

Method Detail

get

CharSequence get()
Gets the content.

Returns:
the content.

set

CharSequence set(CharSequence content)
Sets the content.

Parameters:
content - the content.
Returns:
the previous content.

clear

Content clear()
Clears the content.

Returns:
the updated content.

toString

String toString()
Converts the content into a string and returns the result. After conversion, the content will be cleared for new pages.

Overrides:
toString in class Object
Returns:
the content.

getTarget

String getTarget()
The the current content processing target.

Returns:
the target name.

getTargetEncoding

String getTargetEncoding()
The the content processing target encoding.

Returns:
the target encoding.

getTargetWriter

Writer getTargetWriter()
Gets the content processing target writer.

Returns:
the target writer.


Copyright © 2004 The Norther Organization. All rights reserved.