org.apache.ant.dotnet.compile
Class WsdlToDotnet.Schema

java.lang.Object
  extended by org.apache.ant.dotnet.compile.WsdlToDotnet.Schema
Enclosing class:
WsdlToDotnet

public static class WsdlToDotnet.Schema
extends java.lang.Object

nested schema class Only supported on NET until mono add multi-URL handling on the command line


Field Summary
static java.lang.String ERROR_BOTH_DECLARED
           
static java.lang.String ERROR_FILE_IS_DIR
           
static java.lang.String ERROR_FILE_NOT_FOUND
           
static java.lang.String ERROR_NO_URL_CONVERT
           
static java.lang.String ERROR_NONE_DECLARED
           
 
Constructor Summary
WsdlToDotnet.Schema()
           
 
Method Summary
 java.lang.String evaluate()
          Validate our settings.
 java.io.File getFile()
           
 long getTimestamp()
          Gets the file timestamp.
 java.lang.String getUrl()
           
 boolean isMakeURL()
           
 void setFile(java.io.File file)
          name of a file to use as a source of WSDL or XSD data
 void setMakeURL(boolean makeURL)
          flag to request that a file is turned into an absolute file: URL before being passed to the WSDL compiler
 void setUrl(java.lang.String url)
          url of a resource.
 void validate()
          validate the schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_NONE_DECLARED

public static final java.lang.String ERROR_NONE_DECLARED
See Also:
Constant Field Values

ERROR_BOTH_DECLARED

public static final java.lang.String ERROR_BOTH_DECLARED
See Also:
Constant Field Values

ERROR_FILE_NOT_FOUND

public static final java.lang.String ERROR_FILE_NOT_FOUND
See Also:
Constant Field Values

ERROR_FILE_IS_DIR

public static final java.lang.String ERROR_FILE_IS_DIR
See Also:
Constant Field Values

ERROR_NO_URL_CONVERT

public static final java.lang.String ERROR_NO_URL_CONVERT
See Also:
Constant Field Values
Constructor Detail

WsdlToDotnet.Schema

public WsdlToDotnet.Schema()
Method Detail

validate

public void validate()
validate the schema


evaluate

public java.lang.String evaluate()
Validate our settings.

Returns:
either the URL or the full file path

getFile

public java.io.File getFile()

setFile

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

Parameters:
file -

getUrl

public java.lang.String getUrl()

setUrl

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

Parameters:
url -

isMakeURL

public boolean isMakeURL()

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 -

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)