001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.core.joran.action;
015
016import java.util.HashMap;
017
018import org.xml.sax.Attributes;
019
020public class DummyAttributes implements Attributes {
021
022    HashMap<String, String> atts = new HashMap<String, String>();
023
024    public int getIndex(String qName) {
025        return 0;
026    }
027
028    public int getIndex(String uri, String localName) {
029        return 0;
030    }
031
032    public int getLength() {
033        return 0;
034    }
035
036    public String getLocalName(int index) {
037        return null;
038    }
039
040    public String getQName(int index) {
041        return null;
042    }
043
044    public String getType(int index) {
045        return null;
046    }
047
048    public String getType(String qName) {
049        return null;
050    }
051
052    public String getType(String uri, String localName) {
053        return null;
054    }
055
056    public String getURI(int index) {
057        return null;
058    }
059
060    public String getValue(int index) {
061        return null;
062    }
063
064    public String getValue(String qName) {
065        return atts.get(qName);
066    }
067
068    public void setValue(String key, String value) {
069        atts.put(key, value);
070    }
071
072    public String getValue(String uri, String localName) {
073        return null;
074    }
075
076}