|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.util.AvailableTag
A tag which evaluates its body if the given file is available. The file can be specified via a File object or via a relative or absolute URI from the current Jelly script.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
AvailableTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.io.File |
getFile()
Returns the file. |
java.lang.String |
getUri()
Returns the uri. |
void |
setFile(java.io.File file)
Sets the file to use to test whether it exists or not. |
void |
setUri(java.lang.String uri)
Sets the URI to use to test for availability. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AvailableTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
public java.io.File getFile()
public java.lang.String getUri()
public void setFile(java.io.File file)
file
- the file to test forpublic void setUri(java.lang.String uri)
uri
- the URI of the file to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |