package textbender.g.xml.sax.ext; // Copyright 2005, Michael Allan. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Textbender Software"), to deal in the Textbender Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Textbender Software, and to permit persons to whom the Textbender Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Textbender Software. THE TEXTBENDER SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE TEXTBENDER SOFTWARE OR THE USE OR OTHER DEALINGS IN THE TEXTBENDER SOFTWARE. import org.xml.sax.ext.Attributes2; /** An empty Attributes2. Thread safe. */ public final class Attributes2_0 implements Attributes2 { /** A common instance of Attributes2_0. */ public static Attributes2_0 i() { return instance; } private static final Attributes2_0 instance = new Attributes2_0(); // - A t t r i b u t e s -------------------------------------------------------------- public int getIndex( String qName ) { return -1; } public int getIndex( String uri, String localName ) { return -1; } public int getLength() { return 0; } public String getLocalName( int index ) { return null; } public String getQName( int index ) { return null; } public String getType( int index ) { return null; } public String getType( String qName ) { return null; } public String getType( String uri, String localName ) { return null; } public String getURI( int index ) { return null; } public String getValue( int index ) { return null; } public String getValue( String qName ) { return null; } public String getValue( String uri, String localName ) { return null; } // - A t t r i b u t e s - 2----------------------------------------------------------- public boolean isDeclared( int index ) { throw new ArrayIndexOutOfBoundsException(); } public boolean isDeclared( String qName ) { throw new IllegalArgumentException(); } public boolean isDeclared( String uri, String localName ) { throw new IllegalArgumentException(); } public boolean isSpecified( int index ) { throw new ArrayIndexOutOfBoundsException(); } public boolean isSpecified( String qName ) { throw new IllegalArgumentException(); } public boolean isSpecified( String uri, String localName ) { throw new IllegalArgumentException(); } }