Package org.hl7.fhir.dstu2.formats
Class JsonCreatorCanonical
- java.lang.Object
-
- org.hl7.fhir.dstu2.formats.JsonCreatorCanonical
-
- All Implemented Interfaces:
JsonCreator
public class JsonCreatorCanonical extends Object implements JsonCreator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJsonCreatorCanonical.JsonCanObjectclassJsonCreatorCanonical.JsonCanValue
-
Constructor Summary
Constructors Constructor Description JsonCreatorCanonical(OutputStreamWriter osw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginArray()voidbeginObject()voidendArray()voidendObject()voidfinish()voidname(String name)voidnullValue()voidsetIndent(String indent)voidvalue(Boolean value)voidvalue(Integer value)voidvalue(String value)voidvalue(BigDecimal value)
-
-
-
Constructor Detail
-
JsonCreatorCanonical
public JsonCreatorCanonical(OutputStreamWriter osw)
-
-
Method Detail
-
setIndent
public void setIndent(String indent)
- Specified by:
setIndentin interfaceJsonCreator
-
beginObject
public void beginObject() throws IOException
- Specified by:
beginObjectin interfaceJsonCreator- 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
-
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
-
-