Interface IJsonInstance

All Known Subinterfaces:
IAssemblyInstanceAbsolute, IBoundInstanceModelAssembly, IBoundInstanceModelChoiceGroup, IBoundInstanceModelField<ITEM>, IBoundInstanceModelFieldComplex, IBoundInstanceModelFieldScalar, IBoundInstanceModelNamed<ITEM>, IChoiceGroupInstance, IFieldInstanceAbsolute, INamedModelInstanceAbsolute
All Known Implementing Classes:
AbstractChoiceGroupInstance
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 interface IJsonInstance
Represents a model instance that has a JSON property name.

This interface provides access to the name used when the instance appears in JSON or YAML serialization.

  • Method Summary

    Modifier and Type
    Method
    Description
    Get the name used for the instance in JSON/YAML serialization.
  • Method Details

    • getJsonName

      @NonNull String getJsonName()
      Get the name used for the instance in JSON/YAML serialization.
      Returns:
      the JSON property name