Apache CXF API

org.apache.cxf.maven_plugin.wsdl2java
Class WsdlOption

java.lang.Object
  extended by org.apache.cxf.maven_plugin.wsdl2java.Option
      extended by org.apache.cxf.maven_plugin.wsdl2java.WsdlOption
All Implemented Interfaces:
GenericWsdlOption

public class WsdlOption
extends Option
implements GenericWsdlOption


Field Summary
 
Fields inherited from class org.apache.cxf.maven_plugin.wsdl2java.Option
asyncMethods, bareMethods, extraargs, mimeMethods, outputDir, packagenames, xjcargs
 
Constructor Summary
WsdlOption()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<String> generateCommandLine(File outputDirFile, URI basedir, URI wsdlURI, boolean debug)
           
 WsdlArtifact getArtifact()
           
 String getUri()
          Return a string pointing to the WSDL.
 String getWsdl()
           
 WsdlArtifact getWsdlArtifact()
           
 File getWsdlFile(File baseDir)
          Try to find a file matching the wsdl path (either absolutely, relatively to the current dir or to the project base dir)
 URI getWsdlURI(URI baseURI)
           
 int hashCode()
           
 boolean isDefServiceName()
           
 void setArtifact(WsdlArtifact artifact)
           
 void setUri(String uri)
           
 void setWsdl(String w)
           
 void setWsdlArtifact(WsdlArtifact wsdlArtifact)
           
 String toString()
           
 
Methods inherited from class org.apache.cxf.maven_plugin.wsdl2java.Option
addBindingFile, addDefaultBindingFileIfExists, copyOptions, getAsyncMethods, getBareMethods, getBindingFiles, getCatalog, getDataBinding, getDefaultExcludesNamespace, getDefaultNamespacePackageMapping, getDeleteDirs, getDependencies, getDependencyURIs, getExceptionSuper, getExtraargs, getFaultSerialVersionUID, getFrontEnd, getMimeMethods, getNamespaceExcludes, getOutputDir, getPackagenames, getServiceName, getValidateWsdl, getWsdlLocation, getWsdlVersion, getXJCargs, isAllowElementRefs, isAutoNameResolution, isExtendedSoapHeaders, isMarkGenerated, isNoAddressBinding, isNoTypes, isSetWsdlLocation, isWsdlList, merge, setAllowElementRefs, setAsyncMethods, setAutoNameResolution, setBareMethods, setBindingFiles, setCatalog, setDataBinding, setDefaultExcludesNamespace, setDefaultNamespacePackageMapping, setDeleteDirs, setDependencies, setExceptionSuper, setExtendedSoapHeaders, setExtraargs, setFaultSerialVersionUID, setFrontEnd, setMarkGenerated, setMimeMethods, setNamespaceExcludes, setNoAddressBinding, setNoTypes, setOutputDir, setPackagenames, setServiceName, setValidate, setValidateWsdl, setWsdlList, setWsdlLocation, setWsdlVersion, setXJCargs
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.maven_plugin.GenericWsdlOption
getDeleteDirs, getOutputDir, setOutputDir
 

Constructor Detail

WsdlOption

public WsdlOption()
Method Detail

getWsdl

public String getWsdl()

setWsdl

public void setWsdl(String w)

getWsdlArtifact

public WsdlArtifact getWsdlArtifact()

setArtifact

public void setArtifact(WsdlArtifact artifact)
Specified by:
setArtifact in interface GenericWsdlOption

setWsdlArtifact

public void setWsdlArtifact(WsdlArtifact wsdlArtifact)

getWsdlFile

public File getWsdlFile(File baseDir)
Try to find a file matching the wsdl path (either absolutely, relatively to the current dir or to the project base dir)

Returns:
wsdl file

getWsdlURI

public URI getWsdlURI(URI baseURI)
               throws MojoExecutionException
Throws:
MojoExecutionException

isDefServiceName

public boolean isDefServiceName()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

generateCommandLine

public List<String> generateCommandLine(File outputDirFile,
                                        URI basedir,
                                        URI wsdlURI,
                                        boolean debug)
Specified by:
generateCommandLine in interface GenericWsdlOption

getArtifact

public WsdlArtifact getArtifact()
Specified by:
getArtifact in interface GenericWsdlOption

getUri

public String getUri()
Description copied from interface: GenericWsdlOption
Return a string pointing to the WSDL. Might be a plain path, might be a full URI.

Specified by:
getUri in interface GenericWsdlOption
Returns:

setUri

public void setUri(String uri)
Specified by:
setUri in interface GenericWsdlOption

Apache CXF API

Apache CXF