001    /*
002     * Copyright (c) 2005 Henri Sivonen
003     *
004     * Permission is hereby granted, free of charge, to any person obtaining a 
005     * copy of this software and associated documentation files (the "Software"), 
006     * to deal in the Software without restriction, including without limitation 
007     * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
008     * and/or sell copies of the Software, and to permit persons to whom the 
009     * Software is furnished to do so, subject to the following conditions:
010     *
011     * The above copyright notice and this permission notice shall be included in 
012     * all copies or substantial portions of the Software.
013     *
014     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
015     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
016     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
017     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
018     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 
019     * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
020     * DEALINGS IN THE SOFTWARE.
021     */
022    
023    package fi.iki.hsivonen.xml;
024    
025    import org.xml.sax.Attributes;
026    
027    /**
028     * @version $Id: EmptyAttributes.java,v 1.2 2005/07/24 07:34:07 hsivonen Exp $
029     * @author hsivonen
030     */
031    public class EmptyAttributes implements Attributes {
032    
033        public final static EmptyAttributes EMPTY_ATTRIBUTES = new EmptyAttributes();
034        
035        private EmptyAttributes() {
036            
037        }
038        
039        /**
040         * @see org.xml.sax.Attributes#getLength()
041         */
042        public int getLength() {
043            return 0;
044        }
045    
046        /**
047         * @see org.xml.sax.Attributes#getURI(int)
048         */
049        public String getURI(int arg0) {
050            return null;
051        }
052    
053        /**
054         * @see org.xml.sax.Attributes#getLocalName(int)
055         */
056        public String getLocalName(int arg0) {
057            return null;
058        }
059    
060        /**
061         * @see org.xml.sax.Attributes#getQName(int)
062         */
063        public String getQName(int arg0) {
064            return null;
065        }
066    
067        /**
068         * @see org.xml.sax.Attributes#getType(int)
069         */
070        public String getType(int arg0) {
071            return null;
072        }
073    
074        /**
075         * @see org.xml.sax.Attributes#getValue(int)
076         */
077        public String getValue(int arg0) {
078            return null;
079        }
080    
081        /**
082         * @see org.xml.sax.Attributes#getIndex(java.lang.String, java.lang.String)
083         */
084        public int getIndex(String arg0, String arg1) {
085            return -1;
086        }
087    
088        /**
089         * @see org.xml.sax.Attributes#getIndex(java.lang.String)
090         */
091        public int getIndex(String arg0) {
092            return -1;
093        }
094    
095        /**
096         * @see org.xml.sax.Attributes#getType(java.lang.String, java.lang.String)
097         */
098        public String getType(String arg0, String arg1) {
099            return null;
100        }
101    
102        /**
103         * @see org.xml.sax.Attributes#getType(java.lang.String)
104         */
105        public String getType(String arg0) {
106            return null;
107        }
108    
109        /**
110         * @see org.xml.sax.Attributes#getValue(java.lang.String, java.lang.String)
111         */
112        public String getValue(String arg0, String arg1) {
113            return null;
114        }
115    
116        /**
117         * @see org.xml.sax.Attributes#getValue(java.lang.String)
118         */
119        public String getValue(String arg0) {
120            return null;
121        }
122    
123    }