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

  • Making http post requests using okhttp
  • getSystemService (Context)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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