KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > loader > AbstractDescriptor


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.loader;
6
7 import com.opensymphony.workflow.util.XMLizable;
8
9 import java.io.Serializable JavaDoc;
10
11
12 /**
13  * User: hani
14  * Date: May 28, 2003
15  * Time: 12:44:54 AM
16  */

17 public abstract class AbstractDescriptor implements XMLizable, Serializable JavaDoc {
18     //~ Instance fields ////////////////////////////////////////////////////////
19

20     private AbstractDescriptor parent;
21     private boolean hasId = false;
22     private int id;
23
24     //~ Methods ////////////////////////////////////////////////////////////////
25

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