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 / NotationImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  1.1 KB  |  63 lines

  1. package com.ibm.xml.dom;
  2.  
  3. import org.w3c.dom.DOMException;
  4. import org.w3c.dom.Notation;
  5.  
  6. public class NotationImpl extends NodeImpl implements Notation {
  7.    static final long serialVersionUID = -764632195890658402L;
  8.    protected String publicId;
  9.    protected String systemId;
  10.  
  11.    public NotationImpl(DocumentImpl var1, String var2) {
  12.       super(var1, var2, (String)null);
  13.    }
  14.  
  15.    public short getNodeType() {
  16.       return 12;
  17.    }
  18.  
  19.    public void setNodeValue(String var1) throws DOMException {
  20.       throw new DOMExceptionImpl((short)7, (String)null);
  21.    }
  22.  
  23.    public String getPublicId() {
  24.       if (super.syncData) {
  25.          ((NodeImpl)this).synchronizeData();
  26.       }
  27.  
  28.       return this.publicId;
  29.    }
  30.  
  31.    public String getSystemId() {
  32.       if (super.syncData) {
  33.          ((NodeImpl)this).synchronizeData();
  34.       }
  35.  
  36.       return this.systemId;
  37.    }
  38.  
  39.    public void setPublicId(String var1) {
  40.       if (super.readOnly) {
  41.          throw new DOMExceptionImpl((short)7, (String)null);
  42.       } else {
  43.          if (super.syncData) {
  44.             ((NodeImpl)this).synchronizeData();
  45.          }
  46.  
  47.          this.publicId = var1;
  48.       }
  49.    }
  50.  
  51.    public void setSystemId(String var1) {
  52.       if (super.readOnly) {
  53.          throw new DOMExceptionImpl((short)7, (String)null);
  54.       } else {
  55.          if (super.syncData) {
  56.             ((NodeImpl)this).synchronizeData();
  57.          }
  58.  
  59.          this.systemId = var1;
  60.       }
  61.    }
  62. }
  63.