Interface IItemWriteHandler

All Known Implementing Classes:
MetaschemaJsonWriter

public interface IItemWriteHandler
Handler interface for writing bound items during serialization.

Implementations of this interface handle the writing of different types of model items (flags, fields, assemblies, choice groups).

  • Method Details

    • writeItemFlag

      void writeItemFlag(@NonNull Object item, @NonNull IBoundInstanceFlag instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the flag instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemField

      void writeItemField(@NonNull Object item, @NonNull IBoundInstanceModelFieldScalar instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the field instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemField

      void writeItemField(@NonNull IBoundObject item, @NonNull IBoundInstanceModelFieldComplex instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the field instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemField

      void writeItemField(@NonNull IBoundObject item, @NonNull IBoundInstanceModelGroupedField instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the field instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemField

      void writeItemField(@NonNull IBoundObject item, @NonNull IBoundDefinitionModelFieldComplex definition) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      definition - the field instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemFieldValue

      void writeItemFieldValue(@NonNull Object item, @NonNull IBoundFieldValue fieldValue) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      fieldValue - the field value instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemAssembly

      void writeItemAssembly(@NonNull IBoundObject item, @NonNull IBoundInstanceModelAssembly instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the assembly instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemAssembly

      void writeItemAssembly(@NonNull IBoundObject item, @NonNull IBoundInstanceModelGroupedAssembly instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the assembly instance
      Throws:
      IOException - if an error occurred while parsing
    • writeItemAssembly

      void writeItemAssembly(@NonNull IBoundObject item, @NonNull IBoundDefinitionModelAssembly definition) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      definition - the assembly instance
      Throws:
      IOException - if an error occurred while parsing
    • writeChoiceGroupItem

      void writeChoiceGroupItem(@NonNull IBoundObject item, @NonNull IBoundInstanceModelChoiceGroup instance) throws IOException
      Write an item.
      Parameters:
      item - the Java object representing the item to write
      instance - the choice group instance
      Throws:
      IOException - if an error occurred while parsing