Package org.hl7.fhir.r4.formats
Class JsonCreatorDirect
- java.lang.Object
-
- org.hl7.fhir.r4.formats.JsonCreatorDirect
-
- All Implemented Interfaces:
JsonCreator
public class JsonCreatorDirect extends Object implements JsonCreator
A little implementation of a json write to replace Gson .... because Gson screws up decimal values, and *we care*- Author:
- Grahame Grieve
-
-
Constructor Summary
Constructors Constructor Description JsonCreatorDirect(Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginArray()voidbeginObject()voidendArray()voidendObject()voidfinish()voidlink(String href)voidname(String name)voidnullValue()voidsetIndent(String indent)voidstepIn()voidstepOut()voidvalue(Boolean value)voidvalue(Integer value)voidvalue(String value)voidvalue(BigDecimal value)voidvalueNum(String value)
-
-
-
Constructor Detail
-
JsonCreatorDirect
public JsonCreatorDirect(Writer writer)
-
-
Method Detail
-
setIndent
public void setIndent(String indent)
- Specified by:
setIndentin interfaceJsonCreator
-
beginObject
public void beginObject() throws IOException
- Specified by:
beginObjectin interfaceJsonCreator- Throws:
IOException
-
stepIn
public void stepIn() throws IOException
- Throws:
IOException
-
stepOut
public void stepOut() throws IOException
- Throws:
IOException
-
endObject
public void endObject() throws IOException
- Specified by:
endObjectin interfaceJsonCreator- Throws:
IOException
-
nullValue
public void nullValue() throws IOException
- Specified by:
nullValuein interfaceJsonCreator- Throws:
IOException
-
name
public void name(String name) throws IOException
- Specified by:
namein interfaceJsonCreator- Throws:
IOException
-
value
public void value(String value) throws IOException
- Specified by:
valuein interfaceJsonCreator- Throws:
IOException
-
value
public void value(Boolean value) throws IOException
- Specified by:
valuein interfaceJsonCreator- Throws:
IOException
-
value
public void value(BigDecimal value) throws IOException
- Specified by:
valuein interfaceJsonCreator- Throws:
IOException
-
valueNum
public void valueNum(String value) throws IOException
- Specified by:
valueNumin interfaceJsonCreator- Throws:
IOException
-
value
public void value(Integer value) throws IOException
- Specified by:
valuein interfaceJsonCreator- Throws:
IOException
-
beginArray
public void beginArray() throws IOException
- Specified by:
beginArrayin interfaceJsonCreator- Throws:
IOException
-
endArray
public void endArray() throws IOException
- Specified by:
endArrayin interfaceJsonCreator- Throws:
IOException
-
finish
public void finish() throws IOException
- Specified by:
finishin interfaceJsonCreator- Throws:
IOException
-
link
public void link(String href)
- Specified by:
linkin interfaceJsonCreator
-
-