|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
org.jboss.axis.wsdl.fromJava.Namespaces
public class Namespaces
Description: A HashMap of packageNames and namespaces with some helper methods
| Constructor Summary | |
|---|---|
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 |
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 |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public Namespaces()
| Method Detail |
|---|
public String getCreate(String key)
key - String representing packagename
public String getCreate(String key,
String prefix)
key - String representing packagenameprefix - the prefix to use for the generated namespace
public Object put(Object key,
Object value,
String prefix)
key - packageName Stringvalue - namespace valueprefix - the prefix to use for the given namespace
public void putAll(Map map)
putAll in interface MapputAll in class HashMapmap - packageName/namespace mappublic String getCreatePrefix(String namespace)
namespace - namespace
public void putPrefix(String namespace,
String prefix)
namespace - prefix - public void putAllPrefix(Map map)
map - packageName/namespace mappublic static String makeNamespace(String clsName)
clsName - fully qualified class name
public static String makeNamespace(String clsName,
String protocol)
clsName - fully qualified class nameprotocol - protocol String
public Iterator getNamespaces()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||