Class ObjectNotationWriterViaGon<T,K,V>
java.lang.Object
org.aksw.jenax.graphql.sparql.v2.io.ObjectNotationWriterViaGon<T,K,V>
- All Implemented Interfaces:
Flushable,ObjectNotationWriter<K,,V> ObjectNotationWriterInMemory<T,K, V>
public class ObjectNotationWriterViaGon<T,K,V>
extends Object
implements ObjectNotationWriterInMemory<T,K,V>
Writer with an in-memory destination.
The produced object can be retrieved with
getProduct().-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedObjectNotationWriterViaGon(GonProviderApi<T, K, V> provider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()endArray()voidflush()no-op on this class.static <T,K, V> ObjectNotationWriterViaGon<T, K, V> of(GonProviderApi<T, 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
- Specified by:
getProductin interfaceObjectNotationWriterInMemory<T,K, V>
-
clear
public void clear()- Specified by:
clearin interfaceObjectNotationWriterInMemory<T,K, V>
-
flush
public void flush()no-op on this class. -
put
Append to the current element on the stack. -
beginArray
- Specified by:
beginArrayin interfaceObjectNotationWriter<T,K>
-
endArray
- Specified by:
endArrayin interfaceObjectNotationWriter<T,K>
-
beginObject
- Specified by:
beginObjectin interfaceObjectNotationWriter<T,K>
-
endObject
- Specified by:
endObjectin interfaceObjectNotationWriter<T,K>
-
name
- Specified by:
namein interfaceObjectNotationWriter<T,K>
-
value
Description copied from interface:ObjectNotationWriterWrite a primitive value (should exclude null)- Specified by:
valuein interfaceObjectNotationWriter<T,K>
-
nullValue
- Specified by:
nullValuein interfaceObjectNotationWriter<T,K>
-