Package org.apache.ws.java2wsdl
Class NamespaceMapping
java.lang.Object
org.apache.ws.java2wsdl.NamespaceMapping
- All Implemented Interfaces:
Mapper
Used for nested package definitions.
The file format used for storing mappings is a list of package=namespace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute the mappingprotected voidmap a namespace to a packageprotected voidLoad a mapping file and save it to the mapprotected voidmapXmlReader(HashMap map, boolean packageIsKey) Load a mapping xml reader and save it to the mapprotected voidmapXmlStream(HashMap map, boolean packageIsKey) Load a mapping input stream and save it to the mapvoidname of a property file that contains mappings in package=namespace formatvoidsetMapInputStream(InputStream mapInputStream) voidsetMappingFile(File mappingFile) voidsetNamespace(String value) the namespace in the WSDL.voidsetPackage(String value) the Java package to bind to.voidsetXmlReader(XMLStreamReader xmlReader)
-
Field Details
-
PKG2NS_MAPPINGS
-
MAPPING
-
NAMESPACE
- See Also:
-
PACKAGE
- See Also:
-
-
Constructor Details
-
NamespaceMapping
public NamespaceMapping()pass in the namespace to map to
-
-
Method Details
-
setNamespace
the namespace in the WSDL. Required.- Parameters:
value- new uri of the mapping
-
setPackage
the Java package to bind to. Required.- Parameters:
value- java package name
-
setFile
name of a property file that contains mappings in package=namespace format- Parameters:
file- file to load
-
map
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
execute the mapping -
getMapInputStream
-
setMapInputStream
-
getMappingFile
-
setMappingFile
-
getXmlReader
-
setXmlReader
-