public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
public void endDocument() throws SAXException { super.endDocument(); if( seenBindings && version==null ) { // if we see a binding declaration but not version attribute SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_VERSION_NOT_FOUND),rootTagStart); getErrorHandler().error(e); } // if present, the value must be either 1.0 or 2.0 if( version!=null && !VERSIONS.contains(version) ) { SAXParseException e = new SAXParseException( Messages.format(Messages.ERR_INCORRECT_VERSION),rootTagStart); getErrorHandler().error(e); } }
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(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
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(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
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(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
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(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }
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(Const.JAXB_NSURI,"version"); if( namespaceURI.equals(Const.JAXB_NSURI) ) { String version2 = atts.getValue("","version"); if( version!=null && version2!=null ) { // we have both @version and @jaxb:version. error. SAXParseException e = new SAXParseException( Messages.format( Messages.TWO_VERSION_ATTRIBUTES ), locator ); getErrorHandler().error(e); } if( version==null ) version = version2; } } if( Const.JAXB_NSURI.equals(namespaceURI) ) seenBindings = true; }