|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.java2wsdl.NamespaceMapping
Used for nested package definitions. The file format used for storing mappings is a list of package=namespace
Field Summary | |
static javax.xml.namespace.QName |
MAPPING
|
static java.lang.String |
NAMESPACE
|
static java.lang.String |
PACKAGE
|
static javax.xml.namespace.QName |
PKG2NS_MAPPINGS
|
Constructor Summary | |
NamespaceMapping()
pass in the namespace to map to |
Method Summary | |
void |
execute(java.util.HashMap map,
boolean packageIsKey)
execute the mapping |
java.io.InputStream |
getMapInputStream()
|
java.io.File |
getMappingFile()
|
javax.xml.stream.XMLStreamReader |
getXmlReader()
|
protected void |
map(java.util.HashMap map,
java.lang.String packName,
java.lang.String nspace,
boolean packageIsKey)
map a namespace to a package |
protected void |
mapFile(java.util.HashMap map,
boolean packageIsKey)
Load a mapping file and save it to the map |
protected void |
mapXmlReader(java.util.HashMap map,
boolean packageIsKey)
Load a mapping xml reader and save it to the map |
protected void |
mapXmlStream(java.util.HashMap map,
boolean packageIsKey)
Load a mapping input stream 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 |
setMapInputStream(java.io.InputStream mapInputStream)
|
void |
setMappingFile(java.io.File mappingFile)
|
void |
setNamespace(java.lang.String value)
the namespace in the WSDL. |
void |
setPackage(java.lang.String value)
the Java package to bind to. |
void |
setXmlReader(javax.xml.stream.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 javax.xml.namespace.QName PKG2NS_MAPPINGS
public static final javax.xml.namespace.QName MAPPING
public static final java.lang.String NAMESPACE
public static final java.lang.String PACKAGE
Constructor Detail |
public NamespaceMapping()
Method Detail |
public void setNamespace(java.lang.String value)
value
- new uri of the mappingpublic void setPackage(java.lang.String value)
value
- java package namepublic void setFile(java.io.File file)
file
- file to loadprotected void map(java.util.HashMap map, java.lang.String packName, java.lang.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(java.util.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(java.util.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(java.util.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(java.util.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 java.io.InputStream getMapInputStream()
public void setMapInputStream(java.io.InputStream mapInputStream)
public java.io.File getMappingFile()
public void setMappingFile(java.io.File mappingFile)
public javax.xml.stream.XMLStreamReader getXmlReader()
public void setXmlReader(javax.xml.stream.XMLStreamReader xmlReader)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |