Uses of Interface
org.instancio.TargetSelector
Packages that use TargetSelector
Package
Description
Instancio public-facing APIs; for usage examples see
Instancio.Contains exception classes thrown by Instancio.
-
Uses of TargetSelector in org.instancio
Subinterfaces of TargetSelector in org.instancioModifier and TypeInterfaceDescriptioninterfaceA builder for constructing predicate-based field selectors.interfaceGetMethodSelector<T,R> A selector that matches a field using a getter method reference.interfaceA marker for selectors that can be grouped usingSelect.all(GroupableSelector...).interfaceA lenient selector does not trigger the "unused selector" error if it does not match any targets.interfaceA selector for matching targets using predicates.interfaceRepresents a selector that can be scoped usingwithin(Scope...scopes).interfaceRepresents regular field and class selectors, including primitive and wrapper selectors.interfaceA marker for selectors that contain other selectors.interfaceSetMethodSelector<T,U> A selector for setter methods.interfaceA builder for constructing predicate-based type selectors.Methods in org.instancio that return TargetSelectorModifier and TypeMethodDescriptionLenientSelector.lenient()Marks this selector as lenient, which prevents the selector from producing "unused selector" error if it does not match any target.static TargetSelectorSelect.root()Selects the root object.Specifies the scope for this selector in order to narrow down its target.Methods in org.instancio with parameters of type TargetSelectorModifier and TypeMethodDescriptionBaseApi.applyFeed(TargetSelector selector, Feed feed) Applies the providedfeedto the specifiedselector.BaseApi.applyFeed(TargetSelector selector, FeedProvider provider) Creates a feed and applies it to the specifiedselector.InstancioApi.applyFeed(TargetSelector selector, Feed feed) Applies the providedfeedto the specifiedselector.InstancioApi.applyFeed(TargetSelector selector, FeedProvider provider) Creates a feed and applies it to the specifiedselector.InstancioCartesianProductApi.applyFeed(TargetSelector selector, Feed feed) Applies the providedfeedto the specifiedselector.InstancioCartesianProductApi.applyFeed(TargetSelector selector, FeedProvider provider) Creates a feed and applies it to the specifiedselector.BaseApi.filter(TargetSelector selector, FilterPredicate<V> predicate) Filters generated values using givenpredicate.<V> InstancioApi<T> InstancioApi.filter(TargetSelector selector, FilterPredicate<V> predicate) Filters generated values using givenpredicate.InstancioCartesianProductApi.filter(TargetSelector selector, FilterPredicate<V> predicate) Filters generated values using givenpredicate.BaseApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.BaseApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.GivenOriginPredicate.generate(TargetSelector selector, GeneratorSpec<T> spec) Generates values using arbitrary generator specs.GivenOriginPredicate.generate(TargetSelector selector, GeneratorSpecProvider<T> gen) Generates values using built-in generators provided by thegenparameter, of typeGenerators.<V> InstancioApi<T> InstancioApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.<V> InstancioApi<T> InstancioApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.InstancioCartesianProductApi.generate(TargetSelector selector, GeneratorSpec<V> spec) Customises values using arbitrary generator specs.InstancioCartesianProductApi.generate(TargetSelector selector, GeneratorSpecProvider<V> gen) Customises values using built-in generators provided by thegenparameter, of typeGenerators.static GivenOriginAssign.given(TargetSelector origin) Creates a conditional for a givenoriginand one or moredestinationselectors.static GivenOriginDestinationAssign.given(TargetSelector origin, TargetSelector destination) Creates a conditional assigment for a given pair oforiginanddestinationselectors.BaseApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.InstancioApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.InstancioCartesianProductApi.ignore(TargetSelector selector) Specifies that a class or field should be ignored.BaseApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after the root object has been fully populated.<V> InstancioApi<T> InstancioApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after the root object has been fully populated.InstancioCartesianProductApi.onComplete(TargetSelector selector, OnCompleteCallback<V> callback) A callback that gets invoked after the root object has been fully populated.BaseApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.GivenOriginPredicate.set(TargetSelector selector, T value) Sets a value to matching selector targets.<V> InstancioApi<T> InstancioApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.InstancioCartesianProductApi.set(TargetSelector selector, V value) Sets a value to matching selector targets.BaseApi.setBlank(TargetSelector selector) Specifies that a blank object should be generated for the selected target.InstancioApi.setBlank(TargetSelector selector) Specifies that a blank object should be generated for the selected target.InstancioCartesianProductApi.setBlank(TargetSelector selector) Specifies that a blank object should be generated for the selected target.BaseApi.setModel(TargetSelector selector, Model<V> model) Applies givenmodelto the specifiedselector.<V> InstancioApi<T> InstancioApi.setModel(TargetSelector selector, Model<V> model) Applies givenmodelto the specifiedselector.InstancioCartesianProductApi.setModel(TargetSelector selector, Model<V> model) Applies givenmodelto the specifiedselector.BaseApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.InstancioApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.InstancioCartesianProductApi.subtype(TargetSelector selector, Class<?> subtype) Maps target field or class to the given subtype.BaseApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.BaseApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.GivenOriginPredicate.supply(TargetSelector selector, Supplier<T> supplier) Supplies an object using aSupplier.GivenOriginPredicate.supply(TargetSelector selector, Generator<T> generator) Supplies an object using aGeneratorto matching selector targets.<V> InstancioApi<T> InstancioApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.<V> InstancioApi<T> InstancioApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.InstancioCartesianProductApi.supply(TargetSelector selector, Supplier<V> supplier) Supplies an object using aSupplier.InstancioCartesianProductApi.supply(TargetSelector selector, Generator<V> generator) Supplies an object using aGeneratorto matching selector targets.ValueOf.to(TargetSelector destination) Specifies the destination selector for the assignment.static ValueOfAssign.valueOf(TargetSelector target) Creates an assignment builder with a giventargetselector.InstancioCartesianProductApi.with(TargetSelector selector, V... values) Sets a range of values for generating the Cartesian product.BaseApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable.InstancioApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable.InstancioCartesianProductApi.withNullable(TargetSelector selector) Specifies that a field or class is nullable.BaseApi.withUnique(TargetSelector selector) Specifies that the given selector's target(s) should have unique values.InstancioApi.withUnique(TargetSelector selector) Specifies that the given selector's target(s) should have unique values.InstancioCartesianProductApi.withUnique(TargetSelector selector) Specifies that the given selector's target(s) should have unique values. -
Uses of TargetSelector in org.instancio.exception
Methods in org.instancio.exception that return types with arguments of type TargetSelectorModifier and TypeMethodDescriptionMap<org.instancio.internal.ApiMethodSelector, List<TargetSelector>> UnusedSelectorException.getUnusedSelectorMap()Constructor parameters in org.instancio.exception with type arguments of type TargetSelectorModifierConstructorDescriptionUnusedSelectorException(String message, Map<org.instancio.internal.ApiMethodSelector, List<TargetSelector>> unusedSelectorMap)