|
|||||||||
| Home >> All >> org >> apache >> axis >> tools >> ant >> [ wsdl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.axis.tools.ant.wsdl
Class NamespaceMapping

java.lang.Objectorg.apache.axis.tools.ant.wsdl.NamespaceMapping
- All Implemented Interfaces:
- Mapper
- public class NamespaceMapping
- extends java.lang.Object
- implements Mapper
- extends java.lang.Object
Used for nested package definitions. The file format used for storing mappings is a list of package=namespace
| Field Summary | |
private java.io.File |
mappingFile
|
private java.lang.String |
namespace
|
private java.lang.String |
packageName
|
| Constructor Summary | |
NamespaceMapping()
pass in the namespace to map to |
|
| Method Summary | |
void |
execute(org.apache.tools.ant.ProjectComponent owner,
java.util.HashMap map,
boolean packageIsKey)
execute the mapping |
private java.util.Properties |
loadMappingPropertiesFile()
load a file containing properties |
protected void |
map(org.apache.tools.ant.ProjectComponent owner,
java.util.HashMap map,
java.lang.String packName,
java.lang.String nspace,
boolean packageIsKey)
map a namespace to a package |
protected void |
mapFile(org.apache.tools.ant.ProjectComponent owner,
java.util.HashMap map,
boolean packageIsKey)
Load a mapping file and save it to the map |
void |
setFile(java.io.File file)
name of a property file that contains mappings in package=namespace format |
void |
setNamespace(java.lang.String value)
the namespace in the WSDL. |
void |
setPackage(java.lang.String value)
the Java package to bind to. |
private void |
validate()
validate the option set |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
namespace
private java.lang.String namespace
packageName
private java.lang.String packageName
mappingFile
private java.io.File mappingFile
| Constructor Detail |
NamespaceMapping
public NamespaceMapping()
- pass in the namespace to map to
| Method Detail |
setNamespace
public void setNamespace(java.lang.String value)
- the namespace in the WSDL. Required.
setPackage
public void setPackage(java.lang.String value)
- the Java package to bind to. Required.
setFile
public void setFile(java.io.File file)
- name of a property file that contains mappings in
package=namespace format
map
protected void map(org.apache.tools.ant.ProjectComponent owner, java.util.HashMap map, java.lang.String packName, java.lang.String nspace, boolean packageIsKey)
- map a namespace to a package
validate
private void validate()
- validate the option set
mapFile
protected void mapFile(org.apache.tools.ant.ProjectComponent owner, java.util.HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
- Load a mapping file and save it to the map
loadMappingPropertiesFile
private java.util.Properties loadMappingPropertiesFile() throws org.apache.tools.ant.BuildException
- load a file containing properties
execute
public void execute(org.apache.tools.ant.ProjectComponent owner, java.util.HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
|
|||||||||
| Home >> All >> org >> apache >> axis >> tools >> ant >> [ wsdl overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.apache.axis.tools.ant.wsdl.NamespaceMapping