org.apache.woden.ant

## Class ValidateWSDL20

- java.lang.Object
- - org.apache.tools.ant.ProjectComponent
  - - org.apache.tools.ant.Task
    - - org.apache.tools.ant.taskdefs.MatchingTask
      - - org.apache.woden.ant.ValidateWSDL20

- All Implemented Interfaces:
    Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

      public class ValidateWSDL20
      extends org.apache.tools.ant.taskdefs.MatchingTask

  This is an Ant task to validate WSDL 2.0 files. Parameters: The `dir` attribute is a file directory for the fileset of WSDL 2.0 files to validate. You specify files in include and exclude using the usual Ant attributes and elements. The `failonerror` attribute is a boolean flag with the usual meaning. The `verbose` attribute is a boolean flag that enables verbose output. The `cm` attribute is a boolean flag that enables Component Model interchange format output. The default is false. The `cmdir` attribute is a file directory for the Component Model interchange format output files. This is ignored if `cm` is false. The default is to use the input directory as specified by the `dir` attribute. The `cmext` attribute is the file extension to use for the Component Model interchange format output files. This is ignored if `cm` is false. The default is `.wsdlcm`.
  Author:
    Arthur Ryman (ryman@ca.ibm.com) TODO: add support writing out failed assertions in XML

- - ### Field Summary

    - ### Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask

      `fileset`

    - ### 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

    Constructors
    Constructor and Description
    `ValidateWSDL20()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute()`
    `File` | `getCmdir()` Gets the directory for component model interchange formal output.
    `String` | `getCmext()` Gets the component model interchange format file extension.
    `File` | `getDir()` Gets the input WSDL fileset directory.
    `File` | `getReport()` Gets the output report file.
    `boolean` | `isCm()` Tests for component model interchange formal output.
    `boolean` | `isFailOnError()` Tests for fail on error behavior.
    `boolean` | `isVerbose()` Tests for verbose console output.
    `void` | `setBaseURI(String baseURI)` Sets the resolver base URI path.
    `void` | `setCatalog(String catalog)` Sets the resolver catalog file.
    `void` | `setCm(boolean cm)` Enables component model interchange format output.
    `void` | `setCmdir(File cmdir)` Sets the directory for component model interchange formal output.
    `void` | `setCmext(String cmext)` Sets the component model interchange format file extension.
    `void` | `setDir(File dir)` Sets the input WSDL fileset directory.
    `void` | `setFailOnError(boolean failOnError)` Enables fail on error behavior.
    `void` | `setImplName(String implName)` Sets the implementation name to test against.
    `void` | `setReport(File report)` Sets the output report file.
    `void` | `setVerbose(boolean verbose)` Enables verbose console output.

    - ### Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask

      `add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems`

    - ### 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`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ValidateWSDL20

          public ValidateWSDL20()

  - ### Method Detail

    - #### getDir

          public File getDir()

      Gets the input WSDL fileset directory.
      Returns:
        the directory

    - #### setDir

          public void setDir(File dir)

      Sets the input WSDL fileset directory.
      Parameters:
        `dir` - the directory

    - #### setFailOnError

          public void setFailOnError(boolean failOnError)

      Enables fail on error behavior.
      Parameters:
        `failOnError` - the flag

    - #### isFailOnError

          public boolean isFailOnError()

      Tests for fail on error behavior.
      Returns:
        the flag

    - #### setVerbose

          public void setVerbose(boolean verbose)

      Enables verbose console output.
      Parameters:
        `verbose` - the flag

    - #### isVerbose

          public boolean isVerbose()

      Tests for verbose console output.
      Returns:
        the flag

    - #### setCm

          public void setCm(boolean cm)

      Enables component model interchange format output.
      Parameters:
        `cm` - the flag

    - #### isCm

          public boolean isCm()

      Tests for component model interchange formal output.
      Returns:
        the flag

    - #### setCmdir

          public void setCmdir(File cmdir)

      Sets the directory for component model interchange formal output.
      Parameters:
        `cmdir` - the directory

    - #### getCmdir

          public File getCmdir()

      Gets the directory for component model interchange formal output.
      Returns:
        the directory

    - #### setCmext

          public void setCmext(String cmext)

      Sets the component model interchange format file extension.
      Parameters:
        `cmext` - the extension

    - #### getCmext

          public String getCmext()

      Gets the component model interchange format file extension.
      Returns:
        the extension

    - #### getReport

          public File getReport()

      Gets the output report file.
      Returns:
        the file

    - #### setReport

          public void setReport(File report)

      Sets the output report file.
      Parameters:
        `report` - the file

    - #### setImplName

          public void setImplName(String implName)

      Sets the implementation name to test against.
      Parameters:
        `implName` - The name of the implementation.

    - #### execute

          public void execute()
                       throws org.apache.tools.ant.BuildException

      Overrides:
        `execute` in class `org.apache.tools.ant.Task`
      Throws:
        `org.apache.tools.ant.BuildException`

    - #### setCatalog

          public void setCatalog(String catalog)

      Sets the resolver catalog file.
      Parameters:
        `catalog` - resolver catalog file URI

    - #### setBaseURI

          public void setBaseURI(String baseURI)

      Sets the resolver base URI path.
      Parameters:
        `baseURI` - base URI path

Copyright ? Apache Software Foundation. All Rights Reserved.