|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.taglib.template.util.Content
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:
Field Summary | |
private 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. |
private 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. |
Constructor Summary | |
Content(java.lang.String content,
java.lang.String direct)
The only constructor. |
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
|
Field Detail |
private final java.lang.String content
private final java.lang.String direct
Constructor Detail |
public Content(java.lang.String content, java.lang.String direct)
content
- The content's URIdirect
- Is content printed directly (true) or included (false)?Method Detail |
public java.lang.String getContent()
public boolean isDirect()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |