Interface ModelTransformer

All Superinterfaces:
SpiService

@Experimental @Consumer @Named public interface ModelTransformer extends SpiService
Marker interface for model transformers.
Since:
4.0.0
  • Method Details

    • transformFileModel

      @Nonnull default Model transformFileModel(@Nonnull Model model) throws ModelTransformerException
      Apply a transformation on the file model. This method will be called on each file model being loaded, just before validation.
      Parameters:
      model - the input model
      Returns:
      the transformed model, or the input model if no transformation is needed
      Throws:
      ModelTransformerException
    • transformRawModel

      @Nonnull default Model transformRawModel(@Nonnull Model model) throws ModelTransformerException
      Apply a transformation on the raw models. This method will be called on each raw model being loaded, just before validation.
      Parameters:
      model - the input model
      Returns:
      the transformed model, or the input model if no transformation is needed
      Throws:
      ModelTransformerException
    • transformEffectiveModel

      @Nonnull default Model transformEffectiveModel(@Nonnull Model model) throws ModelTransformerException
      Apply a transformation on the effective models. This method will be called on each effective model being loaded, just before validation.
      Parameters:
      model - the input model
      Returns:
      the transformed model, or the input model if no transformation is needed
      Throws:
      ModelTransformerException