org.apache.axis.wsdl.fromJava
public class Namespaces extends HashMap
Description: A HashMap of packageNames and namespaces with some helper methods
Constructor Summary | |
---|---|
Namespaces()
Constructor Namespaces |
Method Summary | |
---|---|
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
|
Parameters: key String representing packagename
Returns: the namespace either created or existing
Parameters: key String representing packagename prefix the prefix to use for the generated namespace
Returns: the namespace either created or existing
Parameters: namespace namespace
Returns: prefix String
Returns: iterator
Parameters: namespace
Returns:
Parameters: clsName fully qualified class name
Returns: namespace namespace String
Parameters: clsName fully qualified class name protocol protocol String
Returns: namespace namespace String
Parameters: key packageName String value namespace value prefix the prefix to use for the given namespace
Returns: old value for the specified key
Parameters: map packageName/namespace map
Parameters: map packageName/namespace map
Parameters: namespace prefix