1 57 58 package com.sun.org.apache.xerces.internal.impl.xs.opti; 59 60 import org.w3c.dom.TypeInfo ; 61 import org.w3c.dom.Attr ; 62 import org.w3c.dom.Node ; 63 import org.w3c.dom.Element ; 64 65 import org.w3c.dom.DOMException ; 66 67 68 75 public class AttrImpl extends NodeImpl 76 implements Attr { 77 78 Element element; 79 String value; 80 81 82 public AttrImpl() { 83 nodeType = Node.ATTRIBUTE_NODE; 84 } 85 86 96 public AttrImpl(Element element, String prefix, String localpart, String rawname, String uri, String value) { 97 super(prefix, localpart, rawname, uri, Node.ATTRIBUTE_NODE); 98 this.element = element; 99 this.value = value; 100 } 101 102 103 public String getName() { 104 return rawname; 105 } 106 107 108 public boolean getSpecified() { 109 return true; 110 } 111 112 public String getValue() { 113 return value; 114 } 115 116 117 public Element getOwnerElement() { 118 return element; 119 } 120 121 122 public void setValue(String value) throws DOMException { 123 this.value = value; 124 } 125 126 129 public boolean isId(){ 130 return false; 131 } 132 133 137 public TypeInfo getSchemaTypeInfo(){ 138 return null; 139 } 140 141 } 142 143 | Popular Tags |