|
5 | 5 | import java.util.List; |
6 | 6 |
|
7 | 7 | public class InlineFragment implements Selection { |
8 | | - private String typeCondition; |
| 8 | + private TypeName typeCondition; |
9 | 9 | private List<Directive> directives = new ArrayList<>(); |
10 | 10 | private SelectionSet selectionSet; |
11 | 11 |
|
12 | 12 | public InlineFragment() { |
13 | 13 |
|
14 | 14 | } |
15 | 15 |
|
16 | | - public InlineFragment(String typeCondition) { |
| 16 | + public InlineFragment(TypeName typeCondition) { |
17 | 17 | this.typeCondition = typeCondition; |
18 | 18 | } |
19 | 19 |
|
20 | | - public InlineFragment(String typeCondition, List<Directive> directives, SelectionSet selectionSet) { |
| 20 | + public InlineFragment(TypeName typeCondition, List<Directive> directives, SelectionSet selectionSet) { |
21 | 21 | this.typeCondition = typeCondition; |
22 | 22 | this.directives = directives; |
23 | 23 | this.selectionSet = selectionSet; |
24 | 24 | } |
25 | 25 |
|
26 | | - public InlineFragment(String typeCondition, SelectionSet selectionSet) { |
| 26 | + public InlineFragment(TypeName typeCondition, SelectionSet selectionSet) { |
27 | 27 | this.typeCondition = typeCondition; |
28 | 28 | this.selectionSet = selectionSet; |
29 | 29 | } |
30 | 30 |
|
31 | 31 |
|
32 | | - public String getTypeCondition() { |
| 32 | + public TypeName getTypeCondition() { |
33 | 33 | return typeCondition; |
34 | 34 | } |
35 | 35 |
|
36 | | - public void setTypeCondition(String typeCondition) { |
| 36 | + public void setTypeCondition(TypeName typeCondition) { |
37 | 37 | this.typeCondition = typeCondition; |
38 | 38 | } |
39 | 39 |
|
|
0 commit comments