Package org.aksw.jenax.io.json.writer
Class ObjectNotationWriterViaGon<K,V>
java.lang.Object
org.aksw.jenax.io.json.writer.ObjectNotationWriterViaGon<K,V>
- All Implemented Interfaces:
Flushable,ObjectNotationWriter<K,V>
Writer with an in-memory destination.
The produced object can be retrieved with
getProduct().-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendArray()voidflush()static <K,V> ObjectNotationWriterViaGon<K, V> of(GonProvider<K, V> provider) protected voidAppend to the current element on the stack.Write a primitive value (should exclude null)
-
Field Details
-
provider
-
stack
-
pendingKey
A name (or more general key) must be followed be immediately followed by an array, literal or object. Therefore a plain attribute is sufficient. -
product
The built object
-
-
Constructor Details
-
ObjectNotationWriterViaGon
-
-
Method Details
-
of
-
getProduct
-
flush
public void flush() -
put
Append to the current element on the stack. -
beginArray
- Specified by:
beginArrayin interfaceObjectNotationWriter<K,V>
-
endArray
- Specified by:
endArrayin interfaceObjectNotationWriter<K,V>
-
beginObject
- Specified by:
beginObjectin interfaceObjectNotationWriter<K,V>
-
endObject
- Specified by:
endObjectin interfaceObjectNotationWriter<K,V>
-
name
- Specified by:
namein interfaceObjectNotationWriter<K,V>
-
value
Description copied from interface:ObjectNotationWriterWrite a primitive value (should exclude null)- Specified by:
valuein interfaceObjectNotationWriter<K,V>
-
nullValue
- Specified by:
nullValuein interfaceObjectNotationWriter<K,V>
-