org.apache.tools.ant.taskdefs
Class MacroDef
Describe class MacroDef
here.
- Ant 1.6
execute , getDescription , getLocation , getOwningTarget , getRuntimeConfigurableWrapper , getTaskName , getTaskType , getWrapper , handleErrorFlush , handleErrorOutput , handleFlush , handleInput , handleOutput , init , isInvalid , log , log , maybeConfigure , perform , reconfigure , setDescription , setLocation , setOwningTarget , setRuntimeConfigurableWrapper , setTaskName , setTaskType |
addConfiguredAttribute
public void addConfiguredAttribute(MacroDef.Attribute attribute)
Add an attribute element.
attribute
- an attribute nested element.
addConfiguredElement
public void addConfiguredElement(MacroDef.TemplateElement element)
Add an element element.
element
- an element nested element.
addConfiguredText
public void addConfiguredText(MacroDef.Text text)
Add the text element.
text
- the nested text element to add
- ant 1.6.1
createSequential
public MacroDef.NestedSequential createSequential()
This is the sequential nested element of the macrodef.
- a sequential element to be configured.
execute
public void execute()
Create a new ant type based on the embedded tasks and types.
- execute in interface Task
getAttributes
public List getAttributes()
- the nested Attributes
getElements
public Map getElements()
- the nested elements
getNestedTask
public UnknownElement getNestedTask()
Convert the nested sequential to an unknown element
- the nested sequential as an unknown element.
getText
public MacroDef.Text getText()
- the nested text element
- ant 1.6.1
isValidNameCharacter
public static boolean isValidNameCharacter(char c)
Check if a character is a valid character for an element or
attribute name
c
- the character to check
- true if the character is a letter or digit or '.' or '-'
attribute name
sameDefinition
public boolean sameDefinition(Object obj)
Equality method for this definition
obj
- another definition
- true if the definitions are the same
setName
public void setName(String name)
Name of the definition
name
- the name of the definition
similar
public boolean similar(Object obj)
Similar method for this definition
obj
- another definition
- true if the definitions are similar
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.