@Test public void testParseType() { final QName intType = new QName("java:java.lang.Integer"); final Class<?> intClass = JavaService.parseType(intType); Assert.assertEquals(Integer.class, intClass); }
public static Class<?> parseType(final QName type) { if (type == null) { return null; } final String localPart = type.getLocalPart(); int indexOf = localPart.indexOf(':'); if (indexOf != -1) { return Classes.forName(localPart.substring(indexOf + 1)); } else { return null; } }
JavaService extends BaseService { public static Class<?> parseType(final QName type) { if (type == null) { return null; } final String localPart = type.getLocalPart(); int indexOf = localPart.indexOf(':'); if (indexOf != -1) { return Classes.forName(localPart.substring(indexOf + 1)); } else { return null; } } }
JavaService extends BaseService { public static Class<?> parseType(final QName type) { if (type == null) { return null; } final String localPart = type.getLocalPart(); int indexOf = localPart.indexOf(':'); if (indexOf != -1) { return Classes.forName(localPart.substring(indexOf + 1)); } else { return null; } } private  JavaService(Set<ServiceOperation> operations, Class<?> serviceInterface); }
JavaService extends BaseService { public static Class<?> parseType(final QName type) { if (type == null) { return null; } final String localPart = type.getLocalPart(); int indexOf = localPart.indexOf(':'); if (indexOf != -1) { return Classes.forName(localPart.substring(indexOf + 1)); } else { return null; } } private  JavaService(Set<ServiceOperation> operations, Class<?> serviceInterface); static JavaService fromClass(Class<?> serviceInterface); Class<?> getJavaInterface(); static Class<?> parseType(final QName type); }
JavaService extends BaseService { public static Class<?> parseType(final QName type) { if (type == null) { return null; } final String localPart = type.getLocalPart(); int indexOf = localPart.indexOf(':'); if (indexOf != -1) { return Classes.forName(localPart.substring(indexOf + 1)); } else { return null; } } private  JavaService(Set<ServiceOperation> operations, Class<?> serviceInterface); static JavaService fromClass(Class<?> serviceInterface); Class<?> getJavaInterface(); static Class<?> parseType(final QName type); static final String TYPE; }