private static Pair<ClientComplexValue, Class<?>> init( final Class<?> typeRef, final AbstractService<?> service) { final Class<?> complexTypeRef; if (Collection.class.isAssignableFrom(typeRef)) { complexTypeRef = ClassUtils.extractTypeArg(typeRef); } else { complexTypeRef = typeRef; } final ComplexType annotation = complexTypeRef.getAnnotation(ComplexType.class); if (annotation == null) { throw new IllegalArgumentException("Invalid complex type " + complexTypeRef); } final FullQualifiedName typeName = new FullQualifiedName(ClassUtils.getNamespace(complexTypeRef), annotation.name()); final ClientComplexValue complex = service.getClient().getObjectFactory().newComplexValue(typeName.toString()); return new ImmutablePair<ClientComplexValue, Class<?>>(complex, complexTypeRef); }
private static Pair<ClientComplexValue, Class<?>> init( final Class<?> typeRef, final AbstractService<?> service) { final Class<?> complexTypeRef; if (Collection.class.isAssignableFrom(typeRef)) { complexTypeRef = ClassUtils.extractTypeArg(typeRef); } else { complexTypeRef = typeRef; } final ComplexType annotation = complexTypeRef.getAnnotation(ComplexType.class); if (annotation == null) { throw new IllegalArgumentException("Invalid complex type " + complexTypeRef); } final FullQualifiedName typeName = new FullQualifiedName(ClassUtils.getNamespace(complexTypeRef), annotation.name()); final ClientComplexValue complex = service.getClient().getObjectFactory().newComplexValue(typeName.toString()); return new ImmutablePair<ClientComplexValue, Class<?>>(complex, complexTypeRef); }
} else if (valuable.isComplex()) { final ClientComplexValue lcValue = client.getObjectFactory().newComplexValue(type == null ? null : type.toString()); ClientComplexValue cValue = client.getObjectFactory().newComplexValue(type.toString()); value = cValue; } else { client.getObjectFactory().newComplexValue(type == null ? null : type.toString());
} else if (valuable.isComplex()) { final ClientComplexValue lcValue = client.getObjectFactory().newComplexValue(type == null ? null : type.toString()); ClientComplexValue cValue = client.getObjectFactory().newComplexValue(type.toString()); value = cValue; } else { client.getObjectFactory().newComplexValue(type == null ? null : type.toString());