congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: javaee/metro-jax-ws

protected boolean isValidOneWayMethod(ExecutableElement method, TypeElement typeElement) {
  boolean valid = true;
  if (!(method.getReturnType().accept(NO_TYPE_VISITOR, null))) {
    // this is an error, cannot be OneWay and have a return type
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(typeElement.getQualifiedName(), method.toString()), method);
    valid = false;
  }
  VariableElement outParam = getOutParameter(method);
  if (outParam != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
    valid = false;
  }
  if (!isDocLitWrapped() && soapStyle.equals(SOAPStyle.DOCUMENT)) {
    int inCnt = getModeParameterCount(method, WebParam.Mode.IN);
    if (inCnt != 1) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      valid = false;
    }
  }
  for (TypeMirror thrownType : method.getThrownTypes()) {
    TypeElement thrownElement = (TypeElement) ((DeclaredType) thrownType).asElement();
    if (builder.isServiceException(thrownType)) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(
          typeElement.getQualifiedName(), method.toString(), thrownElement.getQualifiedName()), method);
      valid = false;
    }
  }
  return valid;
}
origin: javaee/metro-jax-ws

protected boolean isValidOneWayMethod(ExecutableElement method, TypeElement typeElement) {
  boolean valid = true;
  if (!(method.getReturnType().accept(NO_TYPE_VISITOR, null))) {
    // this is an error, cannot be OneWay and have a return type
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(typeElement.getQualifiedName(), method.toString()), method);
    valid = false;
  }
  VariableElement outParam = getOutParameter(method);
  if (outParam != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
    valid = false;
  }
  if (!isDocLitWrapped() && soapStyle.equals(SOAPStyle.DOCUMENT)) {
    int inCnt = getModeParameterCount(method, WebParam.Mode.IN);
    if (inCnt != 1) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      valid = false;
    }
  }
  for (TypeMirror thrownType : method.getThrownTypes()) {
    TypeElement thrownElement = (TypeElement) ((DeclaredType) thrownType).asElement();
    if (builder.isServiceException(thrownType)) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(
          typeElement.getQualifiedName(), method.toString(), thrownElement.getQualifiedName()), method);
      valid = false;
    }
  }
  return valid;
}
origin: com.sun.xml.ws/jaxws-tools

protected boolean isValidOneWayMethod(ExecutableElement method, TypeElement typeElement) {
  boolean valid = true;
  if (!(method.getReturnType().accept(NO_TYPE_VISITOR, null))) {
    // this is an error, cannot be OneWay and have a return type
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(typeElement.getQualifiedName(), method.toString()), method);
    valid = false;
  }
  VariableElement outParam = getOutParameter(method);
  if (outParam != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
    valid = false;
  }
  if (!isDocLitWrapped() && soapStyle.equals(SOAPStyle.DOCUMENT)) {
    int inCnt = getModeParameterCount(method, WebParam.Mode.IN);
    if (inCnt != 1) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      valid = false;
    }
  }
  for (TypeMirror thrownType : method.getThrownTypes()) {
    TypeElement thrownElement = (TypeElement) ((DeclaredType) thrownType).asElement();
    if (builder.isServiceException(thrownType)) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(
          typeElement.getQualifiedName(), method.toString(), thrownElement.getQualifiedName()), method);
      valid = false;
    }
  }
  return valid;
}
origin: org.glassfish.metro/webservices-tools

protected boolean isValidOneWayMethod(ExecutableElement method, TypeElement typeElement) {
  boolean valid = true;
  if (!(method.getReturnType().accept(NO_TYPE_VISITOR, null))) {
    // this is an error, cannot be OneWay and have a return type
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_HAVE_RETURN_TYPE(typeElement.getQualifiedName(), method.toString()), method);
    valid = false;
  }
  VariableElement outParam = getOutParameter(method);
  if (outParam != null) {
    builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_OUT(typeElement.getQualifiedName(), method.toString()), outParam);
    valid = false;
  }
  if (!isDocLitWrapped() && soapStyle.equals(SOAPStyle.DOCUMENT)) {
    int inCnt = getModeParameterCount(method, WebParam.Mode.IN);
    if (inCnt != 1) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_AND_NOT_ONE_IN(typeElement.getQualifiedName(), method.toString()), method);
      valid = false;
    }
  }
  for (TypeMirror thrownType : method.getThrownTypes()) {
    TypeElement thrownElement = (TypeElement) ((DeclaredType) thrownType).asElement();
    if (builder.isServiceException(thrownType)) {
      builder.processError(WebserviceapMessages.WEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS(
          typeElement.getQualifiedName(), method.toString(), thrownElement.getQualifiedName()), method);
      valid = false;
    }
  }
  return valid;
}
com.sun.tools.ws.resourcesWebserviceapMessagesWEBSERVICEAP_ONEWAY_OPERATION_CANNOT_DECLARE_EXCEPTIONS

Javadoc

The method {1} of class {0} is annotated @Oneway but declares the exception {2}

Popular methods of WebserviceapMessages

  • 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

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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