Tabnine Logo
WebserviceapMessages
Code IndexAdd Tabnine to your IDE (free)

How to use
WebserviceapMessages
in
com.sun.tools.ws.resources

Best Java code snippets using com.sun.tools.ws.resources.WebserviceapMessages (Showing top 20 results out of 315)

origin: com.sun.xml.ws/jaxws-tools

protected boolean isLegalType(TypeMirror type) {
  if (!(type != null && type.getKind().equals(TypeKind.DECLARED)))
    return true;
  TypeElement tE = (TypeElement) ((DeclaredType) type).asElement();
  if (tE == null) {
    // can be null, if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.
    builder.processError(WebserviceapMessages.WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(type.toString(), context.getRound()));
  }
  return !builder.isRemote(tE);
}
origin: com.sun.xml.ws/jaxws-tools

protected void checkForInvalidImplAnnotation(Element element, Class annotationClass) {
  Object annotation = element.getAnnotation(annotationClass);
  if (annotation != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(annotationClass.getName()), element);
  }
}
origin: org.glassfish.metro/webservices-tools

private TypeElement getEndpointInterfaceElement(String endpointInterfaceName, TypeElement element) {
  TypeElement intTypeElement = null;
  for (TypeMirror interfaceType : element.getInterfaces()) {
    if (endpointInterfaceName.equals(interfaceType.toString())) {
      intTypeElement = (TypeElement) ((DeclaredType) interfaceType).asElement();
      seiContext = context.getSeiContext(intTypeElement.getQualifiedName());
      assert (seiContext != null);
      seiContext.setImplementsSei(true);
      break;
    }
  }
  if (intTypeElement == null) {
    intTypeElement = builder.getProcessingEnvironment().getElementUtils().getTypeElement(endpointInterfaceName);
  }
  if (intTypeElement == null)
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(endpointInterfaceName));
  return intTypeElement;
}
origin: org.glassfish.metro/webservices-tools

  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE("exclude=true", typeElement.getQualifiedName(), method.toString()), method);
  builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(typeElement.getQualifiedName(),
      method.getSimpleName(),
      returnType), method);
if (soapBinding != null) {
  if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(typeElement.getQualifiedName(), method.toString()), method);
  int outParams = getModeParameterCount(method, WebParam.Mode.OUT);
  if (inParams != 1) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
        builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
origin: com.sun.xml.ws/jaxws-tools

hasWebMethods = false;
if (webService == null)
  builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(
      element.getQualifiedName()), element);
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
origin: javaee/metro-jax-ws

case INTERFACE: {
  if (endpointInterfaceName != null && !endpointInterfaceName.equals(e.getQualifiedName())) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(endpointInterfaceName, e.getQualifiedName()), e);
    checkForInvalidImplAnnotation(e, SOAPBinding.class);
    if (webService.name().length() > 0)
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT("name"), e);
    endpointReferencesInterface = true;
    verifyImplAnnotations(e);
origin: com.sun.xml.ws/jaxws-tools

  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE("exclude=true", typeElement.getQualifiedName(), method.toString()), method);
  builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(typeElement.getQualifiedName(),
      method.getSimpleName(),
      returnType), method);
if (soapBinding != null) {
  if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(typeElement.getQualifiedName(), method.toString()), method);
  int outParams = getModeParameterCount(method, WebParam.Mode.OUT);
  if (inParams != 1) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
        builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
origin: javaee/metro-jax-ws

hasWebMethods = false;
if (webService == null)
  builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(
      element.getQualifiedName()), element);
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
origin: org.glassfish.metro/webservices-tools

case INTERFACE: {
  if (endpointInterfaceName != null && !endpointInterfaceName.equals(e.getQualifiedName())) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(endpointInterfaceName, e.getQualifiedName()), e);
    checkForInvalidImplAnnotation(e, SOAPBinding.class);
    if (webService.name().length() > 0)
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT("name"), e);
    endpointReferencesInterface = true;
    verifyImplAnnotations(e);
origin: javaee/metro-jax-ws

  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE("exclude=true", typeElement.getQualifiedName(), method.toString()), method);
  builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(typeElement.getQualifiedName(),
      method.getSimpleName(),
      returnType), method);
if (soapBinding != null) {
  if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(typeElement.getQualifiedName(), method.toString()), method);
  int outParams = getModeParameterCount(method, WebParam.Mode.OUT);
  if (inParams != 1) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
        builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
origin: javaee/metro-jax-ws

hasWebMethods = false;
if (webService == null)
  builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(
      element.getQualifiedName()), element);
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
origin: com.sun.xml.ws/jaxws-tools

case INTERFACE: {
  if (endpointInterfaceName != null && !endpointInterfaceName.equals(e.getQualifiedName())) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(endpointInterfaceName, e.getQualifiedName()), e);
    checkForInvalidImplAnnotation(e, SOAPBinding.class);
    if (webService.name().length() > 0)
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT("name"), e);
    endpointReferencesInterface = true;
    verifyImplAnnotations(e);
origin: javaee/metro-jax-ws

protected boolean isLegalType(TypeMirror type) {
  if (!(type != null && type.getKind().equals(TypeKind.DECLARED)))
    return true;
  TypeElement tE = (TypeElement) ((DeclaredType) type).asElement();
  if (tE == null) {
    // can be null, if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.
    builder.processError(WebserviceapMessages.WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(type.toString(), context.getRound()));
  }
  return !builder.isRemote(tE);
}
origin: org.glassfish.metro/webservices-tools

protected void checkForInvalidImplAnnotation(Element element, Class annotationClass) {
  Object annotation = element.getAnnotation(annotationClass);
  if (annotation != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(annotationClass.getName()), element);
  }
}
origin: com.sun.xml.ws/jaxws-tools

private TypeElement getEndpointInterfaceElement(String endpointInterfaceName, TypeElement element) {
  TypeElement intTypeElement = null;
  for (TypeMirror interfaceType : element.getInterfaces()) {
    if (endpointInterfaceName.equals(interfaceType.toString())) {
      intTypeElement = (TypeElement) ((DeclaredType) interfaceType).asElement();
      seiContext = context.getSeiContext(intTypeElement.getQualifiedName());
      assert (seiContext != null);
      seiContext.setImplementsSei(true);
      break;
    }
  }
  if (intTypeElement == null) {
    intTypeElement = builder.getProcessingEnvironment().getElementUtils().getTypeElement(endpointInterfaceName);
  }
  if (intTypeElement == null)
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND(endpointInterfaceName));
  return intTypeElement;
}
origin: javaee/metro-jax-ws

  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE("exclude=true", typeElement.getQualifiedName(), method.toString()), method);
  builder.processError(WebserviceapMessages.WEBSERVICEAP_METHOD_RETURN_TYPE_CANNOT_IMPLEMENT_REMOTE(typeElement.getQualifiedName(),
      method.getSimpleName(),
      returnType), method);
if (soapBinding != null) {
  if (soapBinding.style().equals(SOAPBinding.Style.RPC)) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_RPC_SOAPBINDING_NOT_ALLOWED_ON_METHOD(typeElement.getQualifiedName(), method.toString()), method);
  int outParams = getModeParameterCount(method, WebParam.Mode.OUT);
  if (inParams != 1) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
        builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT(typeElement.getQualifiedName(), method.toString()), method);
      builder.processError(WebserviceapMessages.WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
origin: org.glassfish.metro/webservices-tools

hasWebMethods = false;
if (webService == null)
  builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION(
      element.getQualifiedName()), element);
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
    && soapBinding.style() == SOAPBinding.Style.RPC
    && soapBinding.parameterStyle() == SOAPBinding.ParameterStyle.BARE) {
  builder.processError(WebserviceapMessages.WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE(
      soapBinding, element), element);
  return false;
origin: javaee/metro-jax-ws

case INTERFACE: {
  if (endpointInterfaceName != null && !endpointInterfaceName.equals(e.getQualifiedName())) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH(endpointInterfaceName, e.getQualifiedName()), e);
    checkForInvalidImplAnnotation(e, SOAPBinding.class);
    if (webService.name().length() > 0)
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT("name"), e);
    endpointReferencesInterface = true;
    verifyImplAnnotations(e);
origin: javaee/metro-jax-ws

protected boolean isLegalType(TypeMirror type) {
  if (!(type != null && type.getKind().equals(TypeKind.DECLARED)))
    return true;
  TypeElement tE = (TypeElement) ((DeclaredType) type).asElement();
  if (tE == null) {
    // can be null, if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.
    builder.processError(WebserviceapMessages.WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL(type.toString(), context.getRound()));
  }
  return !builder.isRemote(tE);
}
origin: javaee/metro-jax-ws

protected void checkForInvalidImplAnnotation(Element element, Class annotationClass) {
  Object annotation = element.getAnnotation(annotationClass);
  if (annotation != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION(annotationClass.getName()), element);
  }
}
com.sun.tools.ws.resourcesWebserviceapMessages

Javadoc

Defines string formatting method for each constant in the resource file

Most used methods

  • WEBSERVICEAP_COULD_NOT_FIND_TYPEDECL
    Could not get TypeElement for: {0} in annotation processing round: {1}
  • WEBSERVICEAP_DOC_BARE_AND_NO_ONE_IN
    Document literal bare methods must have one non-header, IN/INOUT parameter. Class: {0} Method: {1}
  • WEBSERVICEAP_DOC_BARE_NO_OUT
    Document/literal bare methods with no return type or OUT/INOUT parameters must be annotated as @Onew
  • WEBSERVICEAP_DOC_BARE_NO_RETURN_AND_NO_OUT
    Document literal bare methods that do not have a return value must have a single OUT/INOUT parameter
  • WEBSERVICEAP_DOC_BARE_RETURN_AND_OUT
    Document/literal bare methods cannot have a return type and out parameters. Class: {0}, method: {1}
  • WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ANNOTATION
    The @{0} annotation cannot be used in with @javax.jws.WebService.endpointInterface element.
  • WEBSERVICEAP_ENDPOINTINTEFACE_PLUS_ELEMENT
    The @javax.jws.WebService.{0} element cannot be used in with @javax.jws.WebService.endpointInterface
  • WEBSERVICEAP_ENDPOINTINTERFACES_DO_NOT_MATCH
    The endpoint interface {0} does not match the interface {1}.
  • WEBSERVICEAP_ENDPOINTINTERFACE_CLASS_NOT_FOUND
    The endpointInterface class {0} could not be found
  • WEBSERVICEAP_ENDPOINTINTERFACE_HAS_NO_WEBSERVICE_ANNOTATION
    The endpoint interface {0} must have a WebService annotation
  • WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE
    Service endpoint interface: {0} cannot have a WebService.endpointInterface annotation: {1}
  • WEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY
    javax.xml.ws.Holder parameters must not be annotated with the WebParam.Mode.IN property. Class: {0}
  • WEBSERVICEAP_ENDPOINTINTERFACE_ON_INTERFACE,
  • WEBSERVICEAP_HOLDER_PARAMETERS_MUST_NOT_BE_IN_ONLY,
  • WEBSERVICEAP_INVALID_SEI_ANNOTATION,
  • WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT,
  • WEBSERVICEAP_INVALID_SEI_ANNOTATION_ELEMENT_EXCLUDE,
  • WEBSERVICEAP_INVALID_SOAPBINDING_PARAMETERSTYLE,
  • WEBSERVICEAP_INVALID_WEBMETHOD_ELEMENT_WITH_EXCLUDE,
  • WEBSERVICEAP_METHOD_EXCEPTION_BEAN_NAME_NOT_UNIQUE,
  • WEBSERVICEAP_METHOD_NOT_IMPLEMENTED,
  • WEBSERVICEAP_METHOD_PARAMETER_TYPES_CANNOT_IMPLEMENT_REMOTE

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now