|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.java2wsdl.NamespaceMapping
public class NamespaceMapping
Used for nested package definitions. The file format used for storing mappings is a list of package=namespace
Field Summary | |
---|---|
static QName |
MAPPING
|
static String |
NAMESPACE
|
static String |
PACKAGE
|
static QName |
PKG2NS_MAPPINGS
|
Constructor Summary | |
---|---|
NamespaceMapping()
pass in the namespace to map to |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QName PKG2NS_MAPPINGS
public static final QName MAPPING
public static final String NAMESPACE
public static final String PACKAGE
Constructor Detail |
---|
public NamespaceMapping()
Method Detail |
---|
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 map
org.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 map
org.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 map
org.apache.tools.ant.BuildException
- if an IOException needed swallowingpublic void execute(HashMap map, boolean packageIsKey) throws org.apache.tools.ant.BuildException
execute
in interface Mapper
map
- map to map topackageIsKey
- if the package is to be the key for the map
org.apache.tools.ant.BuildException
- in case of emergencypublic InputStream getMapInputStream()
public void setMapInputStream(InputStream mapInputStream)
public File getMappingFile()
public void setMappingFile(File mappingFile)
public XMLStreamReader getXmlReader()
public void setXmlReader(XMLStreamReader xmlReader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |