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 Details

    • writeObject

      WritingMechanism writeObject(Object value)
      Writes a value of a primitive type (null, boolean, number, String).
      Parameters:
      value -
      Returns:
    • writeSequence

      WritingMechanism writeSequence(Runnable task)
      Writes a sequence, items of which are written using this mechanism in the task.
      Parameters:
      task -
      Returns:
    • writeMapping

      WritingMechanism writeMapping(Runnable task)
      Writes a mapping, items of which are written using this mechanism in the task.
      Parameters:
      task -
      Returns:
    • writePair

      WritingMechanism writePair(String key, Runnable valueTask)
      Writes a mapping key/value pair, items of which are written using this mechanism in the task.
      Parameters:
      valueTask -
      Returns: