| Constructor and Description |
|---|
NamespaceMapping()
pass in the namespace to map to
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
boolean packageIsKey)
execute the mapping
|
protected void |
map(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
String packName,
String nspace,
boolean packageIsKey)
map a namespace to a package
|
protected void |
mapFile(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
boolean packageIsKey)
Load a mapping file and save it to the map
|
void |
setFile(File file)
name of a property file that contains mappings in
package=namespace format
|
void |
setNamespace(String value)
the namespace in the WSDL.
|
void |
setPackage(String value)
the Java package to bind to.
|
public void setNamespace(String value)
value - new uri of the mappingpublic void setPackage(String value)
value - java package namepublic void setFile(File file)
file - file to loadprotected void map(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
String packName,
String nspace,
boolean packageIsKey)
owner - owning project component (For logging)map - map to assign topackName - package namenspace - namespacepackageIsKey - if the package is to be the key for the mapprotected void mapFile(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
boolean packageIsKey)
throws org.apache.tools.ant.BuildException
owner - owner componentmap - target map filepackageIsKey - if the package is to be the key for the maporg.apache.tools.ant.BuildException - if an IOException needed swallowingpublic void execute(org.apache.tools.ant.ProjectComponent owner,
HashMap map,
boolean packageIsKey)
throws org.apache.tools.ant.BuildException
Copyright © The Apache Software Foundation. All Rights Reserved.