Package org.apache.tools.ant.taskdefs
Class AntStructure
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.AntStructure
- All Implemented Interfaces:
- Cloneable
Creates a partial DTD for Ant from the currently known tasks.
- Since:
- Ant 1.1
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceWrites the actual structure information.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidThe StructurePrinter to use.protected booleanareNmtokens(String[] s) Do the Strings all match the XML-NMTOKEN production?voidexecute()Build the antstructure DTD.protected booleanDoes this String match the XML-NMTOKEN production?voidThe output file.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
AntStructurepublic AntStructure()
 
- 
- 
Method Details- 
setOutputThe output file.- Parameters:
- output- the output file
 
- 
addThe StructurePrinter to use.- Parameters:
- p- the printer to use.
- Since:
- Ant 1.7
 
- 
executeBuild the antstructure DTD.- Overrides:
- executein class- Task
- Throws:
- BuildException- if the DTD cannot be written.
 
- 
isNmtokenDoes this String match the XML-NMTOKEN production?- Parameters:
- s- the string to test
- Returns:
- true if the string matches the XML-NMTOKEN
 
- 
areNmtokensDo 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
 
 
-