java.lang.Object
dev.metaschema.core.metapath.item.DefaultItemWriter
- All Implemented Interfaces:
IItemWriter,AutoCloseable
Produces a textual representation of a Metapath sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwriteArray(IArrayItem<?> array) Write the provided array item instance.voidWrite the provided atomic item instance.protected voidWrite the provided collection value.voidwriteFunction(IFunction function) Write the provided function item instance.voidWrite the provided map item instance.voidWrite the provided node item instance.voidwriteSequence(ISequence<?> sequence) Write the provided sequence instance.
-
Constructor Details
-
DefaultItemWriter
Construct a new item writer.This instance takes ownership of the provided writer and is responsible for managing its lifecycle.
- Parameters:
writer- the writer to append text to. Ownership is transferred to this instance.
-
-
Method Details
-
writeSequence
Description copied from interface:IItemWriterWrite the provided sequence instance.- Specified by:
writeSequencein interfaceIItemWriter- Parameters:
sequence- the instance to write
-
writeArray
Description copied from interface:IItemWriterWrite the provided array item instance.- Specified by:
writeArrayin interfaceIItemWriter- Parameters:
array- the instance to write
-
writeMap
Description copied from interface:IItemWriterWrite the provided map item instance.- Specified by:
writeMapin interfaceIItemWriter- Parameters:
map- the instance to write
-
writeNode
Description copied from interface:IItemWriterWrite the provided node item instance.- Specified by:
writeNodein interfaceIItemWriter- Parameters:
node- the instance to write
-
writeAtomicValue
Description copied from interface:IItemWriterWrite the provided atomic item instance.- Specified by:
writeAtomicValuein interfaceIItemWriter- Parameters:
node- the instance to write
-
writeFunction
Description copied from interface:IItemWriterWrite the provided function item instance.- Specified by:
writeFunctionin interfaceIItemWriter- Parameters:
function- the instance to write
-
writeCollectionValue
Write the provided collection value.- Parameters:
value- the value to write
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-