|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--org.apache.axis.wsdl.fromJava.Namespaces
Description: A HashMap of packageNames and namespaces with some helper methods
Constructor Summary | |
Namespaces()
|
Method Summary | |
java.lang.String |
getCreate(java.lang.String key)
Get the namespaace for the given package If there is no entry in the HashMap for this namespace, create one. |
java.lang.String |
getCreate(java.lang.String key,
java.lang.String prefix)
Get the namespaace for the given package If there is no entry in the HashMap for this namespace, create one. |
java.lang.String |
getCreatePrefix(java.lang.String namespace)
Get the prefix for the given namespace. |
java.util.Iterator |
getNamespaces()
Get the list of namespaces currently registered |
static java.lang.String |
makeNamespace(java.lang.String clsName)
Make namespace from a fully qualified class name use the default protocol for the namespace |
static java.lang.String |
makeNamespace(java.lang.String clsName,
java.lang.String protocol)
Make namespace from a fully qualified class name and the given protocol |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value,
java.lang.String prefix)
adds an entry to the packagename/namespace HashMap. |
void |
putAll(java.util.Map map)
adds an entry to the packagename/namespace HashMap for each of the entry in the map. |
void |
putAllPrefix(java.util.Map map)
adds an entry to the namespace / prefix HashMap for each of the entry in the map. |
void |
putPrefix(java.lang.String namespace,
java.lang.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 java.lang.String getCreate(java.lang.String key)
key
- String representing packagename
public java.lang.String getCreate(java.lang.String key, java.lang.String prefix)
key
- String representing packagenameprefix
- the prefix to use for the generated namespace
public java.lang.Object put(java.lang.Object key, java.lang.Object value, java.lang.String prefix)
key
- packageName Stringvalue
- namespace valueprefix
- the prefix to use for the given namespace
public void putAll(java.util.Map map)
putAll
in interface java.util.Map
putAll
in class java.util.HashMap
map
- packageName/namespace mappublic java.lang.String getCreatePrefix(java.lang.String namespace)
namespace
- namespace
public void putPrefix(java.lang.String namespace, java.lang.String prefix)
namespace
- prefix
- public void putAllPrefix(java.util.Map map)
map
- packageName/namespace mappublic static java.lang.String makeNamespace(java.lang.String clsName)
clsName
- fully qualified class name
public static java.lang.String makeNamespace(java.lang.String clsName, java.lang.String protocol)
clsName
- fully qualified class nameprotocol
- protocol String
public java.util.Iterator getNamespaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |