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

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

Best Java code snippets using com.sun.tools.ws.wsdl.document.MessagePart.setDescriptorKind (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.documentMessagePartsetDescriptorKind

Popular methods of MessagePart

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • getSystemService (Context)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • 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