1 5 package com.opensymphony.workflow.loader; 6 7 import com.opensymphony.workflow.util.XMLizable; 8 9 import java.io.Serializable ; 10 11 12 17 public abstract class AbstractDescriptor implements XMLizable, Serializable { 18 20 private AbstractDescriptor parent; 21 private boolean hasId = false; 22 private int id; 23 24 26 public void setId(int id) { 27 this.id = id; 28 hasId = true; 29 } 30 31 public int getId() { 32 return id; 33 } 34 35 public void setParent(AbstractDescriptor parent) { 36 this.parent = parent; 37 } 38 39 public AbstractDescriptor getParent() { 40 return parent; 41 } 42 43 public boolean hasId() { 44 return hasId; 45 } 46 } 47 | Popular Tags |