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

org.xmlpull.infoset.xpath.impl.XPathNamespace Maven / Gradle / Ivy

Go to download

XML Pull parser library developed by Extreme Computing Lab, Indian University

There is a newer version: 1.2.8
Show newest version

package org.xmlpull.infoset.xpath.impl;

import org.xmlpull.infoset.XmlElement;
import org.xmlpull.infoset.XmlNamespace;

/**
 * Wrap namespace with parent so we can find parent as required by JAXEN ....
 *
 *  @author
 */
public class XPathNamespace
{
    private XmlElement element;

    private XmlNamespace namespace;

    public XPathNamespace( XmlNamespace namespace )
    {
        this.namespace = namespace;
    }

    public XPathNamespace( XmlElement element, XmlNamespace namespace )
    {
        this.element = element;
        this.namespace = namespace;
    }

    public XmlElement getElement()
    {
        return element;
    }

//    public void setElement( XmlElement element )
//    {
//        this.element = element;
//    }

    public XmlNamespace getNamespace()
    {
        return namespace;
    }

    public String toString()
    {
        return ( "[xmlns:" + namespace.getPrefix() + "=\"" +
                 namespace.getName() + "\", element=" +
                 element.getName() + "]" );
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy