Interface ModelConverterContext

    • Method Detail

      • defineModel

        void defineModel​(String name,
                         Schema model)
        needs to be called whenever a Model is defined which can be referenced from another Model or Property
        Parameters:
        name - the name of the model
        model - the Model
      • defineModel

        void defineModel​(String name,
                         Schema model,
                         AnnotatedType type,
                         String prevName)
        needs to be called whenever a Schema is defined which can be referenced from another Model or Property
        Parameters:
        name - the name of the model
        model - the Model
        type - the AnnotatedType
        prevName - the (optional) previous name
      • defineModel

        void defineModel​(String name,
                         Schema model,
                         Type type,
                         String prevName)
        needs to be called whenever a Schema is defined which can be referenced from another Model or Property
        Parameters:
        name - the name of the model
        model - the Model
        type - the Type
        prevName - the (optional) previous name
      • resolve

        Schema resolve​(AnnotatedType type)
        Parameters:
        type - The Schema
        Returns:
        a Model representation of the Class. Any referenced models will be defined already.
      • getConverters

        Iterator<ModelConverter> getConverters()
        Returns:
        an Iterator of ModelConverters. This iterator is not reused