KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > OO7_ManualImpl


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by Thorsten Fiebig are
5
// Copyright (C) 2000-@year@ by Thorsten Fiebig. All rights reserved.
6
// Code portions created by SMB are
7
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
8
//
9
// $Id: OO7_ManualImpl.java,v 1.2 2000/10/28 16:55:26 daniela Exp $
10

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 JavaDoc theTitle;
18     long theId;
19     String JavaDoc theText;
20     OO7_Module theModule;
21     
22     
23     public void setTitle( String JavaDoc x ) {
24         theTitle = x;
25     }
26     
27     
28     public String JavaDoc 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 JavaDoc x ) {
44         theText = x;
45     }
46     
47     
48     public String JavaDoc 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 JavaDoc {
72         theTitle = in.readUTF();
73         theId = in.readLong();
74         theText = in.readUTF();
75         theModule = (OO7_Module)in.readObject();
76     }
77     
78 }
79
Popular Tags