org.apache.struts.taglib.template.util

Class Content

Implemented Interfaces:
java.io.Serializable

public class Content
extends java.lang.Object
implements java.io.Serializable

A utility file for templates.

This represents template content, which is included by templates. Templates can also treat content as plain text and print it to the implicit out variable. This simple class maintain two properties:

Version:
$Revision: 1.5 $

Author:
David Geary

See Also:
Serialized Form

Field Summary

private String
content
Templates regard this as content to be either included or printed directly.
private String
direct
Represents a boolean - if true, content is included, otherwise content is printed.

Constructor Summary

Content(String content, String direct)
Deprecated. Use Tiles instead.

Method Summary

String
getContent()
Deprecated. Use Tiles instead.
boolean
isDirect()
Deprecated. Use Tiles instead.
String
toString()
Deprecated. Use Tiles instead.

Field Details

content

private final String content
Templates regard this as content to be either included or printed directly. This is a blank final that is set at construction.


direct

private final String direct
Represents a boolean - if true, content is included, otherwise content is printed. This is a blank final that is set at construction. This is a string instead of a boolean as a convenience for the tags, whose corresponding attribute is a string.

Constructor Details

Content

public Content(String content,
               String direct)

Deprecated. Use Tiles instead.

The only constructor.

Parameters:
content - The content's URI
direct - Is content printed directly (true) or included (false)?

Method Details

getContent

public String getContent()

Deprecated. Use Tiles instead.

Return content.


isDirect

public boolean isDirect()

Deprecated. Use Tiles instead.

Is content to be printed directly (isDirect() == true) instead of included (isDirect() == false).


toString

public String toString()

Deprecated. Use Tiles instead.

Returns a string representation of the content.


Copyright B) 2000-2005 - Apache Software Foundation