1 7 package org.enhydra.xml; 8 9 import org.w3c.dom.Attr ; 10 import org.w3c.dom.DOMException ; 11 import org.w3c.dom.Element ; 12 import org.w3c.dom.Node ; 13 import org.w3c.dom.TypeInfo ; 14 import org.w3c.dom.UserDataHandler ; 15 16 17 28 public class AttrImpl extends NodeImpl implements Attr { 29 30 35 boolean specified = true; 36 37 40 Element owner; 41 42 45 String name; 46 47 50 String value; 51 52 53 54 61 public AttrImpl(Element owner, String name, String value) { 62 this.owner = owner; 63 this.name = name; 64 this.value = value; 65 } 66 67 72 public AttrImpl(Attr attr) { 73 this.owner = attr.getOwnerElement(); 74 this.name = attr.getName(); 75 this.value = attr.getValue(); 76 } 77 78 83 public String getName() { 84 return name; 85 } 86 87 92 public String getNodeName() { 93 return name; 94 } 95 96 101 public short getNodeType() { 102 return ATTRIBUTE_NODE; 103 } 104 105 106 133 public boolean getSpecified() { 134 return specified; 135 } 136 137 142 public String getValue() { 143 return value; 144 } 145 146 151 public String getNodeValue() { 152 return value; 153 } 154 155 160 public void setValue(String value) { 161 this.value = value; 162 } 163 164 169 public void setNodeValue(String value) { 170 this.value = value; 171 } 172 173 178 public Element getOwnerElement() { 179 return owner; 180 } 181 182 185 public TypeInfo getSchemaTypeInfo() { 186 return null; 188 } 189 190 193 public boolean isId() { 194 return false; 196 } 197 198 201 public String getNamespaceURI() { 202 return null; 204 } 205 206 209 public String getBaseURI() { 210 return null; 212 } 213 214 217 public short compareDocumentPosition(Node arg0) throws DOMException { 218 return 0; 220 } 221 222 225 public String getTextContent() throws DOMException { 226 return null; 228 } 229 230 233 public void setTextContent(String arg0) throws DOMException { 234 236 } 237 238 241 public boolean isSameNode(Node arg0) { 242 return false; 244 } 245 246 249 public String lookupPrefix(String arg0) { 250 return null; 252 } 253 254 257 public boolean isDefaultNamespace(String arg0) { 258 return false; 260 } 261 262 265 public String lookupNamespaceURI(String arg0) { 266 return null; 268 } 269 270 273 public boolean isEqualNode(Node arg0) { 274 return false; 276 } 277 278 281 public Object getFeature(String arg0, String arg1) { 282 return null; 284 } 285 286 289 public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { 290 return null; 292 } 293 294 297 public Object getUserData(String arg0) { 298 return null; 300 } 301 } | Popular Tags |