org.apache.commons.jelly.tags.ant
Class AntTag
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.MapTagSupport
|
+--org.apache.commons.jelly.tags.ant.AntTag
- All Implemented Interfaces:
- DynaTag, Tag, TaskSource
- public class AntTag
- extends MapTagSupport
- implements TaskSource
Tag supporting ant's Tasks as well as
dynamic runtime behaviour for 'unknown' tags.
- Author:
- bob mcwhirter, James Strachan
Field Summary |
protected java.lang.Object |
object
The general object underlying this tag. |
protected java.lang.String |
tagName
The name of this tag. |
protected org.apache.tools.ant.Task |
task
Task, if this tag represents a task. |
Constructor Summary |
AntTag(org.apache.tools.ant.Project project,
java.lang.String tagName)
Construct with a project and tag name. |
Method Summary |
java.lang.Object |
createDataType(java.lang.String name)
|
java.lang.Object |
createNestedObject(java.lang.Object object,
java.lang.String name)
Creates a nested object of the given object with the specified name |
org.apache.tools.ant.Task |
createTask(java.lang.String taskName)
|
org.apache.tools.ant.Task |
createTask(java.lang.String taskName,
java.lang.Class taskType)
|
void |
doTag(XMLOutput output)
Evaluates this tag after all the tags properties have been initialized. |
org.apache.tools.ant.Project |
getAntProject()
|
java.lang.String |
getTagName()
|
java.lang.Object |
getTaskObject()
Retrieve the general object underlying this tag. |
void |
setAntProject(org.apache.tools.ant.Project project)
|
void |
setBeanProperties()
Sets the properties on the Ant task |
void |
setBeanProperty(java.lang.Object object,
java.lang.String name,
java.lang.Object value)
|
void |
setObject(java.lang.Object object)
Set the object underlying this tag. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
tagName
protected java.lang.String tagName
- The name of this tag.
object
protected java.lang.Object object
- The general object underlying this tag.
task
protected org.apache.tools.ant.Task task
- Task, if this tag represents a task.
AntTag
public AntTag(org.apache.tools.ant.Project project,
java.lang.String tagName)
- Construct with a project and tag name.
- Parameters:
project
- The Ant project.tagName
- The name on the tag.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
doTag
public void doTag(XMLOutput output)
throws java.lang.Exception
- Description copied from interface:
Tag
- Evaluates this tag after all the tags properties have been initialized.
getTagName
public java.lang.String getTagName()
getTaskObject
public java.lang.Object getTaskObject()
- Retrieve the general object underlying this tag.
- Specified by:
getTaskObject
in interface TaskSource
- Returns:
- The object underlying this tag.
setObject
public void setObject(java.lang.Object object)
- Set the object underlying this tag.
- Parameters:
object
- The object.
setAntProject
public void setAntProject(org.apache.tools.ant.Project project)
getAntProject
public org.apache.tools.ant.Project getAntProject()
setBeanProperties
public void setBeanProperties()
throws java.lang.Exception
- Sets the properties on the Ant task
setBeanProperty
public void setBeanProperty(java.lang.Object object,
java.lang.String name,
java.lang.Object value)
throws java.lang.Exception
createNestedObject
public java.lang.Object createNestedObject(java.lang.Object object,
java.lang.String name)
throws java.lang.Exception
- Creates a nested object of the given object with the specified name
createDataType
public java.lang.Object createDataType(java.lang.String name)
throws java.lang.Exception
createTask
public org.apache.tools.ant.Task createTask(java.lang.String taskName)
throws java.lang.Exception
createTask
public org.apache.tools.ant.Task createTask(java.lang.String taskName,
java.lang.Class taskType)
throws java.lang.Exception
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.