Module dev.metaschema.databind
Package dev.metaschema.databind.io
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.
@FunctionalInterface
public static interface IWritingContext.ObjectWriter<T extends IFeatureComplexItemValueHandler>
A functional interface for writing object properties.
-
Method Summary
Modifier and TypeMethodDescriptionvoidWrite the properties of the provided parent item using the given handler.default IWritingContext.ObjectWriter<T>andThen(IWritingContext.ObjectWriter<? super T> after) Perform a series of property write operations, starting first with this operation and followed by theafteroperation.
-
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 writtenhandler- 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 theafteroperation.- Parameters:
after- the secondary property write operation to perform- Returns:
- an aggregate property write operation
-