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 void checkNotWsdlElement(Element e) { // possible extensibility element -- must live outside the WSDL namespace if (e.getNamespaceURI() != null && e.getNamespaceURI().equals(Constants.NS_WSDL)) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_INVALID_WSDL_ELEMENT(e.getTagName())); } }
private void checkNotWsdlElement(Element e) { // possible extensibility element -- must live outside the WSDL namespace if (e.getNamespaceURI() != null && e.getNamespaceURI().equals(Constants.NS_WSDL)) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_INVALID_WSDL_ELEMENT(e.getTagName())); } }
private void checkNotWsdlAttribute(Attr a) { // possible extensibility element -- must live outside the WSDL namespace if (Constants.NS_WSDL.equals(a.getNamespaceURI())) { errReceiver.error(forest.locatorTable.getStartLocation(a.getOwnerElement()), WsdlMessages.PARSING_INVALID_WSDL_ELEMENT(a.getLocalName())); } }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorHandler.error(e); } }
private void reportError(Element errorSource, String formattedMsg, Exception nestedException) { SAXParseException e = new SAXParseException2(formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException); errorReceiver.error(e); }
private Locator findLocator() { Node n = parent.getCurrentLocation(); if( n instanceof Element ) { Element e = (Element)n; if( inStart ) return forest.locatorTable.getStartLocation( e ); else return forest.locatorTable.getEndLocation( e ); } return null; }
private void reportError(Element errorSource, String formattedMsg, Exception nestedException) { SAXParseException e = new SAXParseException2(formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException); errorReceiver.error(e); }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorReceiver.error(e); } }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorHandler.error(e); } }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorReceiver.error(e); } }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorReceiver.error(e); } }
private void reportError(Element errorSource, String formattedMsg, Exception nestedException) { SAXParseException e = new SAXParseException2(formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException); errorReceiver.error(e); }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorReceiver.error(e); } }
private void reportError( Element errorSource, String formattedMsg, Exception nestedException ) { SAXParseException e = new SAXParseException2( formattedMsg, forest.locatorTable.getStartLocation(errorSource), nestedException ); errorHandler.error(e); } }
private void checkNotWsdlRequired(Element e) { // check the wsdl:required attribute, fail if set to "true" String required = XmlUtil.getAttributeNSOrNull( e, Constants.ATTR_REQUIRED, Constants.NS_WSDL); if (required != null && required.equals(Constants.TRUE) && !options.isExtensionMode()) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_REQUIRED_EXTENSIBILITY_ELEMENT(e.getTagName(), e.getNamespaceURI())); } }
private void checkNotWsdlRequired(Element e) { // check the wsdl:required attribute, fail if set to "true" String required = XmlUtil.getAttributeNSOrNull( e, Constants.ATTR_REQUIRED, Constants.NS_WSDL); if (required != null && required.equals(Constants.TRUE) && !options.isExtensionMode()) { errReceiver.error(forest.locatorTable.getStartLocation(e), WsdlMessages.PARSING_REQUIRED_EXTENSIBILITY_ELEMENT(e.getTagName(), e.getNamespaceURI())); } }