KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > OO7_AtomicPartImpl


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_AtomicPartImpl.java,v 1.1 2001/12/17 17:45:08 per_nyfelt Exp $
10

11 import org.ozoneDB.DxLib.*;
12
13
14 public class OO7_AtomicPartImpl extends OO7_DesignObjectImpl implements OO7_AtomicPart {
15     long theX;
16     long theY;
17     long theDocId;
18     DxListBag theToConnections;
19     DxListBag theFromConnections;
20     OO7_CompositePart thePartOf;
21     
22     
23     public OO7_AtomicPartImpl() {
24         theToConnections = new DxListBag();
25         theFromConnections = new DxListBag();
26     }
27     
28     
29     public void setX( long x ) {
30         theX = x;
31     }
32     
33     
34     public long x() {
35         return theX;
36     }
37     
38     
39     public void setY( long x ) {
40         theY = x;
41     }
42     
43     
44     public long y() {
45         return theY;
46     }
47     
48     
49     public void setDocId( long x ) {
50         theDocId = x;
51     }
52     
53     
54     public long docId() {
55         return theDocId;
56     }
57     
58     
59     public void addTo( OO7_Connection x ) {
60         theToConnections.add( x );
61     }
62     
63     
64     public DxBag to() {
65         return theToConnections;
66     }
67     
68     
69     public void addFrom( OO7_Connection x ) {
70         theFromConnections.add( x );
71     }
72     
73     
74     public DxBag from() {
75         return theFromConnections;
76     }
77     
78     
79     public void setPartOf( OO7_CompositePart x ) {
80         thePartOf = x;
81     }
82     
83     
84     public OO7_CompositePart partOf() {
85         return thePartOf;
86     }
87 }
88
Popular Tags