-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: condition in unique or multiple choice options (#258)
* feat: condition filter in option and response checkbox group objects * refactor: rename unique choice option and multiple choice response objects * docs: add javadoc in response checkbox group object * test: fix typo in checkbox group serialization test
- Loading branch information
Showing
14 changed files
with
107 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/fr/insee/lunatic/model/flat/ResponseCheckboxGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package fr.insee.lunatic.model.flat; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@JsonPropertyOrder({ | ||
"id", | ||
"label", | ||
"response", | ||
"detail" | ||
}) | ||
@Getter | ||
@Setter | ||
public class ResponseCheckboxGroup { | ||
|
||
/** Identifier of the response object. */ | ||
@JsonProperty(required = true) | ||
protected String id; | ||
|
||
/** Displayed label of the modality. */ | ||
@JsonProperty(required = true) | ||
protected LabelType label; | ||
|
||
/** Filter that determines if the option is displayed or not. | ||
* If null, the option is displayed. */ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
protected ConditionFilterType conditionFilter; | ||
|
||
/** Response name of the collected variable that corresponds to the modality. */ | ||
@JsonProperty(required = true) | ||
protected ResponseType response; | ||
|
||
/** {@link DetailResponse} */ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
protected DetailResponse detail; | ||
|
||
} |
28 changes: 0 additions & 28 deletions
28
src/main/java/fr/insee/lunatic/model/flat/ResponsesCheckboxGroup.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters