1 32 33 package com.jeantessier.dependency; 34 35 import java.util.*; 36 37 public class DependencyEvent extends EventObject { 38 private String classname; 39 private Node dependent; 40 private Node dependable; 41 42 public DependencyEvent(Object source) { 43 this(source, null, null, null); 44 } 45 46 public DependencyEvent(Object source, String classname) { 47 this(source, classname, null, null); 48 } 49 50 public DependencyEvent(Object source, Node dependent, Node dependable) { 51 this(source, null, dependent, dependable); 52 } 53 54 private DependencyEvent(Object source, String classname, Node dependent, Node dependable) { 55 super(source); 56 57 this.classname = classname; 58 this.dependent = dependent; 59 this.dependable = dependable; 60 } 61 62 public String getClassName() { 63 return classname; 64 } 65 66 public Node getDependent() { 67 return dependent; 68 } 69 70 public Node getDependable() { 71 return dependable; 72 } 73 } 74 | Popular Tags |