org.xmlpull.infoset.xpath.impl.XPathNamespace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xpp5 Show documentation
Show all versions of xpp5 Show documentation
XML Pull parser library developed by Extreme Computing Lab, Indian University
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() + "]" );
}
}