org.apache.tools.ant.taskdefs.optional.dotnet

Class WsdlToDotnet.Schema

public static class WsdlToDotnet.Schema extends Object

nested schema class Only supported on NET until mono add multi-URL handling on the command line
Field Summary
static StringERROR_BOTH_DECLARED
Only one of file or url
static StringERROR_FILE_IS_DIR
File is a directory
static StringERROR_FILE_NOT_FOUND
Not found
static StringERROR_NONE_DECLARED
One of file or url must be set
static StringERROR_NO_URL_CONVERT
Could not URL convert
Method Summary
Stringevaluate()
Validate our settings.
FilegetFile()
Get the file.
longgetTimestamp()
Gets the file timestamp.
StringgetUrl()
Get the url.
booleanisMakeURL()
Get the makeURL attribute.
voidsetFile(File file)
name of a file to use as a source of WSDL or XSD data
voidsetMakeURL(boolean makeURL)
flag to request that a file is turned into an absolute file: URL before being passed to the WSDL compiler
voidsetUrl(String url)
url of a resource.
voidvalidate()
validate the schema

Field Detail

ERROR_BOTH_DECLARED

public static final String ERROR_BOTH_DECLARED
Only one of file or url

ERROR_FILE_IS_DIR

public static final String ERROR_FILE_IS_DIR
File is a directory

ERROR_FILE_NOT_FOUND

public static final String ERROR_FILE_NOT_FOUND
Not found

ERROR_NONE_DECLARED

public static final String ERROR_NONE_DECLARED
One of file or url must be set

ERROR_NO_URL_CONVERT

public static final String ERROR_NO_URL_CONVERT
Could not URL convert

Method Detail

evaluate

public String evaluate()
Validate our settings.

Returns: either the URL or the full file path

getFile

public File getFile()
Get the file.

Returns: the file used.

getTimestamp

public long getTimestamp()
Gets the file timestamp.

Returns: the timestamp of a file, or -1 for a URL (meaning we do not know its age)

getUrl

public String getUrl()
Get the url.

Returns: the URL of the resource.

isMakeURL

public boolean isMakeURL()
Get the makeURL attribute.

Returns: the attribute.

setFile

public void setFile(File file)
name of a file to use as a source of WSDL or XSD data

Parameters: file the file to use.

setMakeURL

public void setMakeURL(boolean makeURL)
flag to request that a file is turned into an absolute file: URL before being passed to the WSDL compiler

Parameters: makeURL a boolean value.

setUrl

public void setUrl(String url)
url of a resource. URLs have no timestamp checking, and are not validated

Parameters: url the URL string to use.

validate

public void validate()
validate the schema