org.apache.woden.ant
Class ValidateWSDL20

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.apache.woden.ant.ValidateWSDL20
All Implemented Interfaces:
java.lang.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
ValidateWSDL20()
           
 
Method Summary
 void execute()
           
 java.io.File getCmdir()
          Gets the directory for component model interchange formal output.
 java.lang.String getCmext()
          Gets the component model interchange format file extension.
 java.io.File getDir()
          Gets the input WSDL fileset directory.
 java.io.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(java.lang.String baseURI)
          Sets the resolver base URI path.
 void setCatalog(java.lang.String catalog)
          Sets the resolver catalog file.
 void setCm(boolean cm)
          Enables component model interchange format output.
 void setCmdir(java.io.File cmdir)
          Sets the directory for component model interchange formal output.
 void setCmext(java.lang.String cmext)
          Sets the component model interchange format file extension.
 void setDir(java.io.File dir)
          Sets the input WSDL fileset directory.
 void setFailOnError(boolean failOnError)
          Enables fail on error behavior.
 void setReport(java.io.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 java.io.File getDir()
Gets the input WSDL fileset directory.

Returns:
the directory

setDir

public void setDir(java.io.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(java.io.File cmdir)
Sets the directory for component model interchange formal output.

Parameters:
cmdir - the directory

getCmdir

public java.io.File getCmdir()
Gets the directory for component model interchange formal output.

Returns:
the directory

setCmext

public void setCmext(java.lang.String cmext)
Sets the component model interchange format file extension.

Parameters:
cmext - the extension

getCmext

public java.lang.String getCmext()
Gets the component model interchange format file extension.

Returns:
the extension

getReport

public java.io.File getReport()
Gets the output report file.

Returns:
the file

setReport

public void setReport(java.io.File report)
Sets the output report file.

Parameters:
report - the file

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(java.lang.String catalog)
Sets the resolver catalog file.

Parameters:
catalog - resolver catalog file URI

setBaseURI

public void setBaseURI(java.lang.String baseURI)
Sets the resolver base URI path.

Parameters:
baseURI - base URI path


Copyright © 2007. All Rights Reserved.