1 19 package org.netbeans.api.mdr.events; 20 21 import java.util.Collection ; 22 import javax.jmi.reflect.RefObject; 23 24 29 public class ExtentEvent extends MDRChangeEvent { 30 31 public static final int EVENTMASK_EXTENT = 0x801FFFF; 32 33 34 public static final int EVENT_EXTENT_CREATE = 0x8010001; 35 36 public static final int EVENT_EXTENT_DELETE = 0x8010002; 37 38 private final String extentName; 39 private final RefObject metaObject; 40 private final Collection existingExtents; 41 private final boolean empty; 42 43 50 public ExtentEvent (Object source, int type, String extentName, RefObject metaObject, Collection existingExtents) { 51 this (source, type, extentName, metaObject, existingExtents, true); 52 } 53 54 public ExtentEvent(Object source, int type, String extentName, RefObject metaObject, Collection existingExtents, boolean empty) { 55 super(source, type); 56 this.extentName = extentName; 57 this.metaObject = metaObject; 58 this.existingExtents = existingExtents; 59 this.empty = empty; 60 } 61 62 65 public String getExtentName() { 66 return extentName; 67 } 68 69 72 public RefObject getMetaObject() { 73 return metaObject; 74 } 75 76 79 public Collection getExistingExtents() { 80 return existingExtents; 81 } 82 83 87 public boolean isEmpty () { 88 return this.empty; 89 } 90 } 91 | Popular Tags |