Uses of Interface
org.netbeans.validation.api.Validator
Packages that use Validator
Package
Description
-
Uses of Validator in org.netbeans.validation.api
Classes in org.netbeans.validation.api that implement ValidatorModifier and TypeClassDescriptionclassConvenience base class for validators.Methods in org.netbeans.validation.api that return ValidatorModifier and TypeMethodDescriptionstatic <T> Validator<T> Returns a validator which wraps the passed validator, but treats null values as legal.final <T,R> Validator <T> Will do the following: Check iftis equal to or assignable to this Validator's model type.static <T,R> Validator <T> Get a validator for a validator of a possibly unknown type.static <T> Validator<T> ValidatorUtils.limitSeverity(Severity maximum, Validator<T> validator) Wraps a validator in a validator which imposes a limit on the severity of the validator in use.static <T> Validator<T> ValidatorUtils.limitSeverity(Severity maximum, Validator<T>... validators) Wrapper one or more validators in a validator which imposes a limit on the severity of the validators in use.static <T> Validator<T> Merge together a chain of validators (all working which work against the same type), using logicalAND.static <T> Validator<T> Merge together two validators (both of which work against the same type), using logicalAND.Methods in org.netbeans.validation.api with parameters of type ValidatorModifier and TypeMethodDescriptionstatic <T> Validator<T> Returns a validator which wraps the passed validator, but treats null values as legal.final <T,R> Validator <T> Will do the following: Check iftis equal to or assignable to this Validator's model type.static <T,R> Validator <T> Get a validator for a validator of a possibly unknown type.static <T> Validator<T> ValidatorUtils.limitSeverity(Severity maximum, Validator<T> validator) Wraps a validator in a validator which imposes a limit on the severity of the validator in use.static <T> Validator<T> ValidatorUtils.limitSeverity(Severity maximum, Validator<T>... validators) Wrapper one or more validators in a validator which imposes a limit on the severity of the validators in use.static <T> Validator<T> Merge together a chain of validators (all working which work against the same type), using logicalAND.static <T> Validator<T> Merge together two validators (both of which work against the same type), using logicalAND. -
Uses of Validator in org.netbeans.validation.api.builtin.indexvalidation
Classes in org.netbeans.validation.api.builtin.indexvalidation that implement ValidatorModifier and TypeClassDescriptionenumAn enumeration of validator factories for commonly needed forms of selection validaton. -
Uses of Validator in org.netbeans.validation.api.builtin.stringvalidation
Classes in org.netbeans.validation.api.builtin.stringvalidation that implement ValidatorModifier and TypeClassDescriptionclassenumAn enumeration of validator factories for commonly needed forms of validation such as non-empty strings, valid file names and URLs and so forth.Fields in org.netbeans.validation.api.builtin.stringvalidation with type parameters of type ValidatorModifier and TypeFieldDescriptionValidatorTypes.HOST_NAMEValidatorTypes.HOST_NAME_OR_IP_ADDRESSValidatorTypes.IP_ADDRESSValidatorTypes.MAY_NOT_START_WITH_DIGITValidatorTypes.NO_WHITESPACEValidatorTypes.URLMethods in org.netbeans.validation.api.builtin.stringvalidation that return ValidatorModifier and TypeMethodDescriptionStringValidators.between(int min, int max) StringValidators.disallowChars(char[] chars) Get a validator which fails if any of the characters in the passed char array are contained in the evaluated textStringValidators.encodableInCharset(String charsetName) Get a validator which determines if the passed string can be encoded in the specified encoding.Get a validator that uses a specificFormat(e.g.StringValidators.greaterThan(int amount) Validate that a string evaluates to a number greater than an amountStringValidators.lessThan(int amount) Validate that a string evaluates to a number less than an amountStringValidators.maxLength(int length) Validator that enforces maximum input lengthStringValidators.mayNotEndWith(char ch) Create a validator which does not allow you to terminate a string with a particular characterStringValidators.minLength(int length) Validator that enforces minimum input lengthStringValidators.numberRange(Number min, Number max) Get a validator that guarantees that a number is within a certain range (inclusive)Get a validator which fails if the text to validate does not match a passed regular expression.StringValidators.splitString(String regexp, Validator<String> validator) Returns a validator which first splits the string to be evaluated according to the passed regexp, then passes each component of the split string to the passed validator.StringValidators.splitString(String regexp, Validator<String>... validators) Returns a validator which first splits the string to be evaluated according to the passed regexp, then passes each component of the split string to the passed validator.StringValidators.trim()Returns a Validatorthat will first call trim()on theStringto be validated, and then passes the resulting (trimmed)Stringto this instance ofStringValidators.StringValidators.trimString(Validator<String> validator) Creates aValidator<String>that will first calltrim()on theStringto be validated, and then passes the resulting (trimmed)Stringto the passedValidator<String>.StringValidators.trimString(Validator<String>... validators) Creates aValidator<String>that will first calltrim()on theStringto be validated, and then passes the resulting (trimmed)Stringto the passedValidator<String>(or chain thereof).StringValidators.validNumber(Locale l) Create a number validator that uses a specific locale.Methods in org.netbeans.validation.api.builtin.stringvalidation with parameters of type ValidatorModifier and TypeMethodDescriptionStringValidators.splitString(String regexp, Validator<String> validator) Returns a validator which first splits the string to be evaluated according to the passed regexp, then passes each component of the split string to the passed validator.StringValidators.splitString(String regexp, Validator<String>... validators) Returns a validator which first splits the string to be evaluated according to the passed regexp, then passes each component of the split string to the passed validator.StringValidators.trimString(Validator<String> validator) Creates aValidator<String>that will first calltrim()on theStringto be validated, and then passes the resulting (trimmed)Stringto the passedValidator<String>.StringValidators.trimString(Validator<String>... validators) Creates aValidator<String>that will first calltrim()on theStringto be validated, and then passes the resulting (trimmed)Stringto the passedValidator<String>(or chain thereof). -
Uses of Validator in org.netbeans.validation.api.conversion
Methods in org.netbeans.validation.api.conversion that return ValidatorModifier and TypeMethodDescriptionWill merge the chain of passed validators to one, and then convert it to the requested type.Methods in org.netbeans.validation.api.conversion with parameters of type ValidatorModifier and TypeMethodDescriptionWill merge the chain of passed validators to one, and then convert it to the requested type. -
Uses of Validator in org.netbeans.validation.api.conversion.swing
Methods in org.netbeans.validation.api.conversion.swing that return ValidatorModifier and TypeMethodDescriptionMethods in org.netbeans.validation.api.conversion.swing with parameters of type ValidatorModifier and TypeMethodDescription -
Uses of Validator in org.netbeans.validation.api.ui
Methods in org.netbeans.validation.api.ui with parameters of type ValidatorModifier and TypeMethodDescriptionfinal <ComponentType, ValueType>
voidfinal <ComponentType, ValueType>
voidprotected abstract ValidationListener<CompType> ValidationListenerFactory.createListener(CompType component, ValidationStrategy strategy, ValidationUI validationUI, Validator<ModelType> validator) static <CType,MType>
ValidationListener<CType> ValidationListenerFactory.createValidationListener(CType component, ValidationStrategy strategy, ValidationUI validationUI, Validator<MType> validator) Create a ValidationListener for a specific type of component, which accepts Validators of a given type. -
Uses of Validator in org.netbeans.validation.api.ui.swing
Methods in org.netbeans.validation.api.ui.swing with parameters of type ValidatorModifier and TypeMethodDescriptionfinal voidSwingValidationGroup.add(AbstractButton[] buttons, Validator<Integer[]> validator) Add a validator of button models - typically to see if any are selected.final voidSwingValidationGroup.add(AbstractButton[] buttons, Validator<Integer[]>... validators) Add a validator of button models - typically to see if any are selected.final voidAdd a combo box to be validated using the passed validator.final voidAdd a combo box to be validated using the passed validatorsfinal voidAdd a JList to be validated using the passed validator.final voidAdd a JList to be validated using the passed validatorsfinal voidSwingValidationGroup.add(JTextComponent comp, Validator<String> validator) Add a text component to be validated using the passed validator.final voidSwingValidationGroup.add(JTextComponent comp, Validator<String>... validators) Add a text component to be validated using the passed validators.Constructors in org.netbeans.validation.api.ui.swing with parameters of type ValidatorModifierConstructorDescriptionAbstractValidationListener(Class<CompType> type, CompType comp, ValidationUI ui, Validator<T> validator) Create a new AbstractValidationListener for the single component passed here as an argument.