org.apache.maven.jelly.tags.maven
Class PropertyTag

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

public class PropertyTag
extends BaseTagSupport

A Maven Jelly tag that attempts to retrieve a property from the MavenJellyContext context and uses the provided default value in the event there is no valid value retrieved using the key name provided. You may also optionally provide the name you would like to give the resultant property in the MavenJellyContext.

Author:
Jason van Zyl

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
PropertyTag()
           
 
Method Summary
 void doTag(XMLOutput output)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setName(java.lang.String name)
           
 void setVar(java.lang.String var)
           
 
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

PropertyTag

public PropertyTag()
Method Detail

setName

public void setName(java.lang.String name)

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)

setVar

public void setVar(java.lang.String var)

doTag

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


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