| 1 11 import org.ozoneDB.OzoneObject; 12 import java.io.*; 13 14 15 public class OO7_ManualImpl extends OzoneObject implements OO7_Manual, Externalizable { 16 17 String theTitle; 18 long theId; 19 String theText; 20 OO7_Module theModule; 21 22 23 public void setTitle( String x ) { 24 theTitle = x; 25 } 26 27 28 public String title() { 29 return theTitle; 30 } 31 32 33 public void setId( long x ) { 34 theId = x; 35 } 36 37 38 public long id() { 39 return theId; 40 } 41 42 43 public void setText( String x ) { 44 theText = x; 45 } 46 47 48 public String text() { 49 return theText; 50 } 51 52 53 public void setModule( OO7_Module x ) { 54 theModule = x; 55 } 56 57 58 public OO7_Module module() { 59 return theModule; 60 } 61 62 63 public void writeExternal( ObjectOutput out ) throws IOException { 64 out.writeUTF( theTitle ); 65 out.writeLong( theId ); 66 out.writeUTF( theText ); 67 out.writeObject( theModule ); 68 } 69 70 71 public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { 72 theTitle = in.readUTF(); 73 theId = in.readLong(); 74 theText = in.readUTF(); 75 theModule = (OO7_Module)in.readObject(); 76 } 77 78 } 79 | Popular Tags |