Modifier and Type | Field and Description |
---|---|
static QName |
MAPPING |
static String |
NAMESPACE |
static String |
PACKAGE |
static QName |
PKG2NS_MAPPINGS |
Constructor and Description |
---|
NamespaceMapping()
pass in the namespace to map to
|
Modifier and Type | Method and Description |
---|---|
void |
execute(HashMap map,
boolean packageIsKey)
execute the mapping
|
InputStream |
getMapInputStream() |
File |
getMappingFile() |
XMLStreamReader |
getXmlReader() |
protected void |
map(HashMap map,
String packName,
String nspace,
boolean packageIsKey)
map a namespace to a package
|
protected void |
mapFile(HashMap map,
boolean packageIsKey)
Load a mapping file and save it to the map
|
protected void |
mapXmlReader(HashMap map,
boolean packageIsKey)
Load a mapping xml reader and save it to the map
|
protected void |
mapXmlStream(HashMap map,
boolean packageIsKey)
Load a mapping input stream and save it to the map
|
void |
setFile(File file)
name of a property file that contains mappings in
package=namespace format
|
void |
setMapInputStream(InputStream mapInputStream) |
void |
setMappingFile(File mappingFile) |
void |
setNamespace(String value)
the namespace in the WSDL.
|
void |
setPackage(String value)
the Java package to bind to.
|
void |
setXmlReader(XMLStreamReader xmlReader) |
public static final QName PKG2NS_MAPPINGS
public static final QName MAPPING
public static final String NAMESPACE
public static final String PACKAGE
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(HashMap map, String packName, String nspace, boolean packageIsKey)
map
- map to assign topackName
- package namenspace
- namespacepackageIsKey
- if the package is to be the key for the mapprotected void mapXmlReader(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
map
- target map filepackageIsKey
- if the package is to be the key for the maporg.apache.tools.ant.BuildException
- if an IOException needed swallowingprotected void mapXmlStream(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
map
- target map filepackageIsKey
- if the package is to be the key for the maporg.apache.tools.ant.BuildException
- if an IOException needed swallowingprotected void mapFile(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
map
- 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(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
public InputStream getMapInputStream()
public void setMapInputStream(InputStream mapInputStream)
public File getMappingFile()
public void setMappingFile(File mappingFile)
public XMLStreamReader getXmlReader()
public void setXmlReader(XMLStreamReader xmlReader)
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.