KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > OO7_CompositePartImpl


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_CompositePartImpl.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_CompositePartImpl extends OO7_DesignObjectImpl implements OO7_CompositePart {
15     OO7_Document theDocumentation;
16     DxListBag theUsedInPriv;
17     DxListBag theUsedInShar;
18     DxListBag theParts;
19     OO7_AtomicPart theRootPart;
20     
21     
22     public OO7_CompositePartImpl() {
23         theUsedInPriv = new DxListBag();
24         theUsedInShar = new DxListBag();
25         theParts = new DxListBag();
26     }
27     
28     
29     public void setDocumentation( OO7_Document x ) {
30         theDocumentation = x;
31     }
32     
33     
34     public OO7_Document documentation() {
35         return theDocumentation;
36     }
37     
38     
39     public void addUsedInPriv( OO7_BaseAssembly x ) {
40         theUsedInPriv.addBack( x );
41     }
42     
43     
44     public DxBag usedInPriv() {
45         return theUsedInPriv;
46     }
47     
48     
49     public void addUsedInShar( OO7_BaseAssembly x ) {
50         theUsedInShar.addBack( x );
51     }
52     
53     
54     public DxBag usedInShar() {
55         return theUsedInShar;
56     }
57     
58     
59     public void addPart( OO7_AtomicPart x ) {
60         theParts.add( x );
61     }
62     
63     
64     public DxBag parts() {
65         return theParts;
66     }
67     
68     
69     public void setRootPart( OO7_AtomicPart x ) {
70         theRootPart = x;
71     }
72     
73     
74     public OO7_AtomicPart rootPart() {
75         return theRootPart;
76     }
77 }
78
Popular Tags