1 61 62 63 package org.jaxen.jdom; 64 65 import org.jdom.Element; 66 import org.jdom.Namespace; 67 68 73 public class XPathNamespace 74 { 75 private Element jdomElement; 76 77 private Namespace jdomNamespace; 78 79 82 public XPathNamespace( Namespace jdomNamespace ) 83 { 84 this.jdomNamespace = jdomNamespace; 85 } 86 87 90 public XPathNamespace( Element jdomElement, Namespace jdomNamespace ) 91 { 92 this.jdomElement = jdomElement; 93 this.jdomNamespace = jdomNamespace; 94 } 95 96 100 public Element getJDOMElement() 101 { 102 return jdomElement; 103 } 104 105 107 public void setJDOMElement( Element jdomElement ) 108 { 109 this.jdomElement = jdomElement; 110 } 111 112 115 public Namespace getJDOMNamespace() 116 { 117 return jdomNamespace; 118 } 119 120 public String toString() 121 { 122 return ( "[xmlns:" + jdomNamespace.getPrefix() + "=\"" + 123 jdomNamespace.getURI() + "\", element=" + 124 jdomElement.getName() + "]" ); 125 } 126 } 127 | Popular Tags |