KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > demo > value > idl > NodeImpl


1 package demo.value.idl;
2
3 public class NodeImpl extends Node
4 {
5
6     public NodeImpl()
7     {
8         // This no-arg constructor is used at unmarshalling time.
9
// Because of its presence, there is no need for a separate
10
// value factory for this type. This is a special JacORB feature,
11
// see README and org.jacorb.orb.ORB.lookup_value_factory() for
12
// details.
13
}
14
15     public NodeImpl (int id)
16     {
17         this.id = id;
18     }
19
20     public String JavaDoc toString()
21     {
22         return "#" + Integer.toString (id) + "#";
23     }
24
25 }
26
Popular Tags