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 SummaryModifier 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- 
writeObjectWrites a value of a primitive type (null, boolean, number, String).- Parameters:
- value-
- Returns:
 
- 
writeSequenceWrites a sequence, items of which are written using this mechanism in thetask.- Parameters:
- task-
- Returns:
 
- 
writeMappingWrites a mapping, items of which are written using this mechanism in thetask.- Parameters:
- task-
- Returns:
 
- 
writePairWrites a mapping key/value pair, items of which are written using this mechanism in thetask.- Parameters:
- valueTask-
- Returns:
 
 
-