private Result toResult(File file) { Result result; try { result = new StreamResult(new FileOutputStream(file)); result.setSystemId(file.getPath().replace('\\', '/')); } catch (FileNotFoundException e) { errReceiver.error(e); return null; } return result; }
private Result toResult(File file) { Result result; try { result = new StreamResult(new FileOutputStream(file)); result.setSystemId(file.getPath().replace('\\', '/')); } catch (FileNotFoundException e) { errReceiver.error(e); return null; } return result; }
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 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 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 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 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 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 reportError(Entity entity, String formattedMsg, Exception nestedException ) { Locator locator = (entity == null)?null:entity.getLocator(); SAXParseException e = new SAXParseException2( formattedMsg, locator, nestedException ); errReceiver.error(e); }
private void reportError(Entity entity, String formattedMsg, Exception nestedException ) { Locator locator = (entity == null)?null:entity.getLocator(); SAXParseException e = new SAXParseException2( formattedMsg, locator, nestedException ); errReceiver.error(e); }
private void reportError(Entity entity, String formattedMsg, Exception nestedException ) { Locator locator = (entity == null)?null:entity.getLocator(); SAXParseException e = new SAXParseException2( formattedMsg, locator, nestedException ); errReceiver.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())); } }
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())); } }