All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.oscim.backend.MyAttributes Maven / Gradle / Ivy

Go to download

OpenGL vector map library written in Java - running on Android, iOS, Desktop and within the browser.

There is a newer version: 0.20.0
Show newest version
package org.oscim.backend;

import com.google.gwt.xml.client.NamedNodeMap;
import com.google.gwt.xml.client.Node;

import org.xml.sax.Attributes;

public class MyAttributes implements Attributes {
    private NamedNodeMap map;

    public MyAttributes(Node n) {
        map = n.getAttributes();
    }

    @Override
    public String getValue(int i) {
        return map.item(i).getNodeValue();
    }

    @Override
    public int getLength() {
        return map.getLength();
    }

    @Override
    public String getLocalName(int i) {
        return map.item(i).getNodeName();
    }

    @Override
    public String getValue(String string) {
        Node n = map.getNamedItem(string);
        if (n == null)
            return null;

        return n.getNodeValue();
    }

    @Override
    public String getURI(int paramInt) {
        return null;
    }

    @Override
    public String getQName(int paramInt) {
        return null;
    }

    @Override
    public String getType(int paramInt) {
        return null;
    }

    @Override
    public int getIndex(String paramString1, String paramString2) {
        return 0;
    }

    @Override
    public int getIndex(String paramString) {
        return 0;
    }

    @Override
    public String getType(String paramString1, String paramString2) {
        return null;
    }

    @Override
    public String getType(String paramString) {
        return null;
    }

    @Override
    public String getValue(String paramString1, String paramString2) {
        return null;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy