Module dev.metaschema.databind
Interface IItemReadHandler
- All Known Subinterfaces:
IJsonParsingContext.IInstanceReader
- All Known Implementing Classes:
MetaschemaJsonReader
public interface IItemReadHandler
Handler interface for reading bound items during deserialization.
Implementations of this interface handle the reading of different types of model items (flags, fields, assemblies, choice groups).
-
Method Summary
Modifier and TypeMethodDescriptiondev.metaschema.core.model.IBoundObjectreadChoiceGroupItem(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelChoiceGroup instance) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemAssembly(dev.metaschema.core.model.IBoundObject parent, IBoundDefinitionModelAssembly definition) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemAssembly(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelAssembly instance) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemAssembly(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelGroupedAssembly instance) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemField(dev.metaschema.core.model.IBoundObject parent, IBoundDefinitionModelFieldComplex definition) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemField(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelFieldComplex instance) Parse and return an item.readItemField(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelFieldScalar instance) Parse and return an item.dev.metaschema.core.model.IBoundObjectreadItemField(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceModelGroupedField instance) Parse and return an item.readItemFieldValue(dev.metaschema.core.model.IBoundObject parent, IBoundFieldValue fieldValue) Parse and return an item.readItemFlag(dev.metaschema.core.model.IBoundObject parent, IBoundInstanceFlag instance) Parse and return an item.
-
Method Details
-
readItemFlag
@NonNull Object readItemFlag(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceFlag instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the flag instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemField
@Nullable Object readItemField(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelFieldScalar instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the field instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemField
@NonNull dev.metaschema.core.model.IBoundObject readItemField(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelFieldComplex instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the field instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemField
@NonNull dev.metaschema.core.model.IBoundObject readItemField(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelGroupedField instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the field instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemField
@NonNull dev.metaschema.core.model.IBoundObject readItemField(@Nullable dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundDefinitionModelFieldComplex definition) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacks, ornullif there is no parentdefinition- the field instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemFieldValue
@Nullable Object readItemFieldValue(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundFieldValue fieldValue) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksfieldValue- the field value instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemAssembly
@NonNull dev.metaschema.core.model.IBoundObject readItemAssembly(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelAssembly instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the assembly instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemAssembly
@NonNull dev.metaschema.core.model.IBoundObject readItemAssembly(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelGroupedAssembly instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the assembly instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readItemAssembly
@NonNull dev.metaschema.core.model.IBoundObject readItemAssembly(@Nullable dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundDefinitionModelAssembly definition) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacks, ornullif there is no parentdefinition- the assembly instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-
readChoiceGroupItem
@Nullable dev.metaschema.core.model.IBoundObject readChoiceGroupItem(@NonNull dev.metaschema.core.model.IBoundObject parent, @NonNull IBoundInstanceModelChoiceGroup instance) throws IOException Parse and return an item.- Parameters:
parent- the parent Java object to use for serialization callbacksinstance- the choice group instance- Returns:
- the Java object representing the parsed item
- Throws:
IOException- if an error occurred while parsing
-