Skip to content

Commit

Permalink
Javadoc: Use semantic tag <strong> instead of style tag <b>
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 15, 2024
1 parent d73b8bb commit a85f2b6
Show file tree
Hide file tree
Showing 41 changed files with 90 additions and 90 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* <a href="http://www.isbn.org/standards/home/isbn/international/html/usm4.htm">
* algorithm</a>
*
* <b>NOTE:</b> This has been replaced by the new
* <strong>NOTE:</strong> This has been replaced by the new
* {@link org.apache.commons.validator.routines.ISBNValidator}.
*
* @since 1.2.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public synchronized void setJavascript(final String javaScript) {
* </p>
*
* <pre>
* <b>Examples</b>
* <strong>Examples</strong>
* If in the validator.xml :
* #1:
* &lt;validator name="tire"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Locale;

/**
* <p><b>BigDecimal Validation</b> and Conversion routines ({@code java.math.BigDecimal}).</p>
* <p><strong>BigDecimal Validation</strong> and Conversion routines ({@code java.math.BigDecimal}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Locale;

/**
* <p><b>BigInteger Validation</b> and Conversion routines ({@code java.math.BigInteger}).</p>
* <p><strong>BigInteger Validation</strong> and Conversion routines ({@code java.math.BigInteger}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Byte Validation</b> and Conversion routines ({@code java.lang.Byte}).</p>
* <p><strong>Byte Validation</strong> and Conversion routines ({@code java.lang.Byte}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.TimeZone;

/**
* <p><b>Calendar Validation</b> and Conversion routines ({@code java.util.Calendar}).</p>
* <p><strong>Calendar Validation</strong> and Conversion routines ({@code java.util.Calendar}).</p>
*
* <p>This validator provides a number of methods for validating/converting
* a {@link String} date value to a {@code java.util.Calendar} using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.apache.commons.validator.routines.checkdigit.CheckDigit;

/**
* Generic <b>Code Validation</b> providing format, minimum/maximum
* Generic <strong>Code Validation</strong> providing format, minimum/maximum
* length and {@link CheckDigit} validations.
* <p>
* Performs the following validations on a code:
Expand All @@ -36,7 +36,7 @@
* <li>The {@link #validate(String)} method returns the trimmed, parsed input (or null if validation failed)</li>
* </ul>
* <p>
* <b>Note</b>
* <strong>Note</strong>
* The {@link #isValid(String)} method will return true if the input passes validation.
* Since this includes trimming as well as potentially dropping parts of the input,
* it is possible for a String to pass validation
Expand Down Expand Up @@ -171,7 +171,7 @@ public CodeValidator(final String regex, final int minLength, final int maxLengt
/**
* Gets the check digit validation routine.
* <p>
* <b>N.B.</b> Optional, if not set no Check Digit
* <strong>N.B.</strong> Optional, if not set no Check Digit
* validation will be performed on the code.
*
* @return The check digit validation routine
Expand All @@ -183,7 +183,7 @@ public CheckDigit getCheckDigit() {
/**
* Gets the maximum length of the code.
* <p>
* <b>N.B.</b> Optional, if less than zero the
* <strong>N.B.</strong> Optional, if less than zero the
* maximum length will not be checked.
*
* @return The maximum length of the code or
Expand All @@ -196,7 +196,7 @@ public int getMaxLength() {
/**
* Gets the minimum length of the code.
* <p>
* <b>N.B.</b> Optional, if less than zero the
* <strong>N.B.</strong> Optional, if less than zero the
* minimum length will not be checked.
*
* @return The minimum length of the code or
Expand All @@ -209,7 +209,7 @@ public int getMinLength() {
/**
* Gets the <em>regular expression</em> validator.
* <p>
* <b>N.B.</b> Optional, if not set no regular
* <strong>N.B.</strong> Optional, if not set no regular
* expression validation will be performed on the code.
*
* @return The regular expression validator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.text.Format;

/**
* <p><b>Currency Validation</b> and Conversion routines ({@code java.math.BigDecimal}).</p>
* <p><strong>Currency Validation</strong> and Conversion routines ({@code java.math.BigDecimal}).</p>
*
* <p>This is one implementation of a currency validator that has the following features:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.TimeZone;

/**
* <p><b>Date Validation</b> and Conversion routines ({@code java.util.Date}).</p>
* <p><strong>Date Validation</strong> and Conversion routines ({@code java.util.Date}).</p>
*
* <p>This validator provides a number of methods for validating/converting
* a {@link String} date value to a {@code java.util.Date} using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.Locale;

/**
* <p><b>Domain name</b> validation routines.</p>
* <p><strong>Domain name</strong> validation routines.</p>
*
* <p>
* This validator provides methods for validating Internet domain names
Expand Down Expand Up @@ -54,7 +54,7 @@
* </ul>
*
* <p>
* (<b>NOTE</b>: This class does not provide IP address lookup for domain names or
* (<strong>NOTE</strong>: This class does not provide IP address lookup for domain names or
* methods to ensure that a given domain name matches a specific IP; see
* {@link java.net.InetAddress} for that functionality.)
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Double Validation</b> and Conversion routines ({@code java.lang.Double}).</p>
* <p><strong>Double Validation</strong> and Conversion routines ({@code java.lang.Double}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Float Validation</b> and Conversion routines ({@code java.lang.Float}).</p>
* <p><strong>Float Validation</strong> and Conversion routines ({@code java.lang.Float}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import org.apache.commons.validator.routines.checkdigit.ISBN10CheckDigit;

/**
* <b>ISBN-10</b> and <b>ISBN-13</b> Code Validation.
* <strong>ISBN-10</strong> and <strong>ISBN-13</strong> Code Validation.
* <p>
* This validator validates the code is either a valid ISBN-10
* (using a {@link CodeValidator} with the {@link ISBN10CheckDigit})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.commons.validator.routines.checkdigit.ISINCheckDigit;

/**
* <b>ISIN</b> (International Securities Identifying Number) validation.
* <strong>ISIN</strong> (International Securities Identifying Number) validation.
*
* <p>
* ISIN Numbers are 12 character alphanumeric codes used to identify Securities.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.commons.validator.GenericValidator;

/**
* <p><b>InetAddress</b> validation and conversion routines ({@code java.net.InetAddress}).</p>
* <p><strong>InetAddress</strong> validation and conversion routines ({@code java.net.InetAddress}).</p>
*
* <p>This class provides methods to validate a candidate IP address.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Integer Validation</b> and Conversion routines ({@code java.lang.Integer}).</p>
* <p><strong>Integer Validation</strong> and Conversion routines ({@code java.lang.Integer}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Long Validation</b> and Conversion routines ({@code java.lang.Long}).</p>
* <p><strong>Long Validation</strong> and Conversion routines ({@code java.lang.Long}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.text.Format;

/**
* <p><b>Percentage Validation</b> and Conversion routines ({@code java.math.BigDecimal}).</p>
* <p><strong>Percentage Validation</strong> and Conversion routines ({@code java.math.BigDecimal}).</p>
*
* <p>This is one implementation of a percent validator that has the following features:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.regex.Pattern;

/**
* <b>Regular Expression</b> validation (using the JRE's regular expression support).
* <strong>Regular Expression</strong> validation (using the JRE's regular expression support).
* <p>
* Constructs the validator either for a single regular expression or a set (array) of regular expressions. By default validation is <em>case sensitive</em> but
* constructors are provided to allow <em>case in-sensitive</em> validation. For example to create a validator which does <em>case in-sensitive</em> validation
Expand Down Expand Up @@ -57,7 +57,7 @@
* </li>
* </ul>
*
* <b>Note that patterns are matched against the entire input.</b>
* <strong>Note that patterns are matched against the entire input.</strong>
*
* <p>
* Cached instances pre-compile and re-use {@link Pattern}(s) - which according to the {@link Pattern} API are safe to use in a multi-threaded environment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.util.Locale;

/**
* <p><b>Short Validation</b> and Conversion routines ({@code java.lang.Short}).</p>
* <p><strong>Short Validation</strong> and Conversion routines ({@code java.lang.Short}).</p>
*
* <p>This validator provides a number of methods for
* validating/converting a {@link String} value to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.TimeZone;

/**
* <p><b>Time Validation</b> and Conversion routines ({@code java.util.Calendar}).</p>
* <p><strong>Time Validation</strong> and Conversion routines ({@code java.util.Calendar}).</p>
*
* <p>This validator provides a number of methods for validating/converting
* a {@link String} time value to a {@code java.util.Calendar} using
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.commons.validator.GenericValidator;

/**
* <p><b>URL Validation</b> routines.</p>
* <p><strong>URL Validation</strong> routines.</p>
* Behavior of validation is modified by passing in options:
* <ul>
* <li>ALLOW_2_SLASHES - [FALSE] Allows double '/' characters in the path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.apache.commons.validator.routines.checkdigit;

/**
* Modulus 10 <b>ABA Number</b> (or <b>Routing Transit Number</b> (RTN)) Check Digit
* Modulus 10 <strong>ABA Number</strong> (or <strong>Routing Transit Number</strong> (RTN)) Check Digit
* calculation/validation.
*
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.validator.routines.CodeValidator;

/**
* Modulus 10 <b>CAS Registry Number</b> (or <b>Chemical Abstracts Service</b> (CAS RN)) Check Digit
* Modulus 10 <strong>CAS Registry Number</strong> (or <strong>Chemical Abstracts Service</strong> (CAS RN)) Check Digit
* calculation/validation.
*
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.apache.commons.validator.routines.checkdigit;

/**
* Modulus 10 <b>CUSIP</b> (North American Securities) Check Digit calculation/validation.
* Modulus 10 <strong>CUSIP</strong> (North American Securities) Check Digit calculation/validation.
*
* <p>
* CUSIP Numbers are 9 character alphanumeric codes used
Expand Down Expand Up @@ -80,9 +80,9 @@ protected int toInt(final char character, final int leftPos, final int rightPos)
* <p>Calculates the <em>weighted</em> value of a character in the
* code at a specified position.</p>
*
* <p>For CUSIP (from right to left) <b>odd</b> digits are weighted
* with a factor of <b>one</b> and <b>even</b> digits with a factor
* of <b>two</b>. Weighted values &gt; 9, have 9 subtracted</p>
* <p>For CUSIP (from right to left) <strong>odd</strong> digits are weighted
* with a factor of <strong>one</strong> and <strong>even</strong> digits with a factor
* of <strong>two</strong>. Weighted values &gt; 9, have 9 subtracted</p>
*
* @param charValue The numeric value of the character.
* @param leftPos The position of the character in the code, counting from left to right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.apache.commons.validator.routines.CodeValidator;

/**
* <b>Check Digit</b> calculation and validation.
* <strong>Check Digit</strong> calculation and validation.
* <p>
* The logic for validating check digits has previously been
* embedded within the logic for specific code validation, which
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.apache.commons.validator.routines.checkdigit;

/**
* Modulus 10 <b>EAN-13</b> / <b>UPC</b> / <b>ISBN-13</b> Check Digit
* Modulus 10 <strong>EAN-13</strong> / <strong>UPC</strong> / <strong>ISBN-13</strong> Check Digit
* calculation/validation.
* <p>
* Check digit calculation is based on <em>modulus 10</em> with digits in
Expand Down Expand Up @@ -59,9 +59,9 @@ public EAN13CheckDigit() {
* <p>Calculates the <em>weighted</em> value of a character in the
* code at a specified position.</p>
*
* <p>For EAN-13 (from right to left) <b>odd</b> digits are weighted
* with a factor of <b>one</b> and <b>even</b> digits with a factor
* of <b>three</b>.</p>
* <p>For EAN-13 (from right to left) <strong>odd</strong> digits are weighted
* with a factor of <strong>one</strong> and <strong>even</strong> digits with a factor
* of <strong>three</strong>.</p>
*
* @param charValue The numeric value of the character.
* @param leftPos The position of the character in the code, counting from left to right
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.validator.routines.CodeValidator;

/**
* Modulus 11 <b>EC number</b> Check Digit calculation/validation.
* Modulus 11 <strong>EC number</strong> Check Digit calculation/validation.
*
* <p>
* The European Community number (EC number) is a unique seven-digit identifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import java.io.Serializable;

/**
* <b>IBAN</b> (International Bank Account Number) Check Digit calculation/validation.
* <strong>IBAN</strong> (International Bank Account Number) Check Digit calculation/validation.
* <p>
* This routine is based on the ISO 7064 Mod 97,10 check digit calculation routine.
* <p>
Expand Down Expand Up @@ -63,7 +63,7 @@ public IBANCheckDigit() {
/**
* Calculate the <em>Check Digit</em> for an IBAN code.
* <p>
* <b>Note:</b> The check digit is the third and fourth
* <strong>Note:</strong> The check digit is the third and fourth
* characters and is set to the value "{@code 00}".
*
* @param code The code to calculate the Check Digit for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.apache.commons.validator.routines.checkdigit;

/**
* Modulus 11 <b>ISBN-10</b> Check Digit calculation/validation.
* Modulus 11 <strong>ISBN-10</strong> Check Digit calculation/validation.
* <p>
* ISBN-10 Numbers are a numeric code except for the last (check) digit
* which can have a value of "X".
Expand All @@ -27,7 +27,7 @@
* 1, the second 2 and so on. If the check digit is calculated as "10" it is converted
* to "X".
* <p>
* <b>N.B.</b> From 1st January 2007 the book industry will start to use a new 13 digit
* <strong>N.B.</strong> From 1st January 2007 the book industry will start to use a new 13 digit
* ISBN number (rather than this 10 digit ISBN number) which uses the EAN-13 / UPC
* (see {@link EAN13CheckDigit}) standard.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
import org.apache.commons.validator.GenericValidator;

/**
* Combined <b>ISBN-10</b> / <b>ISBN-13</b> Check Digit calculation/validation.
* Combined <strong>ISBN-10</strong> / <strong>ISBN-13</strong> Check Digit calculation/validation.
* <p>
* This implementation validates/calculates ISBN check digits
* based on the length of the code passed to it - delegating
* either to the {@link ISBNCheckDigit#ISBN10_CHECK_DIGIT} or the
* {@link ISBNCheckDigit#ISBN13_CHECK_DIGIT} routines to perform the actual
* validation/calculation.
* <p>
* <b>N.B.</b> From 1st January 2007 the book industry will start to use a new 13 digit
* <strong>N.B.</strong> From 1st January 2007 the book industry will start to use a new 13 digit
* ISBN number (rather than this 10 digit ISBN number) which uses the EAN-13 / UPC
* standard.
*
Expand Down
Loading

0 comments on commit a85f2b6

Please sign in to comment.