Interface IWritingContext.ObjectWriter<T extends IFeatureComplexItemValueHandler>

Type Parameters:
T - the type of handler used for property writing
Enclosing interface:
IWritingContext<WRITER>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

A functional interface for writing object properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(dev.metaschema.core.model.IBoundObject parentItem, T handler)
    Write the properties of the provided parent item using the given handler.
    Perform a series of property write operations, starting first with this operation and followed by the after operation.
  • Method Details

    • accept

      void accept(@NonNull dev.metaschema.core.model.IBoundObject parentItem, @NonNull T handler) throws IOException
      Write the properties of the provided parent item using the given handler.
      Parameters:
      parentItem - the parent object whose properties are being written
      handler - the handler that provides property writing capabilities
      Throws:
      IOException - if an error occurred while writing
    • andThen

      @NonNull default IWritingContext.ObjectWriter<T> andThen(@NonNull IWritingContext.ObjectWriter<? super T> after)
      Perform a series of property write operations, starting first with this operation and followed by the after operation.
      Parameters:
      after - the secondary property write operation to perform
      Returns:
      an aggregate property write operation