@Override public <A extends Annotation> A getAnnotation(Class<A> annotationType) { return this.ei.getAnnotation(annotationType); }
/** * The SOAP parameter style of this web method. * * @return The SOAP parameter style of this web method. */ public SOAPBinding.ParameterStyle getSoapParameterStyle() { SOAPBinding.ParameterStyle style = SOAPBinding.ParameterStyle.WRAPPED; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.parameterStyle(); } return style; }
/** * The SOAP binding use of this web method. * * @return The SOAP binding use of this web method. */ public SOAPBinding.Use getSoapUse() { SOAPBinding.Use use = SOAPBinding.Use.LITERAL; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { use = bindingInfo.use(); } return use; }
/** * The SOAP binding style specified on this endpoint interface. * <p/> * Note: the specification is unclear on how to deal with the specific binding annotations of the * associated endpoint implementation classes. It is a assumed that the annotations of the endpoint * implementation classes override the annotations on the endpoint interface. * * @return The SOAP binding style specified on this endpoint interface. */ public SOAPBinding.Style getSoapBindingStyle() { SOAPBinding.Style style = SOAPBinding.Style.DOCUMENT; SOAPBinding bindingInfo = getAnnotation(SOAPBinding.class); if (bindingInfo != null) { style = bindingInfo.style(); } return style; }
/** * The simple name for client-side code generation. * * @return The simple name for client-side code generation. */ public String getClientSimpleName() { String clientSimpleName = getSimpleName().toString(); ClientName clientName = getAnnotation(ClientName.class); if (clientName != null) { clientSimpleName = clientName.value(); } return clientSimpleName; }
/** * The name of the soap binding. This is just used in the WSDL, so it's not really necessary-- it's more for aesthetic purposes. * * @return The name of the soap binding. * @see com.webcohesion.enunciate.metadata.soap.SoapBindingName */ public String getSoapBindingName() { String name = getSimpleName() + "PortBinding"; SoapBindingName bindingNameInfo = getAnnotation(SoapBindingName.class); if (bindingNameInfo != null) { name = bindingNameInfo.value(); } return name; }
@Override public String getLabel() { Label label = this.ei.getAnnotation(Label.class); if (label != null) { return label.value(); } JavaDoc.JavaDocTagList tags = this.ei.getJavaDoc().get("label"); if (tags != null && tags.size() > 0) { String tag = tags.get(0).trim(); if (!tag.isEmpty()) { return tag; } } String serviceName = this.ei.getServiceName(); if (serviceName.equals(this.ei.getSimpleName() + "Service")) { serviceName = this.ei.getSimpleName().toString(); } return serviceName; }
annotation = getAnnotation(javax.jws.WebService.class); impls = new ArrayList<EndpointImplementation>(); if (annotation != null) {