1 package xuml.tools.model.compiler.info;
2
3 import java.util.List;
4
5 import xuml.tools.model.compiler.ClassInfo.OtherId;
6
7 public class MyReferenceMember {
8 private final String simpleClassName;
9 private final String fullClassName;
10 private final Mult thisMult;
11 private final Mult thatMult;
12 private final String thisVerbClause;
13 private final String thatVerbClause;
14 private final String fieldName;
15 private final List<MyJoinColumn> joinColumns;
16 private final boolean inPrimaryId;
17
18
19
20 private final String mappedBy;
21 private final MyJoinTable joinTable;
22 private final String rnum;
23 private final List<OtherId> otherIds;
24
25 public MyReferenceMember(String simpleClassName, String fullClassName, Mult thisMult,
26 Mult thatMult, String thisVerbClause, String thatVerbClause, String fieldName,
27 List<MyJoinColumn> joinColumns, String mappedBy, MyJoinTable joinTable,
28 boolean inPrimaryId, String rnum, List<OtherId> otherIds) {
29 this.simpleClassName = simpleClassName;
30 this.fullClassName = fullClassName;
31 this.thisMult = thisMult;
32 this.thatMult = thatMult;
33 this.thisVerbClause = thisVerbClause;
34 this.thatVerbClause = thatVerbClause;
35 this.fieldName = fieldName;
36 this.joinColumns = joinColumns;
37 this.mappedBy = mappedBy;
38 this.joinTable = joinTable;
39 this.inPrimaryId = inPrimaryId;
40 this.rnum = rnum;
41 this.otherIds = otherIds;
42 }
43
44 public boolean isInPrimaryId() {
45 return inPrimaryId;
46 }
47
48 public String getFieldName() {
49 return fieldName;
50 }
51
52 public List<OtherId> getOtherIds() {
53 return otherIds;
54 }
55
56 public String getMappedBy() {
57 return mappedBy;
58 }
59
60 public List<MyJoinColumn> getJoinColumns() {
61 return joinColumns;
62 }
63
64 public String getSimpleClassName() {
65 return simpleClassName;
66 }
67
68 public String getFullClassName() {
69 return fullClassName;
70 }
71
72 public Mult getThisMult() {
73 return thisMult;
74 }
75
76 public Mult getThatMult() {
77 return thatMult;
78 }
79
80 public String getThisVerbClause() {
81 return thisVerbClause;
82 }
83
84 public String getThatVerbClause() {
85 return thatVerbClause;
86 }
87
88 public MyJoinTable getJoinTable() {
89 return joinTable;
90 }
91
92 @Override
93 public String toString() {
94 StringBuilder builder = new StringBuilder();
95 builder.append("MyReferenceMember [simpleClassName=");
96 builder.append(simpleClassName);
97 builder.append(", fullClassName=");
98 builder.append(fullClassName);
99 builder.append(", rnum=");
100 builder.append(rnum);
101 builder.append(", thisMult=");
102 builder.append(thisMult);
103 builder.append(", thatMult=");
104 builder.append(thatMult);
105 builder.append(", thisVerbClause=");
106 builder.append(thisVerbClause);
107 builder.append(", thatVerbClause=");
108 builder.append(thatVerbClause);
109 builder.append(", fieldName=");
110 builder.append(fieldName);
111 builder.append(", otherIds=");
112 builder.append(otherIds);
113 builder.append(", joinColumns=");
114 builder.append(joinColumns);
115 builder.append(", inPrimaryId=");
116 builder.append(inPrimaryId);
117 builder.append(", thisFieldName=");
118 builder.append(mappedBy);
119 builder.append(", joinTable=");
120 builder.append(joinTable);
121 builder.append("]");
122 return builder.toString();
123 }
124
125 public String getRnum() {
126 return rnum;
127 }
128
129 }