congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MessagePart.getDescriptorKind
Code IndexAdd Tabnine to your IDE (free)

How to use
getDescriptorKind
method
in
com.sun.tools.ws.wsdl.document.MessagePart

Best Java code snippets using com.sun.tools.ws.wsdl.document.MessagePart.getDescriptorKind (Showing top 20 results out of 315)

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

/**
 * For Document/Lit the wsdl:part should only have element attribute and
 * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute
 * inside wsdl:message.
 */
protected boolean isStyleAndPartMatch(
  SOAPOperation soapOperation,
  MessagePart part) {
  // style attribute on soap:operation takes precedence over the
  // style attribute on soap:binding
  if ((soapOperation != null) && (soapOperation.getStyle() != null)) {
    if ((soapOperation.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (soapOperation.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  } else {
    if ((info.soapBinding.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (info.soapBinding.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  }
  return true;
}
origin: javaee/metro-jax-ws

/**
 * For Document/Lit the wsdl:part should only have element attribute and
 * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute
 * inside wsdl:message.
 */
protected boolean isStyleAndPartMatch(
  SOAPOperation soapOperation,
  MessagePart part) {
  // style attribute on soap:operation takes precedence over the
  // style attribute on soap:binding
  if ((soapOperation != null) && (soapOperation.getStyle() != null)) {
    if ((soapOperation.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (soapOperation.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  } else {
    if ((info.soapBinding.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (info.soapBinding.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  }
  return true;
}
origin: org.glassfish.metro/webservices-tools

/**
 * For Document/Lit the wsdl:part should only have element attribute and
 * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute
 * inside wsdl:message.
 */
protected boolean isStyleAndPartMatch(
  SOAPOperation soapOperation,
  MessagePart part) {
  // style attribute on soap:operation takes precedence over the
  // style attribute on soap:binding
  if ((soapOperation != null) && (soapOperation.getStyle() != null)) {
    if ((soapOperation.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (soapOperation.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  } else {
    if ((info.soapBinding.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (info.soapBinding.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  }
  return true;
}
origin: javaee/metro-jax-ws

/**
 * For Document/Lit the wsdl:part should only have element attribute and
 * for RPC/Lit or RPC/Encoded the wsdl:part should only have type attribute
 * inside wsdl:message.
 */
protected boolean isStyleAndPartMatch(
  SOAPOperation soapOperation,
  MessagePart part) {
  // style attribute on soap:operation takes precedence over the
  // style attribute on soap:binding
  if ((soapOperation != null) && (soapOperation.getStyle() != null)) {
    if ((soapOperation.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (soapOperation.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  } else {
    if ((info.soapBinding.isDocument()
      && (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT))
      || (info.soapBinding.isRPC()
        && (part.getDescriptorKind() != SchemaKinds.XSD_TYPE))) {
      return false;
    }
  }
  return true;
}
origin: javaee/metro-jax-ws

/**
 * This method is added to fix one of the use case for j2ee se folks, so that we determine
 * for non_soap wsdl what could be the style - rpc or document based on parts in the message.
 *
 * We assume that the message parts could have either all of them with type attribute (RPC)
 * or element (DOCUMENT)
 *
 * Shall this check if parts are mixed and throw error message?
 */
private void setNonSoapStyle(Message inputMessage, Message outputMessage) {
  SOAPStyle style = SOAPStyle.DOCUMENT;
  for(MessagePart part:inputMessage.getParts()){
    if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
      style = SOAPStyle.RPC;
    } else {
      style = SOAPStyle.DOCUMENT;
    }
  }
  //check the outputMessage parts
  if(outputMessage != null){
    for(MessagePart part:outputMessage.getParts()){
      if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
        style = SOAPStyle.RPC;
      } else {
        style = SOAPStyle.DOCUMENT;
      }
    }
  }
  info.modelPort.setStyle(style);
}
origin: com.sun.xml.ws/jaxws-tools

/**
 * This method is added to fix one of the use case for j2ee se folks, so that we determine
 * for non_soap wsdl what could be the style - rpc or document based on parts in the message.
 *
 * We assume that the message parts could have either all of them with type attribute (RPC)
 * or element (DOCUMENT)
 *
 * Shall this check if parts are mixed and throw error message?
 */
private void setNonSoapStyle(Message inputMessage, Message outputMessage) {
  SOAPStyle style = SOAPStyle.DOCUMENT;
  for(MessagePart part:inputMessage.getParts()){
    if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
      style = SOAPStyle.RPC;
    } else {
      style = SOAPStyle.DOCUMENT;
    }
  }
  //check the outputMessage parts
  if(outputMessage != null){
    for(MessagePart part:outputMessage.getParts()){
      if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
        style = SOAPStyle.RPC;
      } else {
        style = SOAPStyle.DOCUMENT;
      }
    }
  }
  info.modelPort.setStyle(style);
}
origin: javaee/metro-jax-ws

/**
 * This method is added to fix one of the use case for j2ee se folks, so that we determine
 * for non_soap wsdl what could be the style - rpc or document based on parts in the message.
 *
 * We assume that the message parts could have either all of them with type attribute (RPC)
 * or element (DOCUMENT)
 *
 * Shall this check if parts are mixed and throw error message?
 */
private void setNonSoapStyle(Message inputMessage, Message outputMessage) {
  SOAPStyle style = SOAPStyle.DOCUMENT;
  for(MessagePart part:inputMessage.getParts()){
    if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
      style = SOAPStyle.RPC;
    } else {
      style = SOAPStyle.DOCUMENT;
    }
  }
  //check the outputMessage parts
  if(outputMessage != null){
    for(MessagePart part:outputMessage.getParts()){
      if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
        style = SOAPStyle.RPC;
      } else {
        style = SOAPStyle.DOCUMENT;
      }
    }
  }
  info.modelPort.setStyle(style);
}
origin: org.glassfish.metro/webservices-tools

/**
 * This method is added to fix one of the use case for j2ee se folks, so that we determine
 * for non_soap wsdl what could be the style - rpc or document based on parts in the message.
 *
 * We assume that the message parts could have either all of them with type attribute (RPC)
 * or element (DOCUMENT)
 *
 * Shall this check if parts are mixed and throw error message?
 */
private void setNonSoapStyle(Message inputMessage, Message outputMessage) {
  SOAPStyle style = SOAPStyle.DOCUMENT;
  for(MessagePart part:inputMessage.getParts()){
    if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
      style = SOAPStyle.RPC;
    } else {
      style = SOAPStyle.DOCUMENT;
    }
  }
  //check the outputMessage parts
  if(outputMessage != null){
    for(MessagePart part:outputMessage.getParts()){
      if (part.getDescriptorKind() == SchemaKinds.XSD_TYPE) {
        style = SOAPStyle.RPC;
      } else {
        style = SOAPStyle.DOCUMENT;
      }
    }
  }
  info.modelPort.setStyle(style);
}
origin: org.glassfish.metro/webservices-tools

public void add(MessagePart part) {
  if (_partsByName.get(part.getName()) != null){
    errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName()));
    throw new AbortException();
  }
  
  if(part.getDescriptor() != null && part.getDescriptorKind() != null) {
    _partsByName.put(part.getName(), part);
    _parts.add(part);
  } else
    errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName()));
}
origin: javaee/metro-jax-ws

public void add(MessagePart part) {
  if (_partsByName.get(part.getName()) != null){
    errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName()));
    throw new AbortException();
  }
  
  if(part.getDescriptor() != null && part.getDescriptorKind() != null) {
    _partsByName.put(part.getName(), part);
    _parts.add(part);
  } else
    errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName()));
}
origin: com.sun.xml.ws/jaxws-tools

public void add(MessagePart part) {
  if (_partsByName.get(part.getName()) != null){
    errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName()));
    throw new AbortException();
  }
  
  if(part.getDescriptor() != null && part.getDescriptorKind() != null) {
    _partsByName.put(part.getName(), part);
    _parts.add(part);
  } else
    errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName()));
}
origin: javaee/metro-jax-ws

public void add(MessagePart part) {
  if (_partsByName.get(part.getName()) != null){
    errorReceiver.error(part.getLocator(), WsdlMessages.VALIDATION_DUPLICATE_PART_NAME(getName(), part.getName()));
    throw new AbortException();
  }
  
  if(part.getDescriptor() != null && part.getDescriptorKind() != null) {
    _partsByName.put(part.getName(), part);
    _parts.add(part);
  } else
    errorReceiver.warning(part.getLocator(), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(part.getName()));
}
origin: javaee/metro-jax-ws

/**
 * @param part
 * @return Returns a JAXBType object
 */
private JAXBType getJAXBType(MessagePart part) {
  JAXBType type;
  QName name = part.getDescriptor();
  if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
    type = getJAXBModelBuilder().getJAXBType(name);
    if(type == null){
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
  } else {
    S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
    TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
    if (typeAnno == null) {
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
    JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
    type = new JAXBType(new QName("", part.getName()), javaType);
  }
  return type;
}
origin: javaee/metro-jax-ws

/**
 * @param part
 * @return Returns a JAXBType object
 */
private JAXBType getJAXBType(MessagePart part) {
  JAXBType type;
  QName name = part.getDescriptor();
  if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
    type = getJAXBModelBuilder().getJAXBType(name);
    if(type == null){
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
  } else {
    S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
    TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
    if (typeAnno == null) {
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
    JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
    type = new JAXBType(new QName("", part.getName()), javaType);
  }
  return type;
}
origin: com.sun.xml.ws/jaxws-tools

/**
 * @param part
 * @return Returns a JAXBType object
 */
private JAXBType getJAXBType(MessagePart part) {
  JAXBType type;
  QName name = part.getDescriptor();
  if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
    type = getJAXBModelBuilder().getJAXBType(name);
    if(type == null){
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
  } else {
    S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
    TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
    if (typeAnno == null) {
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
    JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
    type = new JAXBType(new QName("", part.getName()), javaType);
  }
  return type;
}
origin: org.glassfish.metro/webservices-tools

/**
 * @param part
 * @return Returns a JAXBType object
 */
private JAXBType getJAXBType(MessagePart part) {
  JAXBType type;
  QName name = part.getDescriptor();
  if (part.getDescriptorKind().equals(SchemaKinds.XSD_ELEMENT)) {
    type = getJAXBModelBuilder().getJAXBType(name);
    if(type == null){
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
  } else {
    S2JJAXBModel jaxbModel = getJAXBModelBuilder().getJAXBModel().getS2JJAXBModel();
    TypeAndAnnotation typeAnno = jaxbModel.getJavaType(name);
    if (typeAnno == null) {
      error(part, ModelerMessages.WSDLMODELER_JAXB_JAVATYPE_NOTFOUND(name, part.getName()));
    }
    JavaType javaType = new JavaSimpleType(new JAXBTypeAndAnnotation(typeAnno));
    type = new JAXBType(new QName("", part.getName()), javaType);
  }
  return type;
}
origin: com.sun.xml.ws/jaxws-tools

  error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName()));
if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) {
  if (options.isExtensionMode()) {
    warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
origin: javaee/metro-jax-ws

  error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName()));
if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) {
  if (options.isExtensionMode()) {
    warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
origin: org.glassfish.metro/webservices-tools

  error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName()));
if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) {
  if (options.isExtensionMode()) {
    warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
origin: javaee/metro-jax-ws

  error(header, ModelerMessages.WSDLMODELER_INVALID_HEADER_NOT_FOUND(header.getPart(), bindingOperation.getName()));
if (part.getDescriptorKind() != SchemaKinds.XSD_ELEMENT) {
  if (options.isExtensionMode()) {
    warning(part, ModelerMessages.WSDLMODELER_INVALID_HEADER_MESSAGE_PART_MUST_HAVE_ELEMENT_DESCRIPTOR(part.getName(), bindingOperation.getName()));
com.sun.tools.ws.wsdl.documentMessagePartgetDescriptorKind

Popular methods of MessagePart

  • <init>
  • accept
  • failValidation
  • getBindingExtensibilityElementKind
  • getDescriptor
  • getLocator
  • getMode
  • getName
  • isIN
  • isINOUT
  • isOUT
  • isReturn
  • isOUT,
  • isReturn,
  • setBindingExtensibilityElementKind,
  • setDescriptor,
  • setDescriptorKind,
  • setMode,
  • setName,
  • setReturn

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • From CI to AI: The AI layer in your organization
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