org.apache.struts.taglib.template.util
クラス Content

java.lang.Object
  拡張org.apache.struts.taglib.template.util.Content
すべての実装インタフェース:
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:

作成者:
David Geary
関連項目:
直列化された形式

フィールドの概要
private  java.lang.String content
          Templates regard this as content to be either included or printed directly.
private  java.lang.String direct
          Represents a boolean; if true, content is included, otherwise content is printed.
 
コンストラクタの概要
Content(java.lang.String content, java.lang.String direct)
          The only constructor.
 
メソッドの概要
 java.lang.String getContent()
          Return content
 boolean isDirect()
          Is content to be printed directly (isDirect() == true)
instead of included (isDirect() == false)?
 java.lang.String toString()
          Returns a string representation of the content
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

content

private final java.lang.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 java.lang.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.

コンストラクタの詳細

Content

public Content(java.lang.String content,
               java.lang.String direct)
The only constructor.

パラメータ:
content - The content's URI
direct - Is content printed directly (true) or included (false)?
メソッドの詳細

getContent

public java.lang.String getContent()
Return content


isDirect

public boolean isDirect()
Is content to be printed directly (isDirect() == true)
instead of included (isDirect() == false)?


toString

public java.lang.String toString()
Returns a string representation of the content



このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2002 - Apache Software Foundation