Tabnine Logo
MessagePart.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.sun.tools.ws.wsdl.document.MessagePart
constructor

Best Java code snippets using com.sun.tools.ws.wsdl.document.MessagePart.<init> (Showing top 4 results out of 315)

origin: javaee/metro-jax-ws

private MessagePart parseMessagePart(TWSDLParserContextImpl context, Element e) {
  context.push();
  context.registerNamespaces(e);
  MessagePart part = new MessagePart(forest.locatorTable.getStartLocation(e));
  String partName = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
  part.setName(partName);
  String elementAttr =
    XmlUtil.getAttributeOrNull(e, Constants.ATTR_ELEMENT);
  String typeAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE);
  if (elementAttr != null) {
    if (typeAttr != null) {
      errReceiver.error(context.getLocation(e), WsdlMessages.PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(partName));
    }
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), elementAttr));
    part.setDescriptorKind(SchemaKinds.XSD_ELEMENT);
  } else if (typeAttr != null) {
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), typeAttr));
    part.setDescriptorKind(SchemaKinds.XSD_TYPE);
  } else {
    // XXX-NOTE - this is wrong; for extensibility purposes,
    // any attribute can be specified on a <part> element, so
    // we need to put an extensibility hook here
    errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(partName));
  }
  context.pop();
  context.fireDoneParsingEntity(WSDLConstants.QNAME_PART, part);
  return part;
}
origin: org.glassfish.metro/webservices-tools

private MessagePart parseMessagePart(TWSDLParserContextImpl context, Element e) {
  context.push();
  context.registerNamespaces(e);
  MessagePart part = new MessagePart(forest.locatorTable.getStartLocation(e));
  String partName = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
  part.setName(partName);
  String elementAttr =
    XmlUtil.getAttributeOrNull(e, Constants.ATTR_ELEMENT);
  String typeAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE);
  if (elementAttr != null) {
    if (typeAttr != null) {
      errReceiver.error(context.getLocation(e), WsdlMessages.PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(partName));
    }
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), elementAttr));
    part.setDescriptorKind(SchemaKinds.XSD_ELEMENT);
  } else if (typeAttr != null) {
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), typeAttr));
    part.setDescriptorKind(SchemaKinds.XSD_TYPE);
  } else {
    // XXX-NOTE - this is wrong; for extensibility purposes,
    // any attribute can be specified on a <part> element, so
    // we need to put an extensibility hook here
    errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(partName));
  }
  context.pop();
  context.fireDoneParsingEntity(WSDLConstants.QNAME_PART, part);
  return part;
}
origin: com.sun.xml.ws/jaxws-tools

private MessagePart parseMessagePart(TWSDLParserContextImpl context, Element e) {
  context.push();
  context.registerNamespaces(e);
  MessagePart part = new MessagePart(forest.locatorTable.getStartLocation(e));
  String partName = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
  part.setName(partName);
  String elementAttr =
    XmlUtil.getAttributeOrNull(e, Constants.ATTR_ELEMENT);
  String typeAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE);
  if (elementAttr != null) {
    if (typeAttr != null) {
      errReceiver.error(context.getLocation(e), WsdlMessages.PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(partName));
    }
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), elementAttr));
    part.setDescriptorKind(SchemaKinds.XSD_ELEMENT);
  } else if (typeAttr != null) {
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), typeAttr));
    part.setDescriptorKind(SchemaKinds.XSD_TYPE);
  } else {
    // XXX-NOTE - this is wrong; for extensibility purposes,
    // any attribute can be specified on a <part> element, so
    // we need to put an extensibility hook here
    errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(partName));
  }
  context.pop();
  context.fireDoneParsingEntity(WSDLConstants.QNAME_PART, part);
  return part;
}
origin: javaee/metro-jax-ws

private MessagePart parseMessagePart(TWSDLParserContextImpl context, Element e) {
  context.push();
  context.registerNamespaces(e);
  MessagePart part = new MessagePart(forest.locatorTable.getStartLocation(e));
  String partName = Util.getRequiredAttribute(e, Constants.ATTR_NAME);
  part.setName(partName);
  String elementAttr =
    XmlUtil.getAttributeOrNull(e, Constants.ATTR_ELEMENT);
  String typeAttr = XmlUtil.getAttributeOrNull(e, Constants.ATTR_TYPE);
  if (elementAttr != null) {
    if (typeAttr != null) {
      errReceiver.error(context.getLocation(e), WsdlMessages.PARSING_ONLY_ONE_OF_ELEMENT_OR_TYPE_REQUIRED(partName));
    }
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), elementAttr));
    part.setDescriptorKind(SchemaKinds.XSD_ELEMENT);
  } else if (typeAttr != null) {
    part.setDescriptor(context.translateQualifiedName(context.getLocation(e), typeAttr));
    part.setDescriptorKind(SchemaKinds.XSD_TYPE);
  } else {
    // XXX-NOTE - this is wrong; for extensibility purposes,
    // any attribute can be specified on a <part> element, so
    // we need to put an extensibility hook here
    errReceiver.warning(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED(partName));
  }
  context.pop();
  context.fireDoneParsingEntity(WSDLConstants.QNAME_PART, part);
  return part;
}
com.sun.tools.ws.wsdl.documentMessagePart<init>

Popular methods of MessagePart

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
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