/** * Reports a warning. */ public final void warning( @Nullable Locator loc, String msg ) { warning( new SAXParseException(msg,loc) ); }
private boolean fail(Locator location) { errReceiver.warning(location, ModelerMessages.WSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING( AddressingVersion.MEMBER.nsUri, W3CAddressingMetadataConstants.WSAM_NAMESPACE_NAME)); return false; }
/** * Reports a warning. */ public final void warning( @Nullable Locator loc, String msg ) { warning( new SAXParseException(msg,loc) ); }
private void warn(Locator location) { errReceiver.warning(location, ModelerMessages.WSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED( AddressingVersion.MEMBER.nsUri, W3CAddressingMetadataConstants.WSAM_NAMESPACE_NAME)); }
private boolean fail(Locator location) { errReceiver.warning(location, ModelerMessages.WSDLMODELER_INVALID_IGNORING_MEMBER_SUBMISSION_ADDRESSING( AddressingVersion.MEMBER.nsUri, W3CAddressingMetadataConstants.WSAM_NAMESPACE_NAME)); return false; }
/** * Reports a warning. */ public final void warning( @Nullable Locator loc, String msg ) { warning( new SAXParseException(msg,loc) ); }
private void warn(Locator location) { errReceiver.warning(location, ModelerMessages.WSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED( AddressingVersion.MEMBER.nsUri, W3CAddressingMetadataConstants.WSAM_NAMESPACE_NAME)); }
private void warn(Locator location) { errReceiver.warning(location, ModelerMessages.WSDLMODELER_WARNING_MEMBER_SUBMISSION_ADDRESSING_USED( AddressingVersion.MEMBER.nsUri, W3CAddressingMetadataConstants.WSAM_NAMESPACE_NAME)); }
private boolean isGlobalBinding(Node bindings) { if (bindings.getNamespaceURI() == null) { errorReceiver.warning(forest.locatorTable.getStartLocation((Element) bindings), WsdlMessages.INVALID_CUSTOMIZATION_NAMESPACE(bindings.getLocalName())); return false; } return (bindings.getNamespaceURI().equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) && (bindings.getLocalName().equals("package") || bindings.getLocalName().equals("enableAsyncMapping") || bindings.getLocalName().equals("enableAdditionalSOAPHeaderMapping") || bindings.getLocalName().equals("enableWrapperStyle") || bindings.getLocalName().equals("enableMIMEContent"))); }
private boolean isGlobalBinding(Node bindings) { if (bindings.getNamespaceURI() == null) { errorReceiver.warning(forest.locatorTable.getStartLocation((Element) bindings), WsdlMessages.INVALID_CUSTOMIZATION_NAMESPACE(bindings.getLocalName())); return false; } return (bindings.getNamespaceURI().equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) && (bindings.getLocalName().equals("package") || bindings.getLocalName().equals("enableAsyncMapping") || bindings.getLocalName().equals("enableAdditionalSOAPHeaderMapping") || bindings.getLocalName().equals("enableWrapperStyle") || bindings.getLocalName().equals("enableMIMEContent"))); }
private boolean isGlobalBinding(Node bindings) { if (bindings.getNamespaceURI() == null) { errorReceiver.warning(forest.locatorTable.getStartLocation((Element) bindings), WsdlMessages.INVALID_CUSTOMIZATION_NAMESPACE(bindings.getLocalName())); return false; } return (bindings.getNamespaceURI().equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) && (bindings.getLocalName().equals("package") || bindings.getLocalName().equals("enableAsyncMapping") || bindings.getLocalName().equals("enableAdditionalSOAPHeaderMapping") || bindings.getLocalName().equals("enableWrapperStyle") || bindings.getLocalName().equals("enableMIMEContent"))); }
private boolean warnEmptyAction(TWSDLExtensible parent, Locator pos) { errReceiver.warning(pos, WsdlMessages.WARNING_INPUT_OUTPUT_EMPTY_ACTION(parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; } }
private boolean warnEmptyAction(TWSDLExtensible parent, Locator pos) { errReceiver.warning(pos, WsdlMessages.WARNING_INPUT_OUTPUT_EMPTY_ACTION(parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; } }
private boolean warnEmptyAction(TWSDLExtensible parent, Locator pos) { errReceiver.warning(pos, WsdlMessages.WARNING_INPUT_OUTPUT_EMPTY_ACTION(parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; } }
private boolean warnEmptyAction(TWSDLExtensible parent, Locator pos) { errReceiver.warning(pos, WsdlMessages.WARNING_INPUT_OUTPUT_EMPTY_ACTION(parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; } }
@Override public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; // keep compiler happy } ((Fault)parent).setAction(actionValue); return true; }
@Override public boolean handleFaultExtension(TWSDLParserContext context, TWSDLExtensible parent, Element e) { String actionValue = XmlUtil.getAttributeNSOrNull(e, WSAM_ACTION_QNAME); if (actionValue == null || actionValue.equals("")) { errReceiver.warning(context.getLocation(e), WsdlMessages.WARNING_FAULT_EMPTY_ACTION(parent.getNameValue(), parent.getWSDLElementName().getLocalPart(), parent.getParent().getNameValue())); return false; // keep compiler happy } ((Fault)parent).setAction(actionValue); return true; }
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())); }
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())); }
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())); }