1 19 20 package org.netbeans.tax.dom; 21 22 import org.w3c.dom.*; 23 import org.netbeans.tax.*; 24 25 29 class AttrImpl extends NodeImpl implements Attr { 30 31 private final TreeAttribute peer; 32 33 34 public AttrImpl(TreeAttribute peer) { 35 this.peer = peer; 36 } 37 38 41 public String getNodeName() { 42 return getName(); 43 } 44 45 48 public short getNodeType() { 49 return Node.ATTRIBUTE_NODE; 50 } 51 52 62 public String getNodeValue() throws DOMException { 63 return getValue(); 64 } 65 66 74 public Node getParentNode() { 75 return null; 76 } 77 78 81 public String getName() { 82 return peer.getQName(); 83 } 84 85 90 public Element getOwnerElement() { 91 return Wrapper.wrap(peer.getOwnerElement()); 92 } 93 94 119 public boolean getSpecified() { 120 return peer.isSpecified(); 121 } 122 123 136 public String getValue() { 137 return peer.getValue(); 138 } 139 140 153 public void setValue(String value) throws DOMException { 154 throw new ROException(); 155 } 156 157 } 158 | Popular Tags |