MCPcopy Create free account

hub / github.com/apache/commons-validator / functions

Functions1,283 in github.com/apache/commons-validator

↓ 481 callersMethodisValidInet6Address
Validates an IPv6 address. Returns true if valid. @param inet6Address the IPv6 address to validate @return true if the argument contains a valid IPv6
src/main/java/org/apache/commons/validator/routines/InetAddressValidator.java:134
↓ 398 callersMethodisValid
Validates the check digit for the code. @param code The code to validate, the string must include the check digit. @return {@code true} if the check
src/main/java/org/apache/commons/validator/routines/checkdigit/CheckDigit.java:68
↓ 180 callersMethodisValid
Checks if a field has a valid URL address. @param value The value validation is being performed on. A {@code null} value is considered invalid. @ret
src/main/java/org/apache/commons/validator/UrlValidator.java:269
↓ 127 callersMethodisValid
Validates a value against the set of regular expressions. @param value The value to validate. @return {@code true} if the value is valid otherwise {@
src/main/java/org/apache/commons/validator/routines/RegexValidator.java:166
↓ 108 callersMethodisValid
Checks if the field is a valid credit card number. @param card The card number to validate. @return Whether the card number is valid.
src/main/java/org/apache/commons/validator/CreditCardValidator.java:215
↓ 101 callersMethodvalidate
Validate results.
src/test/java/org/apache/commons/validator/ValidatorResultsTest.java:146
↓ 96 callersMethodparse
Parse the value with the specified {@code Format}. <p>This implementation is lenient whether the currency symbol is present or not. The default {@
src/main/java/org/apache/commons/validator/routines/PercentValidator.java:97
↓ 95 callersMethodsetValue
Sets the value.
src/test/java/org/apache/commons/validator/ValueBean.java:36
↓ 73 callersMethodisValid
Validates the code returning either {@code true} or {@code false}. <p> This calls {@link #validate(String)} and returns false if the return value is n
src/main/java/org/apache/commons/validator/routines/CodeValidator.java:219
↓ 73 callersMethodvalidate
Validates the code returning either the valid code or {@code null} if invalid. <p> Note that this method trims the input and if there is a {@link Rege
src/main/java/org/apache/commons/validator/routines/CodeValidator.java:232
↓ 72 callersMethodcontainsAction
Indicate whether a specified validator is in the Result. @param validatorName Name of the validator. @return true if the validator is in the result.
src/main/java/org/apache/commons/validator/ValidatorResult.java:162
↓ 71 callersMethodisValid
Indicate whether a specified validation passed. @param validatorName Name of the validator. @return true if the validation passed.
src/main/java/org/apache/commons/validator/ValidatorResult.java:214
↓ 70 callersMethodformat
Formats an object into a {@link String} using the default Locale. @param value The value validation is being performed on. @return The value formatte
src/main/java/org/apache/commons/validator/routines/AbstractFormatValidator.java:57
↓ 70 callersMethodgetValidatorResult
Gets the {@code ValidatorResult} associated with the key passed in. The key the {@code ValidatorResult} is stored under is the {@code Field}'s getKey
src/main/java/org/apache/commons/validator/ValidatorResults.java:134
↓ 64 callersMethodvalueTest
Utility class to run a test on a value. @param info Value to run test on. @param passed Whether or not the test is expected to pass.
src/test/java/org/apache/commons/validator/EmailTest.java:421
↓ 63 callersMethodgetMessage
Retrieve a message object. @param key Validation key. @return A validation message for a specified validator. @since 1.1.4
src/main/java/org/apache/commons/validator/Field.java:490
↓ 57 callersMethodadd
Add the result of a validator action. @param validatorName Name of the validator. @param result Whether the validation passed or failed.
src/main/java/org/apache/commons/validator/ValidatorResult.java:141
↓ 55 callersMethodsetParameter
Sets a parameter of a pluggable validation method. @param parameterClassName The full class name of the parameter of the validation method that corre
src/main/java/org/apache/commons/validator/Validator.java:407
↓ 53 callersMethodvalidate
Performs validations based on the configured resources. @return The {@link Map} returned uses the property of the {@code Field} for the key and the v
src/main/java/org/apache/commons/validator/Validator.java:432
↓ 49 callersMethodgetArg
Gets the default {@code Arg} object at the given position. @param position Validation message argument's position. @return The default Arg or null if
src/main/java/org/apache/commons/validator/Field.java:322
↓ 49 callersMethodgetKey
Gets the key/value. @return the key value.
src/main/java/org/apache/commons/validator/Arg.java:109
↓ 49 callersMethodisValid
If the ISBN is formatted with space or dash separators its format is validated. Then the digits in the number are weighted, summed, and divided by 11
src/main/java/org/apache/commons/validator/ISBNValidator.java:51
↓ 43 callersMethodtoString
Returns a string representation of the object. @return A string representation of the variable.
src/main/java/org/apache/commons/validator/Var.java:207
↓ 40 callersMethodmatches
Returns true if the card number matches this type of credit card. Note that this method is <strong>not</strong> responsible for analyzing the general
src/main/java/org/apache/commons/validator/CreditCardValidator.java:87
↓ 39 callersMethodisEmpty
Gets {@code true} if there are no messages recorded in this collection, or {@code false} otherwise. @return Whether these results are empty.
src/main/java/org/apache/commons/validator/ValidatorResults.java:144
↓ 38 callersMethodgetInstance
Returns the Singleton instance of this validator. @return A singleton instance of the DateValidator.
src/main/java/org/apache/commons/validator/DateValidator.java:48
↓ 37 callersMethodvalidate
Validates and converts a {@code BigDecimal} using the default {@link Locale}. @param value The value validation is being performed on. @return The pa
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:237
↓ 36 callersMethodcreateCalendar
Create a calendar instance for a specified time zone, date and time. @param zone The time zone @param date The date in yyyyMMdd format @param time th
src/test/java/org/apache/commons/validator/routines/AbstractCalendarValidatorTest.java:51
↓ 34 callersMethodgetProperty
Gets the property name of the field. @return The field's property name.
src/main/java/org/apache/commons/validator/Field.java:542
↓ 33 callersMethodaddArg
Add an {@code Arg} to the replacement argument list. @param arg Validation message's argument. @since 1.1
src/main/java/org/apache/commons/validator/Field.java:164
↓ 32 callersMethodcreateArg
Convenience Method - create argument (no name or position specified)
src/test/java/org/apache/commons/validator/FieldTest.java:36
↓ 32 callersMethodcreateDate
Create a date instance for a specified time zone, date and time. @param zone The time zone @param time the time in HH:mm:ss format @par
src/test/java/org/apache/commons/validator/routines/TimeValidatorTest.java:53
↓ 32 callersMethodvalueTest
Utility class to run a test on a value. @param info Value to run test on. @param passed Whether or not the test is expected to pass.
src/test/java/org/apache/commons/validator/DateTest.java:81
↓ 30 callersMethodgetInstance
Gets the singleton instance of this validator. It will not consider local addresses as valid. @return the singleton instance of this validator.
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:1840
↓ 28 callersMethodgetValueAsString
Convenience method for getting a value from a bean property as a {@link String}. If the property is a {@code String[]} or {@link Collection} and it i
src/main/java/org/apache/commons/validator/util/ValidatorUtils.java:115
↓ 28 callersMethodupdateTLDOverride
Updates one of the TLD override arrays. This must only be done at program startup, before any instances are accessed using getInstance. <p> For exampl
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:2002
↓ 27 callersMethodgetName
Gets the name of the variable. @return The name of the variable.
src/main/java/org/apache/commons/validator/Var.java:132
↓ 26 callersMethodequals
Tests if two Flags objects are in the same state. @param obj object being tested @see Object#equals(Object) @return whether the objects are equal.
src/main/java/org/apache/commons/validator/util/Flags.java:94
↓ 25 callersMethodcompareQuarters
Compare Quarters (quarter and year). @param value The {@code Date} value to check. @param compare The {@code Date} to compare the value to. @param ti
src/main/java/org/apache/commons/validator/routines/DateValidator.java:161
↓ 25 callersMethodisBlankOrNull
Checks if the field isn't null and length of the field is greater than zero not including whitespace. @param value The value validation is being perf
src/main/java/org/apache/commons/validator/GenericValidator.java:66
↓ 24 callersMethodcheckForm
(final Locale locale, final String formKey, final String expectedVarValue)
src/test/java/org/apache/commons/validator/RetrieveFormTest.java:51
↓ 24 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the BigDecimalValidator.
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:87
↓ 24 callersMethodminValue
Tests if the value is greater than or equal to a minimum. <p> For an integer validator the bound is compared exactly rather than narrowed to a {@code
src/main/java/org/apache/commons/validator/routines/AbstractNumberValidator.java:305
↓ 24 callersMethodsetLastName
(final String lastName)
src/test/java/org/apache/commons/validator/NameBean.java:46
↓ 23 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the BigIntegerValidator.
src/main/java/org/apache/commons/validator/routines/BigIntegerValidator.java:77
↓ 23 callersMethodmaxValue
Tests if the value is less than or equal to a maximum. <p> For an integer validator the bound is compared exactly rather than narrowed to a {@code lo
src/main/java/org/apache/commons/validator/routines/AbstractNumberValidator.java:285
↓ 23 callersMethodsetFirstName
(final String firstName)
src/test/java/org/apache/commons/validator/NameBean.java:42
↓ 22 callersMethodvalidate
Validate/convert a {@code Double} using the default {@link Locale}. @param value The value validation is being performed on. @return The parsed {@
src/main/java/org/apache/commons/validator/routines/DoubleValidator.java:246
↓ 21 callersMethodcompare
Compares a calendar value to another, indicating whether it is equal, less than or more than at a specified level. @param value The Calendar value
src/main/java/org/apache/commons/validator/routines/AbstractCalendarValidator.java:120
↓ 21 callersMethodisValidDomainSyntax
(final String domain)
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:2261
↓ 21 callersMethodvalidate
Check the code is either a valid ISBN-10 or ISBN-13 code. <p> If valid, this method returns the ISBN code with formatting characters removed (such as
src/main/java/org/apache/commons/validator/routines/ISBNValidator.java:242
↓ 21 callersMethodvalidate
Validates a value against the set of regular expressions returning a String value of the aggregated groups. @param value The value to validate. @retu
src/main/java/org/apache/commons/validator/routines/RegexValidator.java:227
↓ 20 callersMethodcompareTo
Compares the given {@code BigDecimal} with the given double value. @param bigDecimal The {@code BigDecimal} to compare. @param value The double
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:78
↓ 20 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the CalendarValidator.
src/main/java/org/apache/commons/validator/routines/CalendarValidator.java:118
↓ 20 callersMethodisValidGenericTld
Tests whether the specified {@link String} matches any IANA-defined generic top-level domain. Leading dots are ignored if present. The search is case-
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:2284
↓ 20 callersMethodmatch
Validates a value against the set of regular expressions returning the array of matched groups. @param value The value to validate. @return String ar
src/main/java/org/apache/commons/validator/routines/RegexValidator.java:184
↓ 20 callersMethodvalidate
Validate/convert a {@code Float} using the default {@link Locale}. @param value The value validation is being performed on. @return The parsed {@c
src/main/java/org/apache/commons/validator/routines/FloatValidator.java:225
↓ 18 callersMethodgetLog
Accessor method for Log instance. The Log instance variable is transient and accessing it through this method ensures it is re-initialized when this
src/main/java/org/apache/commons/validator/ValidatorResources.java:512
↓ 18 callersMethodgetVarValue
Retrieve a variable's value. @param mainKey The Variable's key @return the Variable's value
src/main/java/org/apache/commons/validator/Field.java:583
↓ 18 callersMethodisFinite
Tests if the given value is finite. @param value The value to test. @return {@code true} if the value is finite, {@code false} otherwise.
src/main/java/org/apache/commons/validator/routines/AbstractNumberValidator.java:73
↓ 18 callersMethodisInRange
Tests if the value is within a specified range. @param value The {@code Number} value to check. @param min The minimum value of the range. @param m
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:152
↓ 17 callersMethodextractFromEAN13
Extracts an ISSN code from an ISSN-EAN-13 code. <p> This method requires a valid ISSN-EAN-13 code with NO formatting characters. That is a 13 digit EA
src/main/java/org/apache/commons/validator/routines/ISSNValidator.java:149
↓ 17 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the ShortValidator.
src/main/java/org/apache/commons/validator/routines/ShortValidator.java:76
↓ 17 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the LongValidator.
src/main/java/org/apache/commons/validator/routines/LongValidator.java:75
↓ 17 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the IntegerValidator.
src/main/java/org/apache/commons/validator/routines/IntegerValidator.java:76
↓ 17 callersMethodgetInstance
Gets the singleton instance of this validator. @return A singleton instance of the ByteValidator.
src/main/java/org/apache/commons/validator/routines/ByteValidator.java:76
↓ 17 callersMethodgetRegexValidator
Gets the <em>regular expression</em> validator. <p> <strong>N.B.</strong> Optional, if not set no regular expression validation will be performed on t
src/main/java/org/apache/commons/validator/routines/CodeValidator.java:203
↓ 17 callersMethodgetValue
Gets the value of the variable. @return The value of the variable.
src/main/java/org/apache/commons/validator/Var.java:141
↓ 17 callersMethodisValidCountryCodeTld
Tests whether the specified {@link String} matches any IANA-defined country code top-level domain. Leading dots are ignored if present. The search is
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:2254
↓ 17 callersMethodvalidate
(final String value)
src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java:310
↓ 16 callersMethodgetKey
Gets a unique key based on the property and indexedProperty fields. @return a unique key for the field.
src/main/java/org/apache/commons/validator/Field.java:475
↓ 16 callersMethodisValid
Tests whether the specified {@link String} parses as a valid domain name with a recognized top-level domain. The parsing is case-insensitive. @param
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:2228
↓ 15 callersMethodreplace
Replace part of a {@link String} with another value. @param value {@link String} to perform the replacement on. @param key The name of the constant.
src/main/java/org/apache/commons/validator/util/ValidatorUtils.java:149
↓ 14 callersMethodcalculate
Calculates the <em>Check Digit</em> for a code. @param code The code to calculate the Check Digit for. The string must not include the check digit. @
src/main/java/org/apache/commons/validator/routines/checkdigit/CheckDigit.java:60
↓ 14 callersMethodcheckArray
Compare two arrays @param label Label for the test @param expect Expected array @param result Actual array
src/test/java/org/apache/commons/validator/routines/RegexValidatorTest.java:54
↓ 14 callersMethodcompareWeeks
Compare Weeks (week and year). @param value The {@code Date} value to check. @param compare The {@code Date} to compare the value to. @param timeZone
src/main/java/org/apache/commons/validator/routines/DateValidator.java:192
↓ 14 callersMethodgetForm
Retrieve a {@code Form} based on the form name. @param formName The form name @return The form
src/main/java/org/apache/commons/validator/FormSet.java:182
↓ 14 callersMethodhasValidator
Tests if the given code has a validator. @param code the code to check. @return true if there is a validator.
src/main/java/org/apache/commons/validator/routines/IBANValidator.java:349
↓ 14 callersMethodvalidLength
(final int valueLength, final CreditCardRange range)
src/main/java/org/apache/commons/validator/routines/CreditCardValidator.java:372
↓ 13 callersMethodgetArgs
Gets the Args for the given validator name. @param key The validator's args to retrieve. @return An Arg[] sorted by the Args' positions (for example,
src/main/java/org/apache/commons/validator/Field.java:361
↓ 13 callersMethodminValue
Tests if the value is greater than or equal to a minimum. @param value The value validation is being performed on. @param min The minimum value. @r
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:192
↓ 12 callersMethodgetCalendar
Convert a {@code Date} to a {@link Calendar}. @param value The date value to be converted. @return The converted {@link Calendar}.
src/main/java/org/apache/commons/validator/routines/DateValidator.java:220
↓ 12 callersMethodgetFormSets
Returns a Map of String locale keys to Lists of their FormSets. @return Map of Form sets @since 1.2.0
src/main/java/org/apache/commons/validator/ValidatorResources.java:497
↓ 12 callersMethodgetTLDEntries
Gets a copy of a class level internal array. @param table the array type (any of the enum values). @return a copy of the array. @throws IllegalArgume
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:1882
↓ 12 callersMethodloadResources
Load {@code ValidatorResources} from validator-numeric.xml.
src/test/java/org/apache/commons/validator/AbstractCommonTest.java:38
↓ 12 callersMethodmaxLength
Checks if the value's length is less than or equal to the max. @param value The value validation is being performed on. @param max The maximum length
src/main/java/org/apache/commons/validator/GenericValidator.java:296
↓ 12 callersMethodmaxValue
Tests if the value is less than or equal to a maximum. @param value The value validation is being performed on. @param max The maximum value. @retu
src/main/java/org/apache/commons/validator/routines/BigDecimalValidator.java:163
↓ 12 callersMethodminLength
Checks if the value's length is greater than or equal to the min. @param value The value validation is being performed on. @param min The minimum len
src/main/java/org/apache/commons/validator/GenericValidator.java:366
↓ 12 callersMethodminValue
Tests if the value is greater than or equal to a minimum. @param value The value validation is being performed on. @param min The minimum value. @r
src/main/java/org/apache/commons/validator/routines/BigIntegerValidator.java:175
↓ 11 callersMethodconvertToEAN13
Converts an ISSN code to an EAN-13 code. <p> This method requires a valid ISSN code. It may contain a leading 'ISSN ' prefix, as the input is passed t
src/main/java/org/apache/commons/validator/routines/ISSNValidator.java:116
↓ 11 callersMethodcreateTime
Create a calendar instance for a specified time zone, date and time. @param zone The time zone @param time the time in HH:mm:ss format
src/test/java/org/apache/commons/validator/routines/TimeValidatorTest.java:66
↓ 11 callersMethodgetMaxLength
Gets the maximum length of the code. <p> <strong>N.B.</strong> Optional, if less than zero the maximum length will not be checked. </p> @return The m
src/main/java/org/apache/commons/validator/routines/CodeValidator.java:179
↓ 11 callersMethodgetMinLength
Gets the minimum length of the code. <p> <strong>N.B.</strong> Optional, if less than zero the minimum length will not be checked. </p> @return The m
src/main/java/org/apache/commons/validator/routines/CodeValidator.java:191
↓ 11 callersMethodisInRange
Tests if the value is within a specified range. @param value The value validation is being performed on. @param min The minimum value of the range.
src/main/java/org/apache/commons/validator/routines/AbstractNumberValidator.java:255
↓ 11 callersMethodtoString
Provides a String representation of this validator. @return A String representation of this validator.
src/main/java/org/apache/commons/validator/routines/RegexValidator.java:207
↓ 10 callersMethodarrayContains
Tests if a sorted array contains the specified key @param sortedArray the array to search. @param key the key to find. @return {@code true} if the ar
src/main/java/org/apache/commons/validator/routines/DomainValidator.java:1831
↓ 10 callersMethodassertRejectsNonAscii
(final CheckDigit routine, final String validCode)
src/test/java/org/apache/commons/validator/routines/checkdigit/CheckDigitNonAsciiDigitTest.java:30
↓ 10 callersMethodcheckValidatorResult
Check a validator has run for a field and the result.
src/test/java/org/apache/commons/validator/ValidatorResultsTest.java:58
↓ 10 callersMethodclone
Clone this Flags object. @return a copy of this object. @see Object#clone()
src/main/java/org/apache/commons/validator/util/Flags.java:78
↓ 10 callersMethodcompareDates
Compare Dates (day, month and year - not time). @param value The {@link Calendar} value to check. @param compare The {@link Calendar} to compare the
src/main/java/org/apache/commons/validator/routines/DateValidator.java:129
next →1–100 of 1,283, ranked by callers