You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/07/22 06:15:10 UTC
svn commit: r424517 -
/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java
Author: nadiramra
Date: Fri Jul 21 21:15:06 2006
New Revision: 424517
URL: http://svn.apache.org/viewvc?rev=424517&view=rev
Log:
Add utitlity routines to determine whether string or qname represents an anonymous type.
Modified:
webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java
Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java?rev=424517&r1=424516&r2=424517&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/TypeMap.java Fri Jul 21 21:15:06 2006
@@ -37,6 +37,9 @@
public class TypeMap
{
+ public static final String ANON_TOKEN_STRING = ">";
+ public static final char ANON_TOKEN_CHAR = '>';
+
private static String language = WrapperConstants.LANGUAGE_CPP;
/* this map maps the classname -> QName */
@@ -380,7 +383,6 @@
/**
* The wsdl support the attributes names that are not allowed by the program langage.
- * e.g. use keyword
* This method resolves those clashes by adding "_" to the front. This is a
* JAX_RPC recomendation of the situation.
* @param name
@@ -398,10 +400,25 @@
return name;
}
- // 29/3/05. To access the symbols
+ // To access the symbols
public static char[] getSymbols()
{
return symbolArray;
}
+ public static boolean isAnonymousType(String type)
+ {
+ if (type != null)
+ return type.charAt(0) == ANON_TOKEN_CHAR;
+
+ return false;
+ }
+
+ public static boolean isAnonymousType(QName type)
+ {
+ if (type != null)
+ return isAnonymousType(type.getLocalPart());
+
+ return false;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org