Class TypeFound

  • All Implemented Interfaces:
    java.lang.Cloneable, Condition

    public class TypeFound
    extends ProjectComponent
    implements Condition
    looks for a task or other Ant type that exists. Existence is defined as the type is defined, and its implementation class is present. This will work for datatypes and preset, script and macro definitions.
    • Constructor Detail

      • TypeFound

        public TypeFound()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        the task or other type to look for
        name - the name of the type
      • setURI

        public void setURI​(java.lang.String uri)
        The URI for this definition.
        uri - the namespace URI. If this is not set, use the default ant namespace.
      • doesTypeExist

        protected boolean doesTypeExist​(java.lang.String typename)
        test for a task or other ant type existing in the current project
        typename - the name of the type
        true if the typename exists