Package org.apache.axis.wsdl.toJava
Class Namespaces
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.apache.axis.wsdl.toJava.Namespaces
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
This class is essentially a HashMap of invalid input: '<'namespace, package name> pairs with
a few extra wizzbangs.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionNamespaces
(String root) Instantiate a Namespaces object whose packages will all reside under root. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Instantiate a clone of this Namespaces object.Get the package name in directory format (dots replaced by slashes).Get the package name for the given namespace.void
Make a directory for the given package under root.void
Like HashMap's putAll, this adds the given map's contents to this map.void
setDefaultPackage
(String defaultPackage) Set a package name that overrides the namespace mapReturn the given package name in directory format (dots replaced by slashes).Methods inherited from class java.util.HashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
Namespaces
Instantiate a Namespaces object whose packages will all reside under root.- Parameters:
root
-
-
-
Method Details
-
clone
Instantiate a clone of this Namespaces object. -
getCreate
Get the package name for the given namespace. If there is no entry in the HashMap for this namespace, create one.- Parameters:
key
-- Returns:
-
getAsDir
Get the package name in directory format (dots replaced by slashes). If the package name doesn't exist in the HashMap, return "".- Parameters:
key
-- Returns:
-
toDir
Return the given package name in directory format (dots replaced by slashes). If pkg is null, "" is returned.- Parameters:
pkg
-- Returns:
-
putAll
Like HashMap's putAll, this adds the given map's contents to this map. But it also makes sure the value strings are javified. -
mkdir
Make a directory for the given package under root.- Parameters:
pkg
-
-
setDefaultPackage
Set a package name that overrides the namespace map- Parameters:
defaultPackage
- a java package name (e.g. com.foo)
-
put
-
getPkg2NamespacesMap
-