Class AntStructure

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class AntStructure
    extends Task
    Creates a partial DTD for Ant from the currently known tasks.
    Since:
    Ant 1.1
    • Constructor Detail

      • AntStructure

        public AntStructure()
    • Method Detail

      • setOutput

        public void setOutput​(java.io.File output)
        The output file.
        Parameters:
        output - the output file
      • isNmtoken

        protected boolean isNmtoken​(java.lang.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
      • areNmtokens

        protected boolean areNmtokens​(java.lang.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