Merge pull request #462 from hapifhir/add-fhirVersions-to-package-generator
Add a builder method for fhirVersions
This commit is contained in:
commit
eb2ae84e4b
|
@ -35,6 +35,8 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.hl7.fhir.utilities.TextFile;
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
@ -115,6 +117,15 @@ public class PackageGenerator {
|
|||
return this;
|
||||
}
|
||||
|
||||
public PackageGenerator fhirVersions(List<String> versions) {
|
||||
JsonArray fhirVersionsArray = new JsonArray();
|
||||
for (String version : versions) {
|
||||
fhirVersionsArray.add(version);
|
||||
}
|
||||
object.add("fhirVersions", fhirVersionsArray);
|
||||
return this;
|
||||
}
|
||||
|
||||
public PackageGenerator description(String value) {
|
||||
object.addProperty("description", value);
|
||||
return this;
|
||||
|
|
Loading…
Reference in New Issue