Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResult.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResult.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResult.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ValidatorResult xref</title> <link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> </head> @@ -34,7 +34,7 @@ <a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> * This contains the results of a set of validation rules processed</em> <a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> * on a JavaBean.</em> <a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * @version $Revision: 1647900 $ $Date: 2014-12-25 16:03:53 +0100 (Do, 25 Dez 2014) $</em> +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L31" href="#L31">31</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/validator/ValidatorResult.html">ValidatorResult</a> <strong class="jxr_keyword">implements</strong> Serializable { <a class="jxr_linenumber" name="L32" href="#L32">32</a> @@ -210,6 +210,6 @@ <a class="jxr_linenumber" name="L202" href="#L202">202</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file
Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResults.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResults.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/ValidatorResults.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ValidatorResults xref</title> <link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> </head> @@ -35,7 +35,7 @@ <a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> * This contains the results of a set of validation rules processed</em> <a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * on a JavaBean.</em> <a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/validator/ValidatorResults.html">ValidatorResults</a> <strong class="jxr_keyword">implements</strong> Serializable { <a class="jxr_linenumber" name="L33" href="#L33">33</a> @@ -159,6 +159,6 @@ <a class="jxr_linenumber" name="L151" href="#L151">151</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/Var.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/Var.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/Var.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Var xref</title> <link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> </head> @@ -31,7 +31,7 @@ <a class="jxr_linenumber" name="L23" href="#L23">23</a> <em class="jxr_javadoccomment"> * passing in information to a pluggable validator. Instances of this class are</em> <a class="jxr_linenumber" name="L24" href="#L24">24</a> <em class="jxr_javadoccomment"> * configured with a &lt;var&gt; xml element.</em> <a class="jxr_linenumber" name="L25" href="#L25">25</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> * @version $Revision: 1640272 $ $Date: 2014-11-18 03:34:13 +0100 (Di, 18 Nov 2014) $</em> +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/validator/Var.html">Var</a> <strong class="jxr_keyword">implements</strong> Cloneable, Serializable { <a class="jxr_linenumber" name="L29" href="#L29">29</a> @@ -224,6 +224,6 @@ <a class="jxr_linenumber" name="L216" href="#L216">216</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-frame.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-frame.html Tue Jan 13 20:07:34 2015 @@ -2,8 +2,8 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en"> <head> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> - <title>Apache Commons Validator 1.4.1-SNAPSHOT Reference Package org.apache.commons.validator</title> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons Validator 1.4.1 Reference Package org.apache.commons.validator</title> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /> </head> <body> Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-summary.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/package-summary.html Tue Jan 13 20:07:34 2015 @@ -2,8 +2,8 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en"> <head> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> - <title>Apache Commons Validator 1.4.1-SNAPSHOT Reference Package org.apache.commons.validator</title> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons Validator 1.4.1 Reference Package org.apache.commons.validator</title> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /> </head> <body> @@ -188,7 +188,7 @@ </div> <hr /> <div id="footer"> - Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. </div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractCalendarValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractCalendarValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractCalendarValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>AbstractCalendarValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -38,7 +38,7 @@ <a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * <p>This is a <i>base</i> class for building Date / Time</em> <a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * Validators using format parsing.</p></em> <a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L34" href="#L34">34</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L35" href="#L35">35</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractCalendarValidator.html">AbstractCalendarValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractFormatValidator.html">AbstractFormatValidator</a> { @@ -430,6 +430,6 @@ <a class="jxr_linenumber" name="L422" href="#L422">422</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractFormatValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractFormatValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractFormatValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>AbstractFormatValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -35,7 +35,7 @@ <a class="jxr_linenumber" name="L27" href="#L27">27</a> <em class="jxr_javadoccomment"> * <p>This is a <i>base</i> class for building Date and Number</em> <a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * Validators using format parsing.</p></em> <a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractFormatValidator.html">AbstractFormatValidator</a> <strong class="jxr_keyword">implements</strong> Serializable { @@ -229,6 +229,6 @@ <a class="jxr_linenumber" name="L221" href="#L221">221</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractNumberValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractNumberValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/AbstractNumberValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>AbstractNumberValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -36,7 +36,7 @@ <a class="jxr_linenumber" name="L28" href="#L28">28</a> <em class="jxr_javadoccomment"> * <p>This is a <i>base</i> class for building Number</em> <a class="jxr_linenumber" name="L29" href="#L29">29</a> <em class="jxr_javadoccomment"> * Validators using format parsing.</p></em> <a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L31" href="#L31">31</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L32" href="#L32">32</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L33" href="#L33">33</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractNumberValidator.html">AbstractNumberValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractFormatValidator.html">AbstractFormatValidator</a> { @@ -131,156 +131,154 @@ <a class="jxr_linenumber" name="L123" href="#L123">123</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> minValue(Number value, Number min) { <a class="jxr_linenumber" name="L124" href="#L124">124</a> <strong class="jxr_keyword">if</strong> (isAllowFractions()) { <a class="jxr_linenumber" name="L125" href="#L125">125</a> <strong class="jxr_keyword">return</strong> (value.doubleValue() >= min.doubleValue()); -<a class="jxr_linenumber" name="L126" href="#L126">126</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L127" href="#L127">127</a> <strong class="jxr_keyword">return</strong> (value.longValue() >= min.longValue()); -<a class="jxr_linenumber" name="L128" href="#L128">128</a> } -<a class="jxr_linenumber" name="L129" href="#L129">129</a> } -<a class="jxr_linenumber" name="L130" href="#L130">130</a> -<a class="jxr_linenumber" name="L131" href="#L131">131</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L132" href="#L132">132</a> <em class="jxr_javadoccomment"> * Check if the value is less than or equal to a maximum.</em> -<a class="jxr_linenumber" name="L133" href="#L133">133</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L134" href="#L134">134</a> <em class="jxr_javadoccomment"> * @param value The value validation is being performed on.</em> -<a class="jxr_linenumber" name="L135" href="#L135">135</a> <em class="jxr_javadoccomment"> * @param max The maximum value.</em> -<a class="jxr_linenumber" name="L136" href="#L136">136</a> <em class="jxr_javadoccomment"> * @return <code>true</code> if the value is less than</em> -<a class="jxr_linenumber" name="L137" href="#L137">137</a> <em class="jxr_javadoccomment"> * or equal to the maximum.</em> -<a class="jxr_linenumber" name="L138" href="#L138">138</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L139" href="#L139">139</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> maxValue(Number value, Number max) { -<a class="jxr_linenumber" name="L140" href="#L140">140</a> <strong class="jxr_keyword">if</strong> (isAllowFractions()) { -<a class="jxr_linenumber" name="L141" href="#L141">141</a> <strong class="jxr_keyword">return</strong> (value.doubleValue() <= max.doubleValue()); -<a class="jxr_linenumber" name="L142" href="#L142">142</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L143" href="#L143">143</a> <strong class="jxr_keyword">return</strong> (value.longValue() <= max.longValue()); -<a class="jxr_linenumber" name="L144" href="#L144">144</a> } -<a class="jxr_linenumber" name="L145" href="#L145">145</a> } -<a class="jxr_linenumber" name="L146" href="#L146">146</a> -<a class="jxr_linenumber" name="L147" href="#L147">147</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L148" href="#L148">148</a> <em class="jxr_javadoccomment"> * <p>Parse the value using the specified pattern.</p></em> -<a class="jxr_linenumber" name="L149" href="#L149">149</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L150" href="#L150">150</a> <em class="jxr_javadoccomment"> * @param value The value validation is being performed on.</em> -<a class="jxr_linenumber" name="L151" href="#L151">151</a> <em class="jxr_javadoccomment"> * @param pattern The pattern used to validate the value against, or the</em> -<a class="jxr_linenumber" name="L152" href="#L152">152</a> <em class="jxr_javadoccomment"> * default for the <code>Locale</code> if <code>null</code>.</em> -<a class="jxr_linenumber" name="L153" href="#L153">153</a> <em class="jxr_javadoccomment"> * @param locale The locale to use for the date format, system default if null.</em> -<a class="jxr_linenumber" name="L154" href="#L154">154</a> <em class="jxr_javadoccomment"> * @return The parsed value if valid or <code>null</code> if invalid.</em> -<a class="jxr_linenumber" name="L155" href="#L155">155</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L156" href="#L156">156</a> <strong class="jxr_keyword">protected</strong> Object parse(String value, String pattern, Locale locale) { -<a class="jxr_linenumber" name="L157" href="#L157">157</a> -<a class="jxr_linenumber" name="L158" href="#L158">158</a> value = (value == <strong class="jxr_keyword">null</strong> ? <strong class="jxr_keyword">null</strong> : value.trim()); -<a class="jxr_linenumber" name="L159" href="#L159">159</a> <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong> || value.length() == 0) { -<a class="jxr_linenumber" name="L160" href="#L160">160</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>; -<a class="jxr_linenumber" name="L161" href="#L161">161</a> } -<a class="jxr_linenumber" name="L162" href="#L162">162</a> Format formatter = getFormat(pattern, locale); -<a class="jxr_linenumber" name="L163" href="#L163">163</a> <strong class="jxr_keyword">return</strong> parse(value, formatter); +<a class="jxr_linenumber" name="L126" href="#L126">126</a> } +<a class="jxr_linenumber" name="L127" href="#L127">127</a> <strong class="jxr_keyword">return</strong> (value.longValue() >= min.longValue()); +<a class="jxr_linenumber" name="L128" href="#L128">128</a> } +<a class="jxr_linenumber" name="L129" href="#L129">129</a> +<a class="jxr_linenumber" name="L130" href="#L130">130</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L131" href="#L131">131</a> <em class="jxr_javadoccomment"> * Check if the value is less than or equal to a maximum.</em> +<a class="jxr_linenumber" name="L132" href="#L132">132</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L133" href="#L133">133</a> <em class="jxr_javadoccomment"> * @param value The value validation is being performed on.</em> +<a class="jxr_linenumber" name="L134" href="#L134">134</a> <em class="jxr_javadoccomment"> * @param max The maximum value.</em> +<a class="jxr_linenumber" name="L135" href="#L135">135</a> <em class="jxr_javadoccomment"> * @return <code>true</code> if the value is less than</em> +<a class="jxr_linenumber" name="L136" href="#L136">136</a> <em class="jxr_javadoccomment"> * or equal to the maximum.</em> +<a class="jxr_linenumber" name="L137" href="#L137">137</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L138" href="#L138">138</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> maxValue(Number value, Number max) { +<a class="jxr_linenumber" name="L139" href="#L139">139</a> <strong class="jxr_keyword">if</strong> (isAllowFractions()) { +<a class="jxr_linenumber" name="L140" href="#L140">140</a> <strong class="jxr_keyword">return</strong> (value.doubleValue() <= max.doubleValue()); +<a class="jxr_linenumber" name="L141" href="#L141">141</a> } +<a class="jxr_linenumber" name="L142" href="#L142">142</a> <strong class="jxr_keyword">return</strong> (value.longValue() <= max.longValue()); +<a class="jxr_linenumber" name="L143" href="#L143">143</a> } +<a class="jxr_linenumber" name="L144" href="#L144">144</a> +<a class="jxr_linenumber" name="L145" href="#L145">145</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L146" href="#L146">146</a> <em class="jxr_javadoccomment"> * <p>Parse the value using the specified pattern.</p></em> +<a class="jxr_linenumber" name="L147" href="#L147">147</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L148" href="#L148">148</a> <em class="jxr_javadoccomment"> * @param value The value validation is being performed on.</em> +<a class="jxr_linenumber" name="L149" href="#L149">149</a> <em class="jxr_javadoccomment"> * @param pattern The pattern used to validate the value against, or the</em> +<a class="jxr_linenumber" name="L150" href="#L150">150</a> <em class="jxr_javadoccomment"> * default for the <code>Locale</code> if <code>null</code>.</em> +<a class="jxr_linenumber" name="L151" href="#L151">151</a> <em class="jxr_javadoccomment"> * @param locale The locale to use for the date format, system default if null.</em> +<a class="jxr_linenumber" name="L152" href="#L152">152</a> <em class="jxr_javadoccomment"> * @return The parsed value if valid or <code>null</code> if invalid.</em> +<a class="jxr_linenumber" name="L153" href="#L153">153</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L154" href="#L154">154</a> <strong class="jxr_keyword">protected</strong> Object parse(String value, String pattern, Locale locale) { +<a class="jxr_linenumber" name="L155" href="#L155">155</a> +<a class="jxr_linenumber" name="L156" href="#L156">156</a> value = (value == <strong class="jxr_keyword">null</strong> ? <strong class="jxr_keyword">null</strong> : value.trim()); +<a class="jxr_linenumber" name="L157" href="#L157">157</a> <strong class="jxr_keyword">if</strong> (value == <strong class="jxr_keyword">null</strong> || value.length() == 0) { +<a class="jxr_linenumber" name="L158" href="#L158">158</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>; +<a class="jxr_linenumber" name="L159" href="#L159">159</a> } +<a class="jxr_linenumber" name="L160" href="#L160">160</a> Format formatter = getFormat(pattern, locale); +<a class="jxr_linenumber" name="L161" href="#L161">161</a> <strong class="jxr_keyword">return</strong> parse(value, formatter); +<a class="jxr_linenumber" name="L162" href="#L162">162</a> +<a class="jxr_linenumber" name="L163" href="#L163">163</a> } <a class="jxr_linenumber" name="L164" href="#L164">164</a> -<a class="jxr_linenumber" name="L165" href="#L165">165</a> } -<a class="jxr_linenumber" name="L166" href="#L166">166</a> -<a class="jxr_linenumber" name="L167" href="#L167">167</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L168" href="#L168">168</a> <em class="jxr_javadoccomment"> * <p>Process the parsed value, performing any further validation</em> -<a class="jxr_linenumber" name="L169" href="#L169">169</a> <em class="jxr_javadoccomment"> * and type conversion required.</p></em> -<a class="jxr_linenumber" name="L170" href="#L170">170</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L171" href="#L171">171</a> <em class="jxr_javadoccomment"> * @param value The parsed object created.</em> -<a class="jxr_linenumber" name="L172" href="#L172">172</a> <em class="jxr_javadoccomment"> * @param formatter The Format used to parse the value with.</em> -<a class="jxr_linenumber" name="L173" href="#L173">173</a> <em class="jxr_javadoccomment"> * @return The parsed value converted to the appropriate type</em> -<a class="jxr_linenumber" name="L174" href="#L174">174</a> <em class="jxr_javadoccomment"> * if valid or <code>null</code> if invalid.</em> -<a class="jxr_linenumber" name="L175" href="#L175">175</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L176" href="#L176">176</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">abstract</strong> Object processParsedValue(Object value, Format formatter); -<a class="jxr_linenumber" name="L177" href="#L177">177</a> -<a class="jxr_linenumber" name="L178" href="#L178">178</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L179" href="#L179">179</a> <em class="jxr_javadoccomment"> * <p>Returns a <code>NumberFormat</code> for the specified <i>pattern</i></em> -<a class="jxr_linenumber" name="L180" href="#L180">180</a> <em class="jxr_javadoccomment"> * and/or <code>Locale</code>.</p></em> -<a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L182" href="#L182">182</a> <em class="jxr_javadoccomment"> * @param pattern The pattern used to validate the value against or</em> -<a class="jxr_linenumber" name="L183" href="#L183">183</a> <em class="jxr_javadoccomment"> * <code>null</code> to use the default for the <code>Locale</code>.</em> -<a class="jxr_linenumber" name="L184" href="#L184">184</a> <em class="jxr_javadoccomment"> * @param locale The locale to use for the currency format, system default if null.</em> -<a class="jxr_linenumber" name="L185" href="#L185">185</a> <em class="jxr_javadoccomment"> * @return The <code>NumberFormat</code> to created.</em> -<a class="jxr_linenumber" name="L186" href="#L186">186</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L187" href="#L187">187</a> <strong class="jxr_keyword">protected</strong> Format getFormat(String pattern, Locale locale) { -<a class="jxr_linenumber" name="L188" href="#L188">188</a> -<a class="jxr_linenumber" name="L189" href="#L189">189</a> NumberFormat formatter = <strong class="jxr_keyword">null</strong>; -<a class="jxr_linenumber" name="L190" href="#L190">190</a> <strong class="jxr_keyword">boolean</strong> usePattern = (pattern != <strong class="jxr_keyword">null</strong> && pattern.length() > 0); -<a class="jxr_linenumber" name="L191" href="#L191">191</a> <strong class="jxr_keyword">if</strong> (!usePattern) { -<a class="jxr_linenumber" name="L192" href="#L192">192</a> formatter = (NumberFormat)getFormat(locale); -<a class="jxr_linenumber" name="L193" href="#L193">193</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L194" href="#L194">194</a> formatter = <strong class="jxr_keyword">new</strong> DecimalFormat(pattern); -<a class="jxr_linenumber" name="L195" href="#L195">195</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L196" href="#L196">196</a> DecimalFormatSymbols symbols = <strong class="jxr_keyword">new</strong> DecimalFormatSymbols(locale); -<a class="jxr_linenumber" name="L197" href="#L197">197</a> formatter = <strong class="jxr_keyword">new</strong> DecimalFormat(pattern, symbols); -<a class="jxr_linenumber" name="L198" href="#L198">198</a> } -<a class="jxr_linenumber" name="L199" href="#L199">199</a> -<a class="jxr_linenumber" name="L200" href="#L200">200</a> <strong class="jxr_keyword">if</strong> (determineScale(formatter) == 0) { -<a class="jxr_linenumber" name="L201" href="#L201">201</a> formatter.setParseIntegerOnly(<strong class="jxr_keyword">true</strong>); -<a class="jxr_linenumber" name="L202" href="#L202">202</a> } -<a class="jxr_linenumber" name="L203" href="#L203">203</a> <strong class="jxr_keyword">return</strong> formatter; -<a class="jxr_linenumber" name="L204" href="#L204">204</a> } -<a class="jxr_linenumber" name="L205" href="#L205">205</a> -<a class="jxr_linenumber" name="L206" href="#L206">206</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L207" href="#L207">207</a> <em class="jxr_javadoccomment"> * <p>Returns the <i>multiplier</i> of the <code>NumberFormat</code>.</p></em> -<a class="jxr_linenumber" name="L208" href="#L208">208</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L209" href="#L209">209</a> <em class="jxr_javadoccomment"> * @param format The <code>NumberFormat</code> to determine the</em> -<a class="jxr_linenumber" name="L210" href="#L210">210</a> <em class="jxr_javadoccomment"> * multiplier of.</em> -<a class="jxr_linenumber" name="L211" href="#L211">211</a> <em class="jxr_javadoccomment"> * @return The multiplying factor for the format..</em> -<a class="jxr_linenumber" name="L212" href="#L212">212</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L213" href="#L213">213</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> determineScale(NumberFormat format) { -<a class="jxr_linenumber" name="L214" href="#L214">214</a> <strong class="jxr_keyword">if</strong> (!isStrict()) { -<a class="jxr_linenumber" name="L215" href="#L215">215</a> <strong class="jxr_keyword">return</strong> -1; -<a class="jxr_linenumber" name="L216" href="#L216">216</a> } -<a class="jxr_linenumber" name="L217" href="#L217">217</a> <strong class="jxr_keyword">if</strong> (!isAllowFractions() || format.isParseIntegerOnly()) { -<a class="jxr_linenumber" name="L218" href="#L218">218</a> <strong class="jxr_keyword">return</strong> 0; -<a class="jxr_linenumber" name="L219" href="#L219">219</a> } -<a class="jxr_linenumber" name="L220" href="#L220">220</a> <strong class="jxr_keyword">int</strong> minimumFraction = format.getMinimumFractionDigits(); -<a class="jxr_linenumber" name="L221" href="#L221">221</a> <strong class="jxr_keyword">int</strong> maximumFraction = format.getMaximumFractionDigits(); -<a class="jxr_linenumber" name="L222" href="#L222">222</a> <strong class="jxr_keyword">if</strong> (minimumFraction != maximumFraction) { -<a class="jxr_linenumber" name="L223" href="#L223">223</a> <strong class="jxr_keyword">return</strong> -1; -<a class="jxr_linenumber" name="L224" href="#L224">224</a> } -<a class="jxr_linenumber" name="L225" href="#L225">225</a> <strong class="jxr_keyword">int</strong> scale = minimumFraction; -<a class="jxr_linenumber" name="L226" href="#L226">226</a> <strong class="jxr_keyword">if</strong> (format instanceof DecimalFormat) { -<a class="jxr_linenumber" name="L227" href="#L227">227</a> <strong class="jxr_keyword">int</strong> multiplier = ((DecimalFormat)format).getMultiplier(); -<a class="jxr_linenumber" name="L228" href="#L228">228</a> <strong class="jxr_keyword">if</strong> (multiplier == 100) { -<a class="jxr_linenumber" name="L229" href="#L229">229</a> scale += 2; -<a class="jxr_linenumber" name="L230" href="#L230">230</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (multiplier == 1000) { -<a class="jxr_linenumber" name="L231" href="#L231">231</a> scale += 3; -<a class="jxr_linenumber" name="L232" href="#L232">232</a> } -<a class="jxr_linenumber" name="L233" href="#L233">233</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (formatType == PERCENT_FORMAT) { -<a class="jxr_linenumber" name="L234" href="#L234">234</a> scale += 2; -<a class="jxr_linenumber" name="L235" href="#L235">235</a> } -<a class="jxr_linenumber" name="L236" href="#L236">236</a> <strong class="jxr_keyword">return</strong> scale; -<a class="jxr_linenumber" name="L237" href="#L237">237</a> } -<a class="jxr_linenumber" name="L238" href="#L238">238</a> -<a class="jxr_linenumber" name="L239" href="#L239">239</a> <em class="jxr_javadoccomment">/**</em> -<a class="jxr_linenumber" name="L240" href="#L240">240</a> <em class="jxr_javadoccomment"> * <p>Returns a <code>NumberFormat</code> for the specified Locale.</p></em> -<a class="jxr_linenumber" name="L241" href="#L241">241</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L242" href="#L242">242</a> <em class="jxr_javadoccomment"> * @param locale The locale a <code>NumberFormat</code> is required for,</em> -<a class="jxr_linenumber" name="L243" href="#L243">243</a> <em class="jxr_javadoccomment"> * system default if null.</em> -<a class="jxr_linenumber" name="L244" href="#L244">244</a> <em class="jxr_javadoccomment"> * @return The <code>NumberFormat</code> to created.</em> -<a class="jxr_linenumber" name="L245" href="#L245">245</a> <em class="jxr_javadoccomment"> */</em> -<a class="jxr_linenumber" name="L246" href="#L246">246</a> <strong class="jxr_keyword">protected</strong> Format getFormat(Locale locale) { -<a class="jxr_linenumber" name="L247" href="#L247">247</a> NumberFormat formatter = <strong class="jxr_keyword">null</strong>; -<a class="jxr_linenumber" name="L248" href="#L248">248</a> <strong class="jxr_keyword">switch</strong> (formatType) { -<a class="jxr_linenumber" name="L249" href="#L249">249</a> <strong class="jxr_keyword">case</strong> CURRENCY_FORMAT: -<a class="jxr_linenumber" name="L250" href="#L250">250</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L251" href="#L251">251</a> formatter = NumberFormat.getCurrencyInstance(); -<a class="jxr_linenumber" name="L252" href="#L252">252</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L253" href="#L253">253</a> formatter = NumberFormat.getCurrencyInstance(locale); -<a class="jxr_linenumber" name="L254" href="#L254">254</a> } -<a class="jxr_linenumber" name="L255" href="#L255">255</a> <strong class="jxr_keyword">break</strong>; -<a class="jxr_linenumber" name="L256" href="#L256">256</a> <strong class="jxr_keyword">case</strong> PERCENT_FORMAT: -<a class="jxr_linenumber" name="L257" href="#L257">257</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L258" href="#L258">258</a> formatter = NumberFormat.getPercentInstance(); -<a class="jxr_linenumber" name="L259" href="#L259">259</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L260" href="#L260">260</a> formatter = NumberFormat.getPercentInstance(locale); -<a class="jxr_linenumber" name="L261" href="#L261">261</a> } -<a class="jxr_linenumber" name="L262" href="#L262">262</a> <strong class="jxr_keyword">break</strong>; -<a class="jxr_linenumber" name="L263" href="#L263">263</a> <strong class="jxr_keyword">default</strong>: -<a class="jxr_linenumber" name="L264" href="#L264">264</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { -<a class="jxr_linenumber" name="L265" href="#L265">265</a> formatter = NumberFormat.getInstance(); -<a class="jxr_linenumber" name="L266" href="#L266">266</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L267" href="#L267">267</a> formatter = NumberFormat.getInstance(locale); -<a class="jxr_linenumber" name="L268" href="#L268">268</a> } -<a class="jxr_linenumber" name="L269" href="#L269">269</a> <strong class="jxr_keyword">break</strong>; -<a class="jxr_linenumber" name="L270" href="#L270">270</a> } -<a class="jxr_linenumber" name="L271" href="#L271">271</a> <strong class="jxr_keyword">return</strong> formatter; -<a class="jxr_linenumber" name="L272" href="#L272">272</a> } -<a class="jxr_linenumber" name="L273" href="#L273">273</a> } +<a class="jxr_linenumber" name="L165" href="#L165">165</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L166" href="#L166">166</a> <em class="jxr_javadoccomment"> * <p>Process the parsed value, performing any further validation</em> +<a class="jxr_linenumber" name="L167" href="#L167">167</a> <em class="jxr_javadoccomment"> * and type conversion required.</p></em> +<a class="jxr_linenumber" name="L168" href="#L168">168</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L169" href="#L169">169</a> <em class="jxr_javadoccomment"> * @param value The parsed object created.</em> +<a class="jxr_linenumber" name="L170" href="#L170">170</a> <em class="jxr_javadoccomment"> * @param formatter The Format used to parse the value with.</em> +<a class="jxr_linenumber" name="L171" href="#L171">171</a> <em class="jxr_javadoccomment"> * @return The parsed value converted to the appropriate type</em> +<a class="jxr_linenumber" name="L172" href="#L172">172</a> <em class="jxr_javadoccomment"> * if valid or <code>null</code> if invalid.</em> +<a class="jxr_linenumber" name="L173" href="#L173">173</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L174" href="#L174">174</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">abstract</strong> Object processParsedValue(Object value, Format formatter); +<a class="jxr_linenumber" name="L175" href="#L175">175</a> +<a class="jxr_linenumber" name="L176" href="#L176">176</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L177" href="#L177">177</a> <em class="jxr_javadoccomment"> * <p>Returns a <code>NumberFormat</code> for the specified <i>pattern</i></em> +<a class="jxr_linenumber" name="L178" href="#L178">178</a> <em class="jxr_javadoccomment"> * and/or <code>Locale</code>.</p></em> +<a class="jxr_linenumber" name="L179" href="#L179">179</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L180" href="#L180">180</a> <em class="jxr_javadoccomment"> * @param pattern The pattern used to validate the value against or</em> +<a class="jxr_linenumber" name="L181" href="#L181">181</a> <em class="jxr_javadoccomment"> * <code>null</code> to use the default for the <code>Locale</code>.</em> +<a class="jxr_linenumber" name="L182" href="#L182">182</a> <em class="jxr_javadoccomment"> * @param locale The locale to use for the currency format, system default if null.</em> +<a class="jxr_linenumber" name="L183" href="#L183">183</a> <em class="jxr_javadoccomment"> * @return The <code>NumberFormat</code> to created.</em> +<a class="jxr_linenumber" name="L184" href="#L184">184</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L185" href="#L185">185</a> <strong class="jxr_keyword">protected</strong> Format getFormat(String pattern, Locale locale) { +<a class="jxr_linenumber" name="L186" href="#L186">186</a> +<a class="jxr_linenumber" name="L187" href="#L187">187</a> NumberFormat formatter = <strong class="jxr_keyword">null</strong>; +<a class="jxr_linenumber" name="L188" href="#L188">188</a> <strong class="jxr_keyword">boolean</strong> usePattern = (pattern != <strong class="jxr_keyword">null</strong> && pattern.length() > 0); +<a class="jxr_linenumber" name="L189" href="#L189">189</a> <strong class="jxr_keyword">if</strong> (!usePattern) { +<a class="jxr_linenumber" name="L190" href="#L190">190</a> formatter = (NumberFormat)getFormat(locale); +<a class="jxr_linenumber" name="L191" href="#L191">191</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L192" href="#L192">192</a> formatter = <strong class="jxr_keyword">new</strong> DecimalFormat(pattern); +<a class="jxr_linenumber" name="L193" href="#L193">193</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L194" href="#L194">194</a> DecimalFormatSymbols symbols = <strong class="jxr_keyword">new</strong> DecimalFormatSymbols(locale); +<a class="jxr_linenumber" name="L195" href="#L195">195</a> formatter = <strong class="jxr_keyword">new</strong> DecimalFormat(pattern, symbols); +<a class="jxr_linenumber" name="L196" href="#L196">196</a> } +<a class="jxr_linenumber" name="L197" href="#L197">197</a> +<a class="jxr_linenumber" name="L198" href="#L198">198</a> <strong class="jxr_keyword">if</strong> (determineScale(formatter) == 0) { +<a class="jxr_linenumber" name="L199" href="#L199">199</a> formatter.setParseIntegerOnly(<strong class="jxr_keyword">true</strong>); +<a class="jxr_linenumber" name="L200" href="#L200">200</a> } +<a class="jxr_linenumber" name="L201" href="#L201">201</a> <strong class="jxr_keyword">return</strong> formatter; +<a class="jxr_linenumber" name="L202" href="#L202">202</a> } +<a class="jxr_linenumber" name="L203" href="#L203">203</a> +<a class="jxr_linenumber" name="L204" href="#L204">204</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L205" href="#L205">205</a> <em class="jxr_javadoccomment"> * <p>Returns the <i>multiplier</i> of the <code>NumberFormat</code>.</p></em> +<a class="jxr_linenumber" name="L206" href="#L206">206</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L207" href="#L207">207</a> <em class="jxr_javadoccomment"> * @param format The <code>NumberFormat</code> to determine the</em> +<a class="jxr_linenumber" name="L208" href="#L208">208</a> <em class="jxr_javadoccomment"> * multiplier of.</em> +<a class="jxr_linenumber" name="L209" href="#L209">209</a> <em class="jxr_javadoccomment"> * @return The multiplying factor for the format..</em> +<a class="jxr_linenumber" name="L210" href="#L210">210</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L211" href="#L211">211</a> <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> determineScale(NumberFormat format) { +<a class="jxr_linenumber" name="L212" href="#L212">212</a> <strong class="jxr_keyword">if</strong> (!isStrict()) { +<a class="jxr_linenumber" name="L213" href="#L213">213</a> <strong class="jxr_keyword">return</strong> -1; +<a class="jxr_linenumber" name="L214" href="#L214">214</a> } +<a class="jxr_linenumber" name="L215" href="#L215">215</a> <strong class="jxr_keyword">if</strong> (!isAllowFractions() || format.isParseIntegerOnly()) { +<a class="jxr_linenumber" name="L216" href="#L216">216</a> <strong class="jxr_keyword">return</strong> 0; +<a class="jxr_linenumber" name="L217" href="#L217">217</a> } +<a class="jxr_linenumber" name="L218" href="#L218">218</a> <strong class="jxr_keyword">int</strong> minimumFraction = format.getMinimumFractionDigits(); +<a class="jxr_linenumber" name="L219" href="#L219">219</a> <strong class="jxr_keyword">int</strong> maximumFraction = format.getMaximumFractionDigits(); +<a class="jxr_linenumber" name="L220" href="#L220">220</a> <strong class="jxr_keyword">if</strong> (minimumFraction != maximumFraction) { +<a class="jxr_linenumber" name="L221" href="#L221">221</a> <strong class="jxr_keyword">return</strong> -1; +<a class="jxr_linenumber" name="L222" href="#L222">222</a> } +<a class="jxr_linenumber" name="L223" href="#L223">223</a> <strong class="jxr_keyword">int</strong> scale = minimumFraction; +<a class="jxr_linenumber" name="L224" href="#L224">224</a> <strong class="jxr_keyword">if</strong> (format instanceof DecimalFormat) { +<a class="jxr_linenumber" name="L225" href="#L225">225</a> <strong class="jxr_keyword">int</strong> multiplier = ((DecimalFormat)format).getMultiplier(); +<a class="jxr_linenumber" name="L226" href="#L226">226</a> <strong class="jxr_keyword">if</strong> (multiplier == 100) { +<a class="jxr_linenumber" name="L227" href="#L227">227</a> scale += 2; +<a class="jxr_linenumber" name="L228" href="#L228">228</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (multiplier == 1000) { +<a class="jxr_linenumber" name="L229" href="#L229">229</a> scale += 3; +<a class="jxr_linenumber" name="L230" href="#L230">230</a> } +<a class="jxr_linenumber" name="L231" href="#L231">231</a> } <strong class="jxr_keyword">else</strong> <strong class="jxr_keyword">if</strong> (formatType == PERCENT_FORMAT) { +<a class="jxr_linenumber" name="L232" href="#L232">232</a> scale += 2; +<a class="jxr_linenumber" name="L233" href="#L233">233</a> } +<a class="jxr_linenumber" name="L234" href="#L234">234</a> <strong class="jxr_keyword">return</strong> scale; +<a class="jxr_linenumber" name="L235" href="#L235">235</a> } +<a class="jxr_linenumber" name="L236" href="#L236">236</a> +<a class="jxr_linenumber" name="L237" href="#L237">237</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L238" href="#L238">238</a> <em class="jxr_javadoccomment"> * <p>Returns a <code>NumberFormat</code> for the specified Locale.</p></em> +<a class="jxr_linenumber" name="L239" href="#L239">239</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L240" href="#L240">240</a> <em class="jxr_javadoccomment"> * @param locale The locale a <code>NumberFormat</code> is required for,</em> +<a class="jxr_linenumber" name="L241" href="#L241">241</a> <em class="jxr_javadoccomment"> * system default if null.</em> +<a class="jxr_linenumber" name="L242" href="#L242">242</a> <em class="jxr_javadoccomment"> * @return The <code>NumberFormat</code> to created.</em> +<a class="jxr_linenumber" name="L243" href="#L243">243</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L244" href="#L244">244</a> <strong class="jxr_keyword">protected</strong> Format getFormat(Locale locale) { +<a class="jxr_linenumber" name="L245" href="#L245">245</a> NumberFormat formatter = <strong class="jxr_keyword">null</strong>; +<a class="jxr_linenumber" name="L246" href="#L246">246</a> <strong class="jxr_keyword">switch</strong> (formatType) { +<a class="jxr_linenumber" name="L247" href="#L247">247</a> <strong class="jxr_keyword">case</strong> CURRENCY_FORMAT: +<a class="jxr_linenumber" name="L248" href="#L248">248</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L249" href="#L249">249</a> formatter = NumberFormat.getCurrencyInstance(); +<a class="jxr_linenumber" name="L250" href="#L250">250</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L251" href="#L251">251</a> formatter = NumberFormat.getCurrencyInstance(locale); +<a class="jxr_linenumber" name="L252" href="#L252">252</a> } +<a class="jxr_linenumber" name="L253" href="#L253">253</a> <strong class="jxr_keyword">break</strong>; +<a class="jxr_linenumber" name="L254" href="#L254">254</a> <strong class="jxr_keyword">case</strong> PERCENT_FORMAT: +<a class="jxr_linenumber" name="L255" href="#L255">255</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L256" href="#L256">256</a> formatter = NumberFormat.getPercentInstance(); +<a class="jxr_linenumber" name="L257" href="#L257">257</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L258" href="#L258">258</a> formatter = NumberFormat.getPercentInstance(locale); +<a class="jxr_linenumber" name="L259" href="#L259">259</a> } +<a class="jxr_linenumber" name="L260" href="#L260">260</a> <strong class="jxr_keyword">break</strong>; +<a class="jxr_linenumber" name="L261" href="#L261">261</a> <strong class="jxr_keyword">default</strong>: +<a class="jxr_linenumber" name="L262" href="#L262">262</a> <strong class="jxr_keyword">if</strong> (locale == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L263" href="#L263">263</a> formatter = NumberFormat.getInstance(); +<a class="jxr_linenumber" name="L264" href="#L264">264</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L265" href="#L265">265</a> formatter = NumberFormat.getInstance(locale); +<a class="jxr_linenumber" name="L266" href="#L266">266</a> } +<a class="jxr_linenumber" name="L267" href="#L267">267</a> <strong class="jxr_keyword">break</strong>; +<a class="jxr_linenumber" name="L268" href="#L268">268</a> } +<a class="jxr_linenumber" name="L269" href="#L269">269</a> <strong class="jxr_keyword">return</strong> formatter; +<a class="jxr_linenumber" name="L270" href="#L270">270</a> } +<a class="jxr_linenumber" name="L271" href="#L271">271</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigDecimalValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigDecimalValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigDecimalValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>BigDecimalValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -49,7 +49,7 @@ <a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> *</em> <a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * <p>Fraction/decimal values are automatically trimmed to the appropriate length.</p></em> <a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> * <p>Once a value has been sucessfully converted the following</em> +<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> * <p>Once a value has been successfully converted the following</em> <a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment"> * methods can be used to perform minimum, maximum and range checks:</p></em> <a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment"> * <ul></em> <a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment"> * <li><code>minValue()</code> checks whether the value is greater</em> @@ -71,7 +71,7 @@ <a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * <li>using a specified pattern with a specified <code>Locale</code></li></em> <a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> * </ul></em> <a class="jxr_linenumber" name="L65" href="#L65">65</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/BigDecimalValidator.html">BigDecimalValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractNumberValidator.html">AbstractNumberValidator</a> { @@ -247,6 +247,6 @@ <a class="jxr_linenumber" name="L239" href="#L239">239</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigIntegerValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigIntegerValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/BigIntegerValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>BigIntegerValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -46,7 +46,7 @@ <a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment"> * one of the <code>validate()</code> methods to validate and receive a</em> <a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * <i>converted</i> <code>BigInteger</code> value.</p></em> <a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * <p>Once a value has been sucessfully converted the following</em> +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * <p>Once a value has been successfully converted the following</em> <a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * methods can be used to perform minimum, maximum and range checks:</p></em> <a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * <ul></em> <a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> * <li><code>minValue()</code> checks whether the value is greater</em> @@ -68,7 +68,7 @@ <a class="jxr_linenumber" name="L60" href="#L60">60</a> <em class="jxr_javadoccomment"> * <li>using a specified pattern with a specified <code>Locale</code></li></em> <a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment"> * </ul></em> <a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L65" href="#L65">65</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L66" href="#L66">66</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/BigIntegerValidator.html">BigIntegerValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractNumberValidator.html">AbstractNumberValidator</a> { @@ -218,6 +218,6 @@ <a class="jxr_linenumber" name="L210" href="#L210">210</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/ByteValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/ByteValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/ByteValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>ByteValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -45,7 +45,7 @@ <a class="jxr_linenumber" name="L37" href="#L37">37</a> <em class="jxr_javadoccomment"> * one of the <code>validate()</code> methods to validate and receive a</em> <a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment"> * <i>converted</i> <code>Byte</code> value.</p></em> <a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> * <p>Once a value has been sucessfully converted the following</em> +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> * <p>Once a value has been successfully converted the following</em> <a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * methods can be used to perform minimum, maximum and range checks:</p></em> <a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * <ul></em> <a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * <li><code>minValue()</code> checks whether the value is greater</em> @@ -67,7 +67,7 @@ <a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> * <li>using a specified pattern with a specified <code>Locale</code></li></em> <a class="jxr_linenumber" name="L60" href="#L60">60</a> <em class="jxr_javadoccomment"> * </ul></em> <a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/ByteValidator.html">ByteValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractNumberValidator.html">AbstractNumberValidator</a> { @@ -256,14 +256,13 @@ <a class="jxr_linenumber" name="L248" href="#L248">248</a> <strong class="jxr_keyword">if</strong> (longValue < Byte.MIN_VALUE || <a class="jxr_linenumber" name="L249" href="#L249">249</a> longValue > Byte.MAX_VALUE) { <a class="jxr_linenumber" name="L250" href="#L250">250</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">null</strong>; -<a class="jxr_linenumber" name="L251" href="#L251">251</a> } <strong class="jxr_keyword">else</strong> { -<a class="jxr_linenumber" name="L252" href="#L252">252</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> Byte((byte)longValue); -<a class="jxr_linenumber" name="L253" href="#L253">253</a> } -<a class="jxr_linenumber" name="L254" href="#L254">254</a> } -<a class="jxr_linenumber" name="L255" href="#L255">255</a> -<a class="jxr_linenumber" name="L256" href="#L256">256</a> } +<a class="jxr_linenumber" name="L251" href="#L251">251</a> } +<a class="jxr_linenumber" name="L252" href="#L252">252</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> Byte((byte)longValue); +<a class="jxr_linenumber" name="L253" href="#L253">253</a> } +<a class="jxr_linenumber" name="L254" href="#L254">254</a> +<a class="jxr_linenumber" name="L255" href="#L255">255</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CalendarValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CalendarValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CalendarValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>CalendarValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -60,23 +60,23 @@ <a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment"> * can be used to adjust the <code>TimeZone</code> of the <code>Calendar</code></em> <a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment"> * object afterwards.</p></em> <a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * <p>Once a value has been sucessfully converted the following</em> +<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * <p>Once a value has been successfully converted the following</em> <a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> * methods can be used to perform various date comparison checks:</p></em> <a class="jxr_linenumber" name="L57" href="#L57">57</a> <em class="jxr_javadoccomment"> * <ul></em> <a class="jxr_linenumber" name="L58" href="#L58">58</a> <em class="jxr_javadoccomment"> * <li><code>compareDates()</code> compares the day, month and</em> -<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> * year of two calendars, returing 0, -1 or +1 indicating</em> +<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> * year of two calendars, returning 0, -1 or +1 indicating</em> <a class="jxr_linenumber" name="L60" href="#L60">60</a> <em class="jxr_javadoccomment"> * whether the first date is equal, before or after the second.</li></em> <a class="jxr_linenumber" name="L61" href="#L61">61</a> <em class="jxr_javadoccomment"> * <li><code>compareWeeks()</code> compares the week and</em> -<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * year of two calendars, returing 0, -1 or +1 indicating</em> +<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * year of two calendars, returning 0, -1 or +1 indicating</em> <a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> * whether the first week is equal, before or after the second.</li></em> <a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_javadoccomment"> * <li><code>compareMonths()</code> compares the month and</em> -<a class="jxr_linenumber" name="L65" href="#L65">65</a> <em class="jxr_javadoccomment"> * year of two calendars, returing 0, -1 or +1 indicating</em> +<a class="jxr_linenumber" name="L65" href="#L65">65</a> <em class="jxr_javadoccomment"> * year of two calendars, returning 0, -1 or +1 indicating</em> <a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_javadoccomment"> * whether the first month is equal, before or after the second.</li></em> <a class="jxr_linenumber" name="L67" href="#L67">67</a> <em class="jxr_javadoccomment"> * <li><code>compareQuarters()</code> compares the quarter and</em> -<a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_javadoccomment"> * year of two calendars, returing 0, -1 or +1 indicating</em> +<a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_javadoccomment"> * year of two calendars, returning 0, -1 or +1 indicating</em> <a class="jxr_linenumber" name="L69" href="#L69">69</a> <em class="jxr_javadoccomment"> * whether the first quarter is equal, before or after the second.</li></em> <a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment"> * <li><code>compareYears()</code> compares the</em> -<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * year of two calendars, returing 0, -1 or +1 indicating</em> +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * year of two calendars, returning 0, -1 or +1 indicating</em> <a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> * whether the first year is equal, before or after the second.</li></em> <a class="jxr_linenumber" name="L73" href="#L73">73</a> <em class="jxr_javadoccomment"> * </ul></em> <a class="jxr_linenumber" name="L74" href="#L74">74</a> <em class="jxr_javadoccomment"> *</em> @@ -90,7 +90,7 @@ <a class="jxr_linenumber" name="L82" href="#L82">82</a> <em class="jxr_javadoccomment"> * <li>using the format for the <i>default</i> <code>Locale</code></li></em> <a class="jxr_linenumber" name="L83" href="#L83">83</a> <em class="jxr_javadoccomment"> * </ul></em> <a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L86" href="#L86">86</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L87" href="#L87">87</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L88" href="#L88">88</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/CalendarValidator.html">CalendarValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/AbstractCalendarValidator.html">AbstractCalendarValidator</a> { @@ -344,6 +344,6 @@ <a class="jxr_linenumber" name="L336" href="#L336">336</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CodeValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CodeValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CodeValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>CodeValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -53,7 +53,7 @@ <a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment"> * validation by specifying them as a <i>non-capturing</i> group in the regular</em> <a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment"> * expression (i.e. use the <code>(?: )</code> notation).</em> <a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_javadoccomment"> * @since Validator 1.4</em> <a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L51" href="#L51">51</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/CodeValidator.html">CodeValidator</a> <strong class="jxr_keyword">implements</strong> Serializable { @@ -258,6 +258,6 @@ <a class="jxr_linenumber" name="L250" href="#L250">250</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CreditCardValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CreditCardValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CreditCardValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>CreditCardValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -53,11 +53,11 @@ <a class="jxr_linenumber" name="L45" href="#L45">45</a> <em class="jxr_javadoccomment"> * <p></em> <a class="jxr_linenumber" name="L46" href="#L46">46</a> <em class="jxr_javadoccomment"> * For a similar implementation in Perl, reference Sean M. Burke's</em> <a class="jxr_linenumber" name="L47" href="#L47">47</a> <em class="jxr_javadoccomment"> * <a href="<a href="http://www.speech.cs.cmu.edu/~sburke/pub/luhn_lib.html" target="alexandria_uri">http://www.speech.cs.cmu.edu/~sburke/pub/luhn_lib.html</a>">script</a>.</em> -<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> * More information is also available</em> -<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_javadoccomment"> * <a href="<a href="http://www.merriampark.com/anatomycc.htm" target="alexandria_uri">http://www.merriampark.com/anatomycc.htm</a>">here</a>.</em> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <em class="jxr_javadoccomment"> * More information can be found in Michael Gilleland's essay </em> +<a class="jxr_linenumber" name="L49" href="#L49">49</a> <em class="jxr_javadoccomment"> * <a href="<a href="http://web.archive.org/web/20120614072656/http://www.merriampark.com/anatomycc.htm" target="alexandria_uri">http://web.archive.org/web/20120614072656/http://www.merriampark.com/anatomycc.htm</a>">Anatomy of Credit Card Numbers</a>.</em> <a class="jxr_linenumber" name="L50" href="#L50">50</a> <em class="jxr_javadoccomment"> * </p></em> <a class="jxr_linenumber" name="L51" href="#L51">51</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment"> * @version $Revision: 1647900 $ $Date: 2014-12-25 16:03:53 +0100 (Do, 25 Dez 2014) $</em> +<a class="jxr_linenumber" name="L52" href="#L52">52</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment"> * @since Validator 1.4</em> <a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L55" href="#L55">55</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/CreditCardValidator.html">CreditCardValidator</a> <strong class="jxr_keyword">implements</strong> Serializable { @@ -237,6 +237,6 @@ <a class="jxr_linenumber" name="L229" href="#L229">229</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file Modified: websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CurrencyValidator.html ============================================================================== --- websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CurrencyValidator.html (original) +++ websites/production/commons/content/proper/commons-validator/xref/org/apache/commons/validator/routines/CurrencyValidator.html Tue Jan 13 20:07:34 2015 @@ -1,6 +1,6 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>CurrencyValidator xref</title> <link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> </head> @@ -47,7 +47,7 @@ <a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * you want the currency converted to. One thing to note - only the CurrencyValidator</em> <a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> * implements <i>lenient</i> behaviour regarding the currency symbol.</p></em> <a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> *</em> -<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * @version $Revision: 1227719 $ $Date: 2012-01-05 18:45:51 +0100 (Do, 05 Jan 2012) $</em> +<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> * @version $Revision: 1649191 $</em> <a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * @since Validator 1.3.0</em> <a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> */</em> <a class="jxr_linenumber" name="L45" href="#L45">45</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/validator/routines/CurrencyValidator.html">CurrencyValidator</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/validator/routines/BigDecimalValidator.html">BigDecimalValidator</a> { @@ -125,6 +125,6 @@ <a class="jxr_linenumber" name="L117" href="#L117">117</a> } </pre> <hr/> -<div id="footer">Copyright © 2002–2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +<div id="footer">Copyright © 2002–2015 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> </body> </html> \ No newline at end of file
