home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2000 January / Onto0100.iso / pc / JAVA / MSJAVX86.EXE / xmldso.cab / XML4IE3.cab / com / ms / xml / parser / Notation.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-10-10  |  988 b   |  42 lines

  1. package com.ms.xml.parser;
  2.  
  3. import com.ms.xml.om.ElementImpl;
  4. import com.ms.xml.util.Name;
  5. import com.ms.xml.util.XMLOutputStream;
  6. import java.io.IOException;
  7.  
  8. public class Notation extends ElementImpl {
  9.    Name name;
  10.    String url;
  11.    String pubid;
  12.    int type;
  13.  
  14.    public void save(XMLOutputStream var1) throws IOException {
  15.       var1.writeIndent();
  16.       var1.writeChars("<!NOTATION ");
  17.       var1.writeQualifiedName(this.name, (Name)null);
  18.       var1.writeChars(" ");
  19.       if (this.type == -100) {
  20.          var1.writeChars("PUBLIC ");
  21.          var1.writeQuotedString(this.pubid);
  22.          var1.write(32);
  23.          var1.writeQuotedString(this.url);
  24.       } else {
  25.          var1.writeChars("SYSTEM ");
  26.          var1.writeQuotedString(this.url);
  27.       }
  28.  
  29.       var1.write(62);
  30.       var1.writeNewLine();
  31.    }
  32.  
  33.    void setURL(String var1) {
  34.       this.url = var1;
  35.    }
  36.  
  37.    Notation(Name var1) {
  38.       super(var1, 8);
  39.       this.name = var1;
  40.    }
  41. }
  42.