home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / dom / ElementDefinitionImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  976 b   |  33 lines

  1. package com.ibm.xml.dom;
  2.  
  3. import org.w3c.dom.NamedNodeMap;
  4. import org.w3c.dom.Node;
  5.  
  6. public class ElementDefinitionImpl extends NodeImpl {
  7.    static final long serialVersionUID = -8373890672670022714L;
  8.    protected NamedNodeMapImpl attributes;
  9.  
  10.    public ElementDefinitionImpl(DocumentImpl var1, String var2) {
  11.       super(var1, var2, (String)null);
  12.       this.attributes = new NamedNodeMapImpl(var1, (NamedNodeMapImpl)null);
  13.    }
  14.  
  15.    public short getNodeType() {
  16.       return -1;
  17.    }
  18.  
  19.    public Node cloneNode(boolean var1) {
  20.       ElementDefinitionImpl var2 = (ElementDefinitionImpl)super.cloneNode(var1);
  21.       var2.attributes = this.attributes.cloneMap();
  22.       return var2;
  23.    }
  24.  
  25.    public NamedNodeMap getAttributes() {
  26.       if (super.syncChildren) {
  27.          ((NodeImpl)this).synchronizeChildren();
  28.       }
  29.  
  30.       return this.attributes;
  31.    }
  32. }
  33.