Uses of Annotation Type
org.instancio.documentation.ExperimentalApi
Packages that use ExperimentalApi
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio.Contains classes for configuring how generated values get assigned.
Defines generator specs.
Defines classes that provide access to built-in generators.
Provides classes for overriding settings at runtime.
Defines Service Provider Interfaces for providing custom implementations.
-
Uses of ExperimentalApi in org.instancio
Classes in org.instancio with annotations of type ExperimentalApiModifier and TypeClassDescriptionfinal classClass for generating simple value types, such as strings, numbers, dates, and so on.interfaceGetMethodSelector<T,R> A selector that matches a field using a getter method reference.Methods in org.instancio with annotations of type ExperimentalApiModifier and TypeMethodDescriptionstatic <T,R> Selector Select.field(GetMethodSelector<T, R> methodReference) Selects a field based on the given method reference.<V> InstancioApi<T>InstancioApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs. -
Uses of ExperimentalApi in org.instancio.assignment
Classes in org.instancio.assignment with annotations of type ExperimentalApiModifier and TypeClassDescriptionenumA setting that specifies whether objects should be populated via fields or methods.enumA setting that specifies what should happen if an error occurs when setting a field's value.enumA setting that specifies what should happen if an error occurs during a setter method invocation.enumSpecifies the style of setter to use whenAssignmentType.METHODis enabled. -
Uses of ExperimentalApi in org.instancio.generator.specs
Classes in org.instancio.generator.specs with annotations of type ExperimentalApiModifier and TypeInterfaceDescriptioninterfaceGenerator spec for producing CSV.interfaceSpec for generating CSV.interfaceA generator spec that emits given items to a selector's target.Methods in org.instancio.generator.specs with annotations of type ExperimentalApiModifier and TypeMethodDescriptionPathGeneratorSpec.createDirectory()Terminal method to indicate that the generated path, including parent directories (if any), should be created as a directory in the file system.PathGeneratorSpec.createFile()Terminal method to indicate that the generated path, including parent directories (if any), should be created as a file in the file system.PathGeneratorSpec.createFile(InputStream content) Terminal method to indicate that the generated path, including parent directories (if any), should be created as a file in the file system and content provided by the input stream written to the file. -
Uses of ExperimentalApi in org.instancio.generators
Methods in org.instancio.generators with annotations of type ExperimentalApiModifier and TypeMethodDescriptionTextGenerators.csv()Generates CSV.TextSpecs.csv()Generates CSV.<T> EmitGeneratorSpec<T>Generators.emit()Emits provided items. -
Uses of ExperimentalApi in org.instancio.settings
Classes in org.instancio.settings with annotations of type ExperimentalApiModifier and TypeInterfaceDescriptionstatic interfaceA builder for creating custom keys.Fields in org.instancio.settings with annotations of type ExperimentalApiModifier and TypeFieldDescriptionstatic final SettingKey<AssignmentType>Keys.ASSIGNMENT_TYPESpecifies how to assign values via reflection, using fields or methods; default isAssignmentType.FIELD; property nameassignment.type.static final SettingKey<Boolean>Specifies whether values should be generated based on Jakarta Bean Validation 3.0 annotations, if present; default isfalse; property namebean.validation.api.enabled.static final SettingKey<OnSetFieldError>Keys.ON_SET_FIELD_ERRORSpecifies what should happen if an error occurs setting a field's value; default isOnSetFieldError.IGNORE; property nameon.set.field.error.static final SettingKey<OnSetMethodError>Keys.ON_SET_METHOD_ERRORSpecifies what should happen if an error occurs invoking a setter; default isOnSetMethodError.ASSIGN_FIELD; property nameon.set.method.error.static final SettingKey<OnSetMethodNotFound>Specifies what should happen if a setter method for a field cannot be resolved; default isOnSetMethodNotFound.ASSIGN_FIELD; property nameon.set.method.not.found.static final SettingKey<SetterStyle>Keys.SETTER_STYLEIndicates the naming convention of setter methods to use; default isSetterStyle.SET; property namesetter.style.Methods in org.instancio.settings with annotations of type ExperimentalApiModifier and TypeMethodDescriptionstatic <T> SettingKey.SettingKeyBuilder<T>A builder for creating custom setting keys. -
Uses of ExperimentalApi in org.instancio.spi
Classes in org.instancio.spi with annotations of type ExperimentalApiModifier and TypeInterfaceDescriptioninterfaceProvides additional information toInstancioServiceProvider.Methods in org.instancio.spi with annotations of type ExperimentalApiModifier and TypeMethodDescriptiondefault voidInstancioServiceProvider.init(ServiceProviderContext context) An optional method that can be used by implementations that require access to the context information.