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 / DeclarationChangeEvent.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.3 KB  |  78 lines

  1. package com.extensibility.xml;
  2.  
  3. import javax.swing.event.ChangeEvent;
  4.  
  5. public class DeclarationChangeEvent extends ChangeEvent {
  6.    public static final int UNSPECIFIED = 0;
  7.    public static final int NAME = 1;
  8.    public static final int ATTR_OWNER = 12;
  9.    public static final int ATTR_OWNER_NAME = 13;
  10.    public static final int ATTR_TYPE = 14;
  11.    public static final int ATTR_OPTIONS = 15;
  12.    public static final int ATTR_DEFAULT = 16;
  13.    public static final int ATTR_REQUIRED = 17;
  14.    public static final int CM_TERM = 20;
  15.    public static final int CM_CONTENTS_ADD = 21;
  16.    public static final int CM_CONTENTS_REMOVE = 22;
  17.    public static final int CM_CONTENTS = 23;
  18.    public static final int CM_OCCURANCE = 24;
  19.    public static final int CM_CONNECTION = 25;
  20.    public static final int CM_CHILD_CONNECTION = 26;
  21.    public static final int ATTRLIST_REMOVE = 32;
  22.    public static final int ATTRLIST_ADD = 33;
  23.    public static final int CONTENT_MODEL_CHANGED = 31;
  24.    public static final int ELEMENT_ATTRLIST_CHANGED = 34;
  25.    public static final int ELEMENT_SUPER_TYPE_CHANGED = 35;
  26.    public static final int ELEMENT_SUPER_TYPE_NAME_CHANGED = 36;
  27.    public static final int PE_MODEL_VALUE = 43;
  28.    public static final int PE_ATTRLIST_VALUE = 44;
  29.    public static final int PE_ATTRLIST_CHANGED = 45;
  30.    public static final int ENTITY_VALUE = 51;
  31.    public static final int ENTITY_SYSTEM = 52;
  32.    public static final int ENTITY_PUBLIC = 53;
  33.    public static final int ENTITY_NOTATION = 54;
  34.    public static final int NOTATION_SYSTEM = 62;
  35.    public static final int NOTATION_PUBLIC = 63;
  36.    public static final int PI_TARGET = 71;
  37.    public static final int PI_INSTRUCTION = 72;
  38.    public static final int SCHEMA_LOC = 81;
  39.    public static final int NAMESPACE_URI = 82;
  40.    public static final int DATATYPE_BASETYPE_CHANGED = 85;
  41.    public static final int DATATYPE_CONSTRAINTS = 86;
  42.    public static final int ERRORS = 99;
  43.    Object oldValue;
  44.    int which;
  45.  
  46.    public DeclarationChangeEvent(Object var1) {
  47.       super(var1);
  48.    }
  49.  
  50.    public DeclarationChangeEvent(Object var1, int var2, Object var3) {
  51.       super(var1);
  52.       this.which = var2;
  53.       this.oldValue = var3;
  54.    }
  55.  
  56.    public void set() {
  57.       this.oldValue = null;
  58.       this.which = 0;
  59.    }
  60.  
  61.    public void set(int var1, Object var2) {
  62.       this.oldValue = var2;
  63.       this.which = var1;
  64.    }
  65.  
  66.    public Object getOldValue() {
  67.       return this.oldValue;
  68.    }
  69.  
  70.    public int getWhich() {
  71.       return this.which;
  72.    }
  73.  
  74.    public BaseDeclaration getDeclaration() {
  75.       return (BaseDeclaration)super.source;
  76.    }
  77. }
  78.