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

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

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

Popular methods of MessagePart

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

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JComboBox (javax.swing)
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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