/** * The name of this web service. * * @return The name of this web service. */ public String getPortTypeName() { String name = null; if (annotation != null) { name = annotation.name(); } if ((name == null) || ("".equals(name))) { name = getSimpleName().toString(); } return name; }
/** * The simple name of the method. * * @return The simple name of the method. */ public String getMessageName() { return webMethod.getDeclaringEndpointInterface().getSimpleName() + "." + webMethod.getSimpleName(); }
/** * 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; }
/** * The simple name of the method appended with "Response". * * @return The simple name of the method appended with "Response". */ public String getMessageName() { return webMethod.getDeclaringEndpointInterface().getSimpleName() + "." + webMethod.getSimpleName() + "Response"; }
public String getMessageName() { return webMethod.getDeclaringEndpointInterface().getSimpleName() + "." + webMethod.getSimpleName(); }
public String getMessageName() { return webMethod.getDeclaringEndpointInterface().getSimpleName() + "." + this.webMethod.getSimpleName() + "Response"; }
@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; }
/** * The service name of this web service. * * @return The service name of this web service. */ public String getServiceName() { String serviceName = null; if (annotation != null) { serviceName = annotation.serviceName(); } if (((serviceName == null) || ("".equals(serviceName))) && getEndpointImplementations().size() == 1) { WebService implAnnotation = getEndpointImplementations().iterator().next().getAnnotation(WebService.class); if (implAnnotation != null) { serviceName = implAnnotation.serviceName(); } } if ((serviceName == null) || ("".equals(serviceName))) { serviceName = getSimpleName() + "Service"; } return serviceName; }
/** * The message name in the case of a document/bare service. * * @return The message name in the case of a document/bare service. */ public String getMessageName() { String messageName = null; if (isBare()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName() + "Response"; } else if (isHeader()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName() + "." + getName(); } return messageName; }
/** * The message name of the message for this parameter, if this is a BARE web param. * * @return The message name of the message for this parameter, or null if this is not a BARE web param. */ public String getMessageName() { String messageName = null; if (isBare()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName(); } else if (isHeader()) { messageName = method.getDeclaringEndpointInterface().getSimpleName() + "." + method.getSimpleName() + "." + getBaseParamName(); } return messageName; }