org.apache.tools.ant.taskdefs

Class AntStructure


public class AntStructure
extends Task

Creates a partial DTD for Ant from the currently known tasks.
Since:
Ant 1.1

Field Summary

Fields inherited from class org.apache.tools.ant.Task

description, location, target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

protected boolean
areNmtokens(String[] s)
Do the Strings all match the XML-NMTOKEN production?

Otherwise they are not suitable as an enumerated attribute, for example.

void
execute()
Build the antstructure DTD.
protected boolean
isNmtoken(String s)
Does this String match the XML-NMTOKEN production?
void
setOutput(File output)
The output file.

Methods inherited from class org.apache.tools.ant.Task

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

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

areNmtokens

protected boolean areNmtokens(String[] s)
Do the Strings all match the XML-NMTOKEN production?

Otherwise they are not suitable as an enumerated attribute, for example.

Parameters:
s - the array of string to test
Returns:
true if all the strings in the array math XML-NMTOKEN

execute

public void execute()
            throws BuildException
Build the antstructure DTD.
Overrides:
execute in interface Task
Throws:
BuildException - if the DTD cannot be written.

isNmtoken

protected boolean isNmtoken(String s)
Does this String match the XML-NMTOKEN production?
Parameters:
s - the string to test
Returns:
true if the string matches the XML-NMTOKEN

setOutput

public void setOutput(File output)
The output file.
Parameters:
output - the output file

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.