KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > OO7_ConnectionImpl


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_ConnectionImpl.java,v 1.2 2000/10/28 16:55:26 daniela Exp $
10

11 import org.ozoneDB.OzoneObject;
12
13
14 public class OO7_ConnectionImpl extends OzoneObject implements OO7_Connection {
15     String JavaDoc theType;
16     long theLength;
17     OO7_AtomicPart theFrom;
18     OO7_AtomicPart theTo;
19     
20     
21     public OO7_ConnectionImpl() {
22         theType = new String JavaDoc( "" );
23     }
24     
25     
26     public void setType( String JavaDoc x ) {
27         theType = x;
28     }
29     
30     
31     public String JavaDoc type() {
32         return theType;
33     }
34     
35     
36     public void setLength( long x ) {
37         theLength = x;
38     }
39     
40     
41     public long length() {
42         return theLength;
43     }
44     
45     
46     public void setFrom( OO7_AtomicPart x ) {
47         theFrom = x;
48     }
49     
50     
51     public OO7_AtomicPart from() {
52         return theFrom;
53     }
54     
55     
56     public void setTo( OO7_AtomicPart x ) {
57         theTo = x;
58     }
59     
60     
61     public OO7_AtomicPart to() {
62         return theTo;
63     }
64 }
65
Popular Tags