| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static interface | AntStructure.
Writes the actual structure information. |
| Modifier and Type | Field and Description |
|---|---|
| private File | |
| private AntStructure. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected boolean | Returns: true if all the strings in the array math XML-NMTOKENthe array of string to test s)Do the Strings all match the XML-NMTOKEN production? |
| public void | |
| protected boolean | |
| public void |
| output | back to summary |
|---|---|
| private File output | |
| printer | back to summary |
|---|---|
| private AntStructure. | |
| AntStructure | back to summary |
|---|---|
| public AntStructure() | |
| add | back to summary |
|---|---|
| public void add(final AntStructure. The StructurePrinter to use.
| |
| areNmtokens | back to summary |
|---|---|
| protected boolean areNmtokens(final String[] s) Do the Strings all match the XML-NMTOKEN production? Otherwise they are not suitable as an enumerated attribute, for example.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Build the antstructure DTD.
| |
| isNmtoken | back to summary |
|---|---|
| protected boolean isNmtoken(final String s) Does this String match the XML-NMTOKEN production?
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(final File output) The output file.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private final Hashtable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final boolean | Returns: true if all the strings in the array math XML-NMTOKENthe array of string to test s)Do the Strings all match the XML-NMTOKEN production? |
| public static final boolean | |
| public void | printElementDecl(final PrintWriter
PrintWriter to write to. out, final Project Project instance for the current task p, final String element name. name, final Class<?> class of the defined element. element)Implements org. |
| public void | printHead(final PrintWriter
PrintWriter to write to. out, final Project Project instance for the current task p, final Hashtable<String, Class<?>> map (name to implementing class) tasks, final Hashtable<String, Class<?>> map (name to implementing class)
data types. types)Implements org. |
| private void | |
| public void | printTail(final PrintWriter
PrintWriter to write to. out)Implements org. |
| private void | printTargetAttrs(final PrintWriter out, final String tag)
Prints the definition for the target element. |
| public void | printTargetDecl(final PrintWriter
PrintWriter to write to. out)Implements org. |
| BOOLEAN | back to summary |
|---|---|
| private static final String BOOLEAN | |
| TASKS | back to summary |
|---|---|
| private static final String TASKS | |
| TYPES | back to summary |
|---|---|
| private static final String TYPES | |
| visited | back to summary |
|---|---|
| private final Hashtable<String, String> visited | |
| DTDPrinter | back to summary |
|---|---|
| private DTDPrinter() | |
| areNmtokens | back to summary |
|---|---|
| public static final boolean areNmtokens(final String[] s) Do the Strings all match the XML-NMTOKEN production? Otherwise they are not suitable as an enumerated attribute, for example.
| |
| isNmtoken | back to summary |
|---|---|
| public static final boolean isNmtoken(final String s) Does this String match the XML-NMTOKEN production?
| |
| printElementDecl | back to summary |
|---|---|
| public void printElementDecl(final PrintWriter out, final Project p, final String name, final Class<?> element) Implements org. Print the definition for a given element.
| |
| printHead | back to summary |
|---|---|
| public void printHead(final PrintWriter out, final Project p, final Hashtable<String, Class<?>> tasks, final Hashtable<String, Class<?>> types) Implements org. Doc from org. Prints the header of the generated output. | |
| printHead | back to summary |
|---|---|
| private void printHead(final PrintWriter out, final Set<String> tasks, final Set<String> types) Prints the header of the generated output. Basically this prints the XML declaration, defines some entities and the project element. | |
| printTail | back to summary |
|---|---|
| public void printTail(final PrintWriter out) Implements org. Doc from org. Prints the trailer.
| |
| printTargetAttrs | back to summary |
|---|---|
| private void printTargetAttrs(final PrintWriter out, final String tag) Prints the definition for the target element. | |
| printTargetDecl | back to summary |
|---|---|
| public void printTargetDecl(final PrintWriter out) Implements org. Prints the definition for the target element.
| |
printHead, printTargetDecl and printTail
are called exactly once, printElementDecl once for
each declared task and type.
| Modifier and Type | Method and Description |
|---|---|
| public void | printElementDecl(PrintWriter
PrintWriter to write to. out, Project Project instance for the current task p, String element name. name, Class<?> class of the defined element. element)Print the definition for a given element. |
| public void | |
| public void | |
| public void | printTargetDecl(PrintWriter
PrintWriter to write to. out)Prints the definition for the target element. |
| printElementDecl | back to summary |
|---|---|
| public void printElementDecl(PrintWriter out, Project p, String name, Class<?> element) Print the definition for a given element.
| |
| printHead | back to summary |
|---|---|
| public void printHead(PrintWriter out, Project p, Hashtable<String, Class<?>> tasks, Hashtable<String, Class<?>> types) Prints the header of the generated output. | |
| printTail | back to summary |
|---|---|
| public void printTail(PrintWriter out) Prints the trailer.
| |
| printTargetDecl | back to summary |
|---|---|
| public void printTargetDecl(PrintWriter out) Prints the definition for the target element.
| |