Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 17 package org.apache.xerces.dom; 18 19 import org.w3c.dom.NamedNodeMap ; 20 import org.w3c.dom.Node ; 21 22 33 public class ElementDefinitionImpl 34 extends ParentNode { 35 36 40 41 static final long serialVersionUID = -8373890672670022714L; 42 43 47 48 protected String name; 49 50 51 protected NamedNodeMapImpl attributes; 52 53 57 58 public ElementDefinitionImpl(CoreDocumentImpl ownerDocument, String name) { 59 super(ownerDocument); 60 this.name = name; 61 attributes = new NamedNodeMapImpl(ownerDocument); 62 } 63 64 68 72 public short getNodeType() { 73 return NodeImpl.ELEMENT_DEFINITION_NODE; 74 } 75 76 79 public String getNodeName() { 80 if (needsSyncData()) { 81 synchronizeData(); 82 } 83 return name; 84 } 85 86 89 public Node cloneNode(boolean deep) { 90 91 ElementDefinitionImpl newnode = 92 (ElementDefinitionImpl) super.cloneNode(deep); 93 newnode.attributes = attributes.cloneMap(newnode); 95 return newnode; 96 97 } 99 109 public NamedNodeMap getAttributes() { 110 111 if (needsSyncChildren()) { 112 synchronizeChildren(); 113 } 114 return attributes; 115 116 } 118 }
| Popular Tags
|