Skip to content

Commit

Permalink
Add gson annotations for fields and getter/setters (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek authored Nov 22, 2024
1 parent 3f684ac commit ec044b8
Show file tree
Hide file tree
Showing 8 changed files with 471 additions and 125 deletions.
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
package org.hl7.fhir.r5.utils.validation;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

public class BundleValidationRule {
@JsonProperty("rule")
private String rule;
@SerializedName("rule")
private
String rule;

@JsonProperty("profile")
private String profile;
@SerializedName("profile")
private
String profile;
private boolean checked;

@SerializedName("rule")
@JsonProperty("rule")
public String getRule() {
return rule;
}

@SerializedName("rule")
@JsonProperty("rule")
public BundleValidationRule setRule(String rule) {
this.rule = rule;
return this;
}

@SerializedName("profile")
@JsonProperty("profile")
public String getProfile() {
return profile;
}

@SerializedName("profile")
@JsonProperty("profile")
public BundleValidationRule setProfile(String profile) {
this.profile = profile;
Expand Down
Loading

0 comments on commit ec044b8

Please sign in to comment.