1 package org.jacorb.test.orb.value; 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 this.price = 1.99; 19 } 20 21 public String toString() 22 { 23 return "#" + Integer.toString (id) + "#"; 24 } 25 26 } 27