|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.AntStructure
public class AntStructure
Creates a partial DTD for Ant from the currently known tasks.
| Nested Class Summary | |
|---|---|
static interface |
AntStructure.StructurePrinter
Writes the actual structure information. |
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
AntStructure()
|
|
| Method Summary | |
|---|---|
void |
add(AntStructure.StructurePrinter p)
The StructurePrinter to use. |
protected boolean |
areNmtokens(java.lang.String[] s)
Do the Strings all match the XML-NMTOKEN production? |
void |
execute()
Build the antstructure DTD. |
protected boolean |
isNmtoken(java.lang.String s)
Does this String match the XML-NMTOKEN production? |
void |
setOutput(java.io.File output)
The output file. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntStructure()
| Method Detail |
|---|
public void setOutput(java.io.File output)
output - the output filepublic void add(AntStructure.StructurePrinter p)
p - the printer to use.
public void execute()
throws BuildException
execute in class TaskBuildException - if the DTD cannot be written.protected boolean isNmtoken(java.lang.String s)
s - the string to test
protected boolean areNmtokens(java.lang.String[] s)
Otherwise they are not suitable as an enumerated attribute, for example.
s - the array of string to test
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||