-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathBidirectionalAssociation.java
More file actions
39 lines (29 loc) · 1.02 KB
/
BidirectionalAssociation.java
File metadata and controls
39 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import java.util.Vector;
import java.io.*;
/******************************
* Copyright (c) 2003--2024 Kevin Lano
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
* *****************************/
public class BidirectionalAssociation extends ModelElement
{ private Association e1e2;
private Association e2e1;
public BidirectionalAssociation(Entity e1, Entity e2, int c1, int c2,
String r1, String r2)
{ super(e1.getName() + "_" + e2.getName());
e1e2 = new Association(e1,e2,c1,c2,r1,r2);
e2e1 = new Association(e2,e2,c2,c1,r2,r1);
}
public void generateJava(PrintWriter out) { }
public Vector getParameters()
{ return new Vector(); }
public void addParameter(Attribute att)
{ }
public Type getType()
{ return null; }
public void setType(Type t)
{ }
}