001package org.hl7.fhir.r4.formats;
002
003import java.io.IOException;
004import java.math.BigDecimal;
005
006/**
007 * Facade to GSON writer, or something that imposes property ordering first
008 * 
009 * @author Grahame
010 *
011 */
012public interface JsonCreator {
013
014  void setIndent(String string);
015
016  void beginObject() throws IOException;
017
018  void endObject() throws IOException;
019
020  void nullValue() throws IOException;
021
022  void name(String name) throws IOException;
023
024  void value(String value) throws IOException;
025
026  void value(Boolean value) throws IOException;
027
028  void value(BigDecimal value) throws IOException;
029
030  void value(Integer value) throws IOException;
031
032  void beginArray() throws IOException;
033
034  void endArray() throws IOException;
035
036  void finish() throws IOException;
037
038  // only used by an creator that actually produces xhtml
039  void link(String href);
040}