1 16 17 package org.apache.xerces.impl.xs.opti; 18 19 import org.w3c.dom.TypeInfo ; 20 import org.w3c.dom.Attr ; 21 import org.w3c.dom.Node ; 22 import org.w3c.dom.Element ; 23 24 import org.w3c.dom.DOMException ; 25 26 27 36 public class AttrImpl extends NodeImpl 37 implements Attr { 38 39 Element element; 40 String value; 41 42 43 public AttrImpl() { 44 nodeType = Node.ATTRIBUTE_NODE; 45 } 46 47 57 public AttrImpl(Element element, String prefix, String localpart, String rawname, String uri, String value) { 58 super(prefix, localpart, rawname, uri, Node.ATTRIBUTE_NODE); 59 this.element = element; 60 this.value = value; 61 } 62 63 64 public String getName() { 65 return rawname; 66 } 67 68 69 public boolean getSpecified() { 70 return true; 71 } 72 73 public String getValue() { 74 return value; 75 } 76 77 78 public Element getOwnerElement() { 79 return element; 80 } 81 82 83 public void setValue(String value) throws DOMException { 84 this.value = value; 85 } 86 87 90 public boolean isId(){ 91 return false; 92 } 93 94 98 public TypeInfo getSchemaTypeInfo(){ 99 return null; 100 } 101 102 } | Popular Tags |