Package org.everit.json.schema.internal
Class JSONPrinter
- java.lang.Object
-
- org.everit.json.schema.internal.JSONPrinter
-
public class JSONPrinter extends Object
-
-
Constructor Summary
Constructors Constructor Description JSONPrinter(Writer writer)
JSONPrinter(org.everit.json.schema.internal.JSONWriter writer)
JSONPrinter(org.json.JSONWriter writer)
-
Method Summary
Modifier and Type Method Description JSONPrinter
array()
JSONPrinter
endArray()
JSONPrinter
endObject()
void
ifFalse(String key, Boolean value)
JSONPrinter
ifPresent(String key, Object value)
JSONPrinter
ifTrue(String key, Boolean value)
JSONPrinter
key(String key)
JSONPrinter
object()
<K> void
printSchemaMap(Map<K,Schema> input)
JSONPrinter
value(Object value)
-
-
-
Constructor Detail
-
JSONPrinter
public JSONPrinter(Writer writer)
-
JSONPrinter
public JSONPrinter(org.json.JSONWriter writer)
-
JSONPrinter
public JSONPrinter(org.everit.json.schema.internal.JSONWriter writer)
-
-
Method Detail
-
key
public JSONPrinter key(String key)
-
value
public JSONPrinter value(Object value)
-
object
public JSONPrinter object()
-
endObject
public JSONPrinter endObject()
-
ifPresent
public JSONPrinter ifPresent(String key, Object value)
-
ifTrue
public JSONPrinter ifTrue(String key, Boolean value)
-
array
public JSONPrinter array()
-
endArray
public JSONPrinter endArray()
-
-