org.apache.maven.jelly.tags.maven
Class ParamCheck

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.maven.jelly.tags.BaseTagSupport
          extended byorg.apache.maven.jelly.tags.maven.ParamCheck
All Implemented Interfaces:
Tag

public class ParamCheck
extends BaseTagSupport

A tag to check parameters are being passed correctly


Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ParamCheck()
           
 
Method Summary
 void doTag(XMLOutput output)
           
 java.lang.String getMessage()
           
 void setFail(boolean failOrNot)
           
 void setMessage(java.lang.String string)
           
 void setValue(java.lang.String string)
           
 
Methods inherited from class org.apache.maven.jelly.tags.BaseTagSupport
checkAttribute, getMavenContext
 
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

ParamCheck

public ParamCheck()
Method Detail

doTag

public void doTag(XMLOutput output)
           throws JellyTagException
Throws:
JellyTagException

setFail

public void setFail(boolean failOrNot)
Parameters:
failOrNot - whether this tag should throw an exception if the value is empty

getMessage

public java.lang.String getMessage()
                            throws JellyTagException
Returns:
the message field if not null, or the body of the tag if it is
Throws:
JellyTagException

setMessage

public void setMessage(java.lang.String string)
Parameters:
string - the message to display when the value is empty

setValue

public void setValue(java.lang.String string)
Parameters:
string - the value to check


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.