1 | package de.ugoe.cs.swe.bnftools.ui.formatter;
|
---|
2 |
|
---|
3 | public class FormatterConfig {
|
---|
4 | private boolean newLineAfterAlternative = true;
|
---|
5 | private boolean preventNewLineAfterAlternativeOnLessThanThreeElements = true;
|
---|
6 | private boolean preventNewLineAfterAlternativeOnShortAlternatives = true;
|
---|
7 | private double shortAlternativeThreshold = 3.0;
|
---|
8 |
|
---|
9 | public boolean isNewLineAfterAlternative() {
|
---|
10 | return newLineAfterAlternative;
|
---|
11 | }
|
---|
12 |
|
---|
13 | public void setNewLineAfterAlternative(boolean newLineAfterAlternative) {
|
---|
14 | this.newLineAfterAlternative = newLineAfterAlternative;
|
---|
15 | }
|
---|
16 |
|
---|
17 | public boolean isPreventNewLineAfterAlternativeOnLessThanThreeElements() {
|
---|
18 | return preventNewLineAfterAlternativeOnLessThanThreeElements;
|
---|
19 | }
|
---|
20 |
|
---|
21 | public void setPreventNewLineAfterAlternativeOnLessThanThreeElements(
|
---|
22 | boolean preventNewLineAfterAlternativeOnLessThanThreeElements) {
|
---|
23 | this.preventNewLineAfterAlternativeOnLessThanThreeElements = preventNewLineAfterAlternativeOnLessThanThreeElements;
|
---|
24 | }
|
---|
25 |
|
---|
26 | public boolean isPreventNewLineAfterAlternativeOnShortAlternatives() {
|
---|
27 | return preventNewLineAfterAlternativeOnShortAlternatives;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public void setPreventNewLineAfterAlternativeOnShortAlternatives(
|
---|
31 | boolean preventNewLineAfterAlternativeOnShortAlternatives) {
|
---|
32 | this.preventNewLineAfterAlternativeOnShortAlternatives = preventNewLineAfterAlternativeOnShortAlternatives;
|
---|
33 | }
|
---|
34 |
|
---|
35 | public double getShortAlternativeThreshold() {
|
---|
36 | return shortAlternativeThreshold;
|
---|
37 | }
|
---|
38 |
|
---|
39 | public void setShortAlternativeThreshold(double shortAlternativeThreshold) {
|
---|
40 | this.shortAlternativeThreshold = shortAlternativeThreshold;
|
---|
41 | }
|
---|
42 |
|
---|
43 | }
|
---|