home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / XSDLWriter$NotationProxy.class (.txt) < prev   
Encoding:
Java Class File  |  2000-06-30  |  1.8 KB  |  38 lines

  1. package com.extensibility.xml;
  2.  
  3. public class XSDLWriter$NotationProxy extends XSDLWriter.DeclProxy {
  4.    // $FF: synthetic field
  5.    final XSDLWriter this$0;
  6.    NotationDeclaration decl;
  7.  
  8.    XSDLWriter$NotationProxy(XSDLWriter var1) {
  9.       super(var1);
  10.       this.this$0 = var1;
  11.    }
  12.  
  13.    XSDLWriter$NotationProxy(XSDLWriter var1, NotationDeclaration var2) {
  14.       super(var1);
  15.       this.this$0 = var1;
  16.       this.setDecl(var2);
  17.    }
  18.  
  19.    void setDecl(NotationDeclaration var1) {
  20.       this.decl = var1;
  21.       super.setDecl(var1);
  22.    }
  23.  
  24.    public void write(SXE var1, boolean var2) {
  25.       var1.writeElem("notation");
  26.       var1.writeAttr("name", this.decl.getName());
  27.       if (this.decl.getPublicID() != null) {
  28.          var1.writeAttr("public", this.this$0.schema.expandPERefs(this.decl.getPublicID(), this.decl));
  29.       }
  30.  
  31.       if (this.decl.getSystemID() != null) {
  32.          var1.writeAttr("system", this.this$0.schema.expandPERefs(this.decl.getSystemID().toSource(), this.decl));
  33.       }
  34.  
  35.       var1.flush("notation");
  36.    }
  37. }
  38.