Java Code Examples for com.sun.tools.internal.ws.resources.WsdlMessages#INTERNALIZER_TWO_VERSION_ATTRIBUTES
The following examples show how to use
com.sun.tools.internal.ws.resources.WsdlMessages#INTERNALIZER_TWO_VERSION_ATTRIBUTES .
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: VersionChecker.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 2
Source File: VersionChecker.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 3
Source File: VersionChecker.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 4
Source File: VersionChecker.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 5
Source File: VersionChecker.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 6
Source File: VersionChecker.java From hottub with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 7
Source File: VersionChecker.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }
Example 8
Source File: VersionChecker.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { super.startElement(namespaceURI, localName, qName, atts); if(!seenRoot) { // if this is the root element seenRoot = true; rootTagStart = new LocatorImpl(locator); version = atts.getValue(JAXWSBindingsConstants.NS_JAXWS_BINDINGS,"version"); if( namespaceURI.equals(JAXWSBindingsConstants.NS_JAXWS_BINDINGS) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( WsdlMessages.INTERNALIZER_TWO_VERSION_ATTRIBUTES(), locator); getErrorHandler().error(e); } //According to JAXWS 2.0 spec, if version attribute is missing its assumed to be "2.0" if( version==null) version = (version2!=null)?version2:"2.0"; } } if( JAXWSBindingsConstants.NS_JAXWS_BINDINGS.equals(namespaceURI)){ seenBindings = true; if(version == null) version = "2.0"; } }