Interface WritingMechanism
- All Known Implementing Classes:
YamlWritingMechanism
public interface WritingMechanism
Class implementing this interface defines mechanism for writing basic structures: primitive types,
sequences and maps.
-
Method Summary
Modifier and TypeMethodDescriptionwriteMapping
(Runnable task) Writes a mapping, items of which are written using this mechanism in thetask
.writeObject
(Object value) Writes a value of a primitive type (null
, boolean, number, String).Writes a mapping key/value pair, items of which are written using this mechanism in thetask
.writeSequence
(Runnable task) Writes a sequence, items of which are written using this mechanism in thetask
.
-
Method Details
-
writeObject
Writes a value of a primitive type (null
, boolean, number, String).- Parameters:
value
-- Returns:
-
writeSequence
Writes a sequence, items of which are written using this mechanism in thetask
.- Parameters:
task
-- Returns:
-
writeMapping
Writes a mapping, items of which are written using this mechanism in thetask
.- Parameters:
task
-- Returns:
-
writePair
Writes a mapping key/value pair, items of which are written using this mechanism in thetask
.- Parameters:
valueTask
-- Returns:
-