Tabnine Logo
WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED
Code IndexAdd Tabnine to your IDE (free)

How to use
PARSING_ELEMENT_OR_TYPE_REQUIRED
method
in
com.sun.tools.ws.resources.WsdlMessages

Best Java code snippets using com.sun.tools.ws.resources.WsdlMessages.PARSING_ELEMENT_OR_TYPE_REQUIRED (Showing top 8 results out of 315)

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: 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: 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: 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.resourcesWsdlMessagesPARSING_ELEMENT_OR_TYPE_REQUIRED

Javadoc

warning: part {0} is ignored, either the "element" or the "type" attribute is required in part "{0}"

Popular methods of WsdlMessages

  • ABSTRACT_REFERENCE_FINDER_IMPL_UNABLE_TO_PARSE
    Unable to parse "{0}" : {1}
  • ENTITY_DUPLICATE_WITH_TYPE
    duplicate "{0}" entity: "{1}"
  • ENTITY_NOT_FOUND_BINDING
    wsdl:binding "{0}" referenced by wsdl:port "{1}", but it's not found in the wsdl
  • ENTITY_NOT_FOUND_BY_Q_NAME
    {0} "{1}" not found in the wsdl: {2}
  • ENTITY_NOT_FOUND_PORT_TYPE
    wsdl:portType "{0}" referenced by wsdl:binding "{1}", but it's not found in the wsdl
  • FAILED_NOSERVICE
    Could not find wsdl:service in the provided WSDL(s): {0} At least one WSDL with at least one service
  • FILE_NOT_FOUND
    {0} is unreachable
  • INTERNALIZER_INCORRECT_SCHEMA_REFERENCE
    "{0}" is not a part of this compilation. Is this a mistake for "{1}"?
  • INTERNALIZER_INCORRECT_VERSION
    JAXWS version attribute must be "2.0"
  • INTERNALIZER_TWO_VERSION_ATTRIBUTES
    Both jaxws:version and version are present
  • INTERNALIZER_VERSION_NOT_PRESENT
    JAXWS version attribute must be present
  • INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET
    XPath evaluation of "{0}" results in an empty target node
  • INTERNALIZER_VERSION_NOT_PRESENT,
  • INTERNALIZER_X_PATH_EVALUATES_TO_NO_TARGET,
  • INTERNALIZER_X_PATH_EVALUATION_ERROR,
  • INVALID_CUSTOMIZATION_NAMESPACE,
  • INVALID_WSDL,
  • PARSER_NOT_A_BINDING_FILE,
  • PARSING_INVALID_ELEMENT,
  • PARSING_INVALID_OPERATION_STYLE,
  • PARSING_INVALID_WSDL_ELEMENT

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BoxLayout (javax.swing)
  • 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