org.apache.axis.wsdl.fromJava
Class Namespaces
HashMap
org.apache.axis.wsdl.fromJava.Namespaces
public class Namespaces
extends HashMap
Description: A HashMap of packageNames and namespaces with some helper methods
String | getCreate(String key) - Get the namespaace for the given package If there is no entry in the HashMap for
this namespace, create one.
|
String | getCreate(String key, String prefix) - Get the namespaace for the given package If there is no entry in the HashMap for
this namespace, create one.
|
String | getCreatePrefix(String namespace) - Get the prefix for the given namespace.
|
Iterator | getNamespaces() - Get the list of namespaces currently registered
|
static String | getPackage(String namespace) - Reverse the process.
|
static String | makeNamespace(String clsName) - Make namespace from a fully qualified class name
use the default protocol for the namespace
|
static String | makeNamespace(String clsName, String protocol) - Make namespace from a fully qualified class name
and the given protocol
|
Object | put(Object key, Object value, String prefix) - adds an entry to the packagename/namespace HashMap.
|
void | putAll(Map map) - adds an entry to the packagename/namespace HashMap
for each of the entry in the map.
|
void | putAllPrefix(Map map) - adds an entry to the namespace / prefix HashMap
for each of the entry in the map.
|
void | putPrefix(String namespace, String prefix) - put the gine namespace / prefix into the appropriate HashMap
|
Namespaces
public Namespaces()
Constructor Namespaces
getCreate
public String getCreate(String key)
Get the namespaace for the given package If there is no entry in the HashMap for
this namespace, create one.
key
- String representing packagename
- the namespace either created or existing
getCreate
public String getCreate(String key,
String prefix)
Get the namespaace for the given package If there is no entry in the HashMap for
this namespace, create one.
key
- String representing packagenameprefix
- the prefix to use for the generated namespace
- the namespace either created or existing
getCreatePrefix
public String getCreatePrefix(String namespace)
Get the prefix for the given namespace. If one exists, create one
getNamespaces
public Iterator getNamespaces()
Get the list of namespaces currently registered
getPackage
public static String getPackage(String namespace)
Reverse the process. Get the package name from the namespace.
makeNamespace
public static String makeNamespace(String clsName)
Make namespace from a fully qualified class name
use the default protocol for the namespace
clsName
- fully qualified class name
- namespace namespace String
makeNamespace
public static String makeNamespace(String clsName,
String protocol)
Make namespace from a fully qualified class name
and the given protocol
clsName
- fully qualified class nameprotocol
- protocol String
- namespace namespace String
put
public Object put(Object key,
Object value,
String prefix)
adds an entry to the packagename/namespace HashMap. In addition,
also makes an entry in the auxillary namespace/prefix HashMap if an
entry doesn't already exists
key
- packageName Stringvalue
- namespace valueprefix
- the prefix to use for the given namespace
- old value for the specified key
putAll
public void putAll(Map map)
adds an entry to the packagename/namespace HashMap
for each of the entry in the map. In addition, also add an entries in the
auxillary namespace/prefix HashMap
map
- packageName/namespace map
putAllPrefix
public void putAllPrefix(Map map)
adds an entry to the namespace / prefix HashMap
for each of the entry in the map.
map
- packageName/namespace map
putPrefix
public void putPrefix(String namespace,
String prefix)
put the gine namespace / prefix into the appropriate HashMap
Copyright © 2005 Apache Web Services Project. All Rights Reserved.