Package org.apache.ws.java2wsdl
Class NamespaceMapping
- java.lang.Object
-
- org.apache.ws.java2wsdl.NamespaceMapping
-
-
Constructor Summary
Constructors Constructor Description NamespaceMapping()
pass in the namespace to map to
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(HashMap map, boolean packageIsKey)
execute the mappingInputStream
getMapInputStream()
File
getMappingFile()
XMLStreamReader
getXmlReader()
protected void
map(HashMap map, String packName, String nspace, boolean packageIsKey)
map a namespace to a packageprotected void
mapFile(HashMap map, boolean packageIsKey)
Load a mapping file and save it to the mapprotected void
mapXmlReader(HashMap map, boolean packageIsKey)
Load a mapping xml reader and save it to the mapprotected void
mapXmlStream(HashMap map, boolean packageIsKey)
Load a mapping input stream and save it to the mapvoid
setFile(File file)
name of a property file that contains mappings in package=namespace formatvoid
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)
-
-
-
Field Detail
-
PKG2NS_MAPPINGS
public static final QName PKG2NS_MAPPINGS
-
MAPPING
public static final QName MAPPING
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
PACKAGE
public static final String PACKAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNamespace
public void setNamespace(String value)
the namespace in the WSDL. Required.- Parameters:
value
- new uri of the mapping
-
setPackage
public void setPackage(String value)
the Java package to bind to. Required.- Parameters:
value
- java package name
-
setFile
public void setFile(File file)
name of a property file that contains mappings in package=namespace format- Parameters:
file
- file to load
-
map
protected void map(HashMap map, String packName, String nspace, boolean packageIsKey)
map a namespace to a package- Parameters:
map
- map to assign topackName
- package namenspace
- namespacepackageIsKey
- if the package is to be the key for the map
-
mapXmlReader
protected void mapXmlReader(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
Load a mapping xml reader and save it to the map- Parameters:
map
- target map filepackageIsKey
- if the package is to be the key for the map- Throws:
org.apache.tools.ant.BuildException
- if an IOException needed swallowing
-
mapXmlStream
protected void mapXmlStream(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
Load a mapping input stream and save it to the map- Parameters:
map
- target map filepackageIsKey
- if the package is to be the key for the map- Throws:
org.apache.tools.ant.BuildException
- if an IOException needed swallowing
-
mapFile
protected void mapFile(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
Load a mapping file and save it to the map- Parameters:
map
- target map filepackageIsKey
- if the package is to be the key for the map- Throws:
org.apache.tools.ant.BuildException
- if an IOException needed swallowing
-
execute
public void execute(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
execute the mapping
-
getMapInputStream
public InputStream getMapInputStream()
-
setMapInputStream
public void setMapInputStream(InputStream mapInputStream)
-
getMappingFile
public File getMappingFile()
-
setMappingFile
public void setMappingFile(File mappingFile)
-
getXmlReader
public XMLStreamReader getXmlReader()
-
setXmlReader
public void setXmlReader(XMLStreamReader xmlReader)
-
-