Uses of Interface
org.instancio.generator.GeneratorSpec
Packages that use GeneratorSpec
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio.Contains classes related to
Feed.Contains classes related to generators.
Defines generator specs.
Defines generator specs for Brazilian identifiers.
Defines generator specs for Canada.
Defines generator specs for Poland.
Defines generator specs for Russian identifiers.
Defines generator specs for USA.
Defines Service Provider Interfaces for providing custom implementations.
-
Uses of GeneratorSpec in org.instancio
Methods in org.instancio that return GeneratorSpecModifier and TypeMethodDescriptionGeneratorSpecProvider.getSpec(Generators gen) Returns a generator spec.Methods in org.instancio with parameters of type GeneratorSpecModifier and TypeMethodDescription<T> AssignmentGivenOriginDestinationAction.elseGenerate(GeneratorSpec<T> spec) Generates values using arbitrary generator specs.BaseApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<S,T> GivenOriginDestinationAction GivenOriginDestination.generate(Predicate<S> predicate, GeneratorSpec<T> spec) Generates values using arbitrary generator specs.GivenOriginPredicate.generate(TargetSelector selector, GeneratorSpec<T> spec) Generates values using arbitrary generator specs.<V> InstancioApi<T> InstancioApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.InstancioCartesianProductApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<T> AssignmentValueOf.generate(GeneratorSpec<T> spec) Generates values using arbitrary generator specs. -
Uses of GeneratorSpec in org.instancio.feed
Subinterfaces of GeneratorSpec in org.instancio.feed -
Uses of GeneratorSpec in org.instancio.generator
Subinterfaces of GeneratorSpec in org.instancio.generator -
Uses of GeneratorSpec in org.instancio.generator.specs
Subinterfaces of GeneratorSpec in org.instancio.generator.specsModifier and TypeInterfaceDescriptioninterfaceGenerator spec for arrays.interfaceAllows mapping the result of a generator to another type.interfaceGenerator spec forBigDecimal.interfaceSpec for generatingBigDecimalvalues.interfaceSpec for generatingBigIntegervalues.interfaceGenerator spec for booleans.interfaceSpec for generatingBooleanvalues.interfaceSpec for generatingBytevalues.interfaceGenerator spec for characters.interfaceSpec for generatingCharactervalues.interfaceGenerator spec for collections.interfaceSpec for generating coordinate values.interfaceSpec for generating spatial coordinate values.interfaceSpec for generating credit card numbers.interfaceSpec for generating credit card numbers.interfaceGenerator spec for producing CSV.interfaceSpec for generating CSV.interfaceSpec for generatingDoublevalues.interfaceGenerator spec forDuration.interfaceSpec for generatingDuration.interfaceSpec for generating European Article Number (EAN).interfaceSpec for generating European Article Number (EAN).interfaceSpec for generating email addresses.interfaceSpec for generating email addresses.interfaceA generator spec that emits given items to a selector's target.interfaceEnumGeneratorSpec<E extends Enum<E>>Generator spec forEnums.interfaceEnumSetGeneratorSpec<E extends Enum<E>>Generator spec forEnumSet.interfaceSpec for generating enums.interfaceFilePathSpec<T>interfaceSpec for generatingFilevalues.interfaceSpec for generatingFloatvalues.interfaceSpec for generating hashesinterfaceSpec for generating hashesinterfaceGenerator spec forInstant.interfaceSpec for generatingInstantvalues.interfaceSpec for generatingIntegervalues.interfaceIntervalSpec<T>Spec for generating intervals of various types, such as numeric and temporal values.interfaceGenerator spec for IPv4.interfaceSpec for generating IPv4 addresses.interfaceSpec for generating ISBN.interfaceSpec for generating ISBN.interfaceSpec for generatingLocalDatevalues.interfaceGenerator spec forLocalDateTime.interfaceSpec for generatingLocalDateTimevalues.interfaceGenerator spec forLocalTime.interfaceSpec for generatingLocalTimevalues.interfaceSpec for generatingLongvalues.interfaceGenerator spec for producing "Lorem ipsum..." text.interfaceSpec for generating "lorem ipsum" text.interfaceA spec for generating numbers that pass the Luhn checksum algorithm.interfaceA spec for generating numbers that pass the Luhn checksum algorithm.interfaceMapGeneratorSpec<K,V> Generator spec for maps.interfaceA spec for generating numbers that pass the Mod10 checksum algorithm.interfaceA spec for generating numbers that pass the Mod10 checksum algorithm.interfaceA spec for generating numbers that pass the Mod11 checksum algorithm.interfaceA spec for generating numbers that pass the Mod11 checksum algorithm.interfaceGenerator spec forMonthDaytypes.interfaceGenerator spec forMonthDaytypes.interfaceProvides methods for specifying whethernullcan be generated.interfaceNumberGeneratorSpec<T extends Number>Generator spec for numeric types.interfaceNumberSpec<T extends Number>Spec for generatingNumbertypes.interfaceNumericSequenceGeneratorSpec<T extends Number & Comparable<T>>A spec for generating numeric sequences.interfaceNumericSequenceSpec<T extends Number & Comparable<T>>Spec for generating numeric sequences.interfaceGenerator spec forOffsetDateTime.interfaceSpec for generatingOffsetDateTimevalues.interfaceGenerator spec forOffsetTime.interfaceSpec for generatingOffsetTimevalues.interfaceGenerator spec for selecting a random value from an array.interfaceSpec for selecting a random value from an array.interfaceGenerator spec for selecting a random value from collection.interfaceSpec for selecting a random value from a collection.interfaceGenerator spec forOptional.interfaceinterfaceSpec for generatingPathvalues.interfaceGenerator spec forPeriod.interfaceSpec for generatingPeriod.interfaceSpec for generatingShortvalues.interfaceShuffleSpec<T>Spec for shuffling elements in a random order, providing the results as aCollection.interfaceGenerator spec for specifying the size of an object.interfaceGenerator spec for Strings.interfaceSpec for generatingStringvalues.interfaceProvides a method for specifying a specific subtype that should be generated.interfaceGenerator spec forTemporaltypes.interfaceTemporalSpec<T>Spec for generatingTemporaltypes.interfaceSpec for generating strings based on a pattern.interfaceSpec for generating strings based on a pattern.(package private) interfaceA spec for truncating temporal values.interfaceGenerator spec forURI.interfaceSpec for generatingURIvalues.interfaceGenerator spec forURL.interfaceSpec for generatingURLvalues.interfaceSpec for generatingUUIDvalues.interfaceGenerator spec for generating UUID strings.interfaceSpec for generating string representations ofUUIDvalues.interfaceSpec for generatingYearMonthvalues.interfaceSpec for generatingYearvalues.interfaceGenerator spec forZonedDateTime.interfaceSpec for generatingZonedDateTimevalues.Methods in org.instancio.generator.specs that return GeneratorSpecModifier and TypeMethodDescriptionOptionalGeneratorSpec.allowEmpty()Specifies that an emptyOptionalcan be generated.default <R> GeneratorSpec<R> Converts the generated value to another type using the specified mapping function.default GeneratorSpec<String> AsGeneratorSpec.asString()Converts the generated value to aString.PathGeneratorSpec.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.Generates IPv4 address from CIDR notation, for example:fromCidr("192.168.1.0/24").NullableGeneratorSpec.nullable()Indicates thatnullvalue can be generated.UUIDStringGeneratorSpec.nullable()Indicates thatnullvalue can be generated.Selects a random value from the given choices.OneOfCollectionGeneratorSpec.oneOf(Collection<T> values) Selects a random value from the given choices.TruncatableTemporalGeneratorSpec.truncatedTo(TemporalUnit unit) Truncates generated values to the specified unit.Methods in org.instancio.generator.specs with parameters of type GeneratorSpecModifier and TypeMethodDescriptionCsvGeneratorSpec.column(String name, GeneratorSpec<?> generatorSpec) Specifies the column name and the generator spec for producing the values.CsvSpec.column(String name, GeneratorSpec<?> generatorSpec) Specifies the column name and the generator spec for producing the values. -
Uses of GeneratorSpec in org.instancio.generator.specs.bra
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.braModifier and TypeInterfaceDescriptioninterfaceSpec for generating Brazilian 'Cadastro Nacional de Pessoas Jurídicas' (CNPJ).interfaceSpec for generating Brazilian 'Cadastro Nacional de Pessoas Jurídicas' (CNPJ).interfaceSpec for generating Brazilian 'Cadastro de Pessoas Físicas' (CPF).interfaceSpec for generating Brazilian 'Cadastro de Pessoas Físicas' (CPF).interfaceSpec for generating Brazilian 'Titulo de Eleitor' .interfaceSpec for generating Brazilian 'Titulo de Eleitor' . -
Uses of GeneratorSpec in org.instancio.generator.specs.can
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.canModifier and TypeInterfaceDescriptioninterfaceSpec for generating Canadian Social Insurance Number (SIN).interfaceSpec for generating Canadian Social Insurance Number (SIN). -
Uses of GeneratorSpec in org.instancio.generator.specs.pol
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.polModifier and TypeInterfaceDescriptioninterfaceSpec for generating Polish VAT Identification Number (NIP).interfaceSpec for generating Polish VAT Identification Number (NIP).interfaceSpec for generating Polish National Identification Number (PESEL).interfaceSpec for generating Polish National Identification Number (PESEL).interfaceSpec for generating Polish Taxpayer Identification Number (REGON).interfaceSpec for generating Polish Taxpayer Identification Number (REGON). -
Uses of GeneratorSpec in org.instancio.generator.specs.rus
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.rusModifier and TypeInterfaceDescriptioninterfaceSpec for generating Russian taxpayer identification number' (INN).interfaceSpec for generating Russian taxpayer identification number' (INN). -
Uses of GeneratorSpec in org.instancio.generator.specs.usa
Subinterfaces of GeneratorSpec in org.instancio.generator.specs.usaModifier and TypeInterfaceDescriptioninterfaceSpec for generating US Social Security Number (SSN).interfaceSpec for generating US Social Security Number (SSN). -
Uses of GeneratorSpec in org.instancio.spi
Methods in org.instancio.spi that return GeneratorSpecModifier and TypeMethodDescriptionInstancioServiceProvider.GeneratorProvider.getGenerator(Node node, Generators generators) Returns a generator spec for the specifiednode.