本文整理了Java中org.apache.axis.wsdl.toJava.Utils.makePackageName()
方法的一些代码示例,展示了Utils.makePackageName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.makePackageName()
方法的具体详情如下:
包路径:org.apache.axis.wsdl.toJava.Utils
类名称:Utils
方法名:makePackageName
[英]Method makePackageName
[中]方法makePackageName
代码示例来源:origin: org.ow2.orchestra/orchestra-axis
/**
* Returns the java package that maps to the given namespace.
*
* @param ns - ns
* @return the java package that maps to the given namespace.
*/
public static String getPackageFromNamespace(final String ns) {
final String packag = Utils.makePackageName(ns);
return packag;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.axis.consumption.core
/**
* namespaceURI2PackageName
* @param namespaceURI
* @return package name based on namespace
*/
public static String namespaceURI2PackageName(String namespaceURI)
{
return Utils.makePackageName(namespaceURI);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.ws.axis.consumption.ui
return Utils.makePackageName(namespaceURI);
代码示例来源:origin: org.apache.axis/axis
/**
* Method sanityCheck
*
* @param symbolTable
*/
protected void sanityCheck(SymbolTable symbolTable) {
Iterator it = symbolTable.getHashMap().values().iterator();
while (it.hasNext()) {
Vector v = (Vector) it.next();
for (int i = 0; i < v.size(); ++i) {
SymTabEntry entry = (SymTabEntry) v.elementAt(i);
String namespace = entry.getQName().getNamespaceURI();
String packageName =
org.apache.axis.wsdl.toJava.Utils.makePackageName(
namespace);
String localName = entry.getQName().getLocalPart();
if (localName.equals(packageName)
&& packageName.equals(
namespaces.getCreate(namespace))) {
packageName += "_pkg";
namespaces.put(namespace, packageName);
}
}
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Method sanityCheck
*
* @param symbolTable
*/
protected void sanityCheck(SymbolTable symbolTable) {
Iterator it = symbolTable.getHashMap().values().iterator();
while (it.hasNext()) {
Vector v = (Vector) it.next();
for (int i = 0; i < v.size(); ++i) {
SymTabEntry entry = (SymTabEntry) v.elementAt(i);
String namespace = entry.getQName().getNamespaceURI();
String packageName =
org.apache.axis.wsdl.toJava.Utils.makePackageName(
namespace);
String localName = entry.getQName().getLocalPart();
if (localName.equals(packageName)
&& packageName.equals(
namespaces.getCreate(namespace))) {
packageName += "_pkg";
namespaces.put(namespace, packageName);
}
}
}
}
代码示例来源:origin: axis/axis
/**
* Method sanityCheck
*
* @param symbolTable
*/
protected void sanityCheck(SymbolTable symbolTable) {
Iterator it = symbolTable.getHashMap().values().iterator();
while (it.hasNext()) {
Vector v = (Vector) it.next();
for (int i = 0; i < v.size(); ++i) {
SymTabEntry entry = (SymTabEntry) v.elementAt(i);
String namespace = entry.getQName().getNamespaceURI();
String packageName =
org.apache.axis.wsdl.toJava.Utils.makePackageName(
namespace);
String localName = entry.getQName().getLocalPart();
if (localName.equals(packageName)
&& packageName.equals(
namespaces.getCreate(namespace))) {
packageName += "_pkg";
namespaces.put(namespace, packageName);
}
}
}
}
代码示例来源:origin: org.apache.axis/axis
/**
* Get the package name for the given namespace. If there is no entry in the HashMap for
* this namespace, create one if create flag is on, return <tt>null</tt> otherwise.
*
* @param key
* @param create
* @return
*/
String getCreate(String key, boolean create) {
if (defaultPackage != null) {
put(key, defaultPackage);
return defaultPackage;
}
String value = (String) super.get(key);
if ((value == null) && create) {
value = normalizePackageName((String) Utils.makePackageName(key),
javaPkgSeparator);
put(key, value);
}
return (String) value;
} // getCreate
代码示例来源:origin: axis/axis
/**
* Get the package name for the given namespace. If there is no entry in the HashMap for
* this namespace, create one if create flag is on, return <tt>null</tt> otherwise.
*
* @param key
* @param create
* @return
*/
String getCreate(String key, boolean create) {
if (defaultPackage != null) {
put(key, defaultPackage);
return defaultPackage;
}
String value = (String) super.get(key);
if ((value == null) && create) {
value = normalizePackageName((String) Utils.makePackageName(key),
javaPkgSeparator);
put(key, value);
}
return (String) value;
} // getCreate
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Get the package name for the given namespace. If there is no entry in the HashMap for
* this namespace, create one if create flag is on, return <tt>null</tt> otherwise.
*
* @param key
* @param create
* @return
*/
String getCreate(String key, boolean create) {
if (defaultPackage != null) {
put(key, defaultPackage);
return defaultPackage;
}
String value = (String) super.get(key);
if ((value == null) && create) {
value = normalizePackageName((String) Utils.makePackageName(key),
javaPkgSeparator);
put(key, value);
}
return (String) value;
} // getCreate
内容来源于网络,如有侵权,请联系作者删除!