com.sun.tools.internal.ws.resources.ConfigurationMessages Java Examples
The following examples show how to use
com.sun.tools.internal.ws.resources.ConfigurationMessages.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WsimportOptions.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #2
Source File: WsimportOptions.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #3
Source File: WsimportOptions.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #4
Source File: WsimportOptions.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #5
Source File: WsimportOptions.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #6
Source File: WsimportOptions.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #7
Source File: WsimportOptions.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }
Example #8
Source File: WsimportOptions.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Exposing it as a public method to allow external tools such as NB to read from wsdl model and work on it. * TODO: WSDL model needs to be exposed - basically at tool time we need to use the runtimw wsdl model * * Binding files could be jaxws or jaxb. This method identifies jaxws and jaxb binding files and keeps them separately. jaxb binding files are given separately * to JAXB in {@link com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder} * * @param receiver {@link ErrorReceiver} */ public final void parseBindings(ErrorReceiver receiver){ for (InputSource is : bindingFiles) { XMLStreamReader reader = XMLStreamReaderFactory.create(is,true); XMLStreamReaderUtil.nextElementContent(reader); if (reader.getName().equals(JAXWSBindingsConstants.JAXWS_BINDINGS)) { jaxwsCustomBindings.add(new RereadInputSource(is)); } else if (reader.getName().equals(JAXWSBindingsConstants.JAXB_BINDINGS) || reader.getName().equals(new QName(SchemaConstants.NS_XSD, "schema"))) { jaxbCustomBindings.add(new RereadInputSource(is)); } else { LocatorImpl locator = new LocatorImpl(); locator.setSystemId(reader.getLocation().getSystemId()); locator.setPublicId(reader.getLocation().getPublicId()); locator.setLineNumber(reader.getLocation().getLineNumber()); locator.setColumnNumber(reader.getLocation().getColumnNumber()); receiver.warning(locator, ConfigurationMessages.CONFIGURATION_NOT_BINDING_FILE(is.getSystemId())); } } }