Java Doc for Validator.java in  » Web-Framework » jWebApp » jwebtk » validator » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » jWebApp » jwebtk.validator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jwebtk.validator.Validator

Validator
public class Validator (Code)




Method Summary
public static  booleanendsWith(String value, String matchString, boolean ignoreCase)
     Validates that the given value ends with the match string.
public static  booleanisByte(String value)
    
public static  booleanisCreditCard(String value)
     Validates a credit card number.
public static  booleanisDate(String value, Locale locale)
     Validates a date value to make sure it has a valid format.
public static  booleanisDate(String value, String datePattern, boolean strict)
     Validates a date value to make sure it has a valid format matching the given date pattern.
public static  booleanisDouble(String value)
     Validates a double value.
public static  booleanisEmail(String value)
     Validates as an email value.
public static  booleanisEmptyOrNull(String value)
     Validates a value to make sure it is not empty or null.
public static  booleanisEqualTo(String value, String value2, boolean ignore)
     Validate that value compares equal to “str”.
public static  booleanisFloat(String value)
     Validates as a float value.
public static  booleanisInRange(byte value, byte min, byte max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInRange(double value, double min, double max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInRange(float value, float min, float max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInRange(int value, int min, int max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInRange(long value, long min, long max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInRange(short value, short min, short max)
     Validates that a value is in a given range, inclusive.
public static  booleanisInt(String value)
     Validates an integer value.
public static  booleanisIsbn(String value)
     Validates an International Standard Book Number.
public static  booleanisLong(String value)
     Validates a long value.
public static  booleanisNotEmptyOrNull(String value)
     Validates a value to make sure it is not empty or null.
public static  booleanisShort(String value)
     Validates a short value.
public static  booleanisSubstring(String value, String compareString, boolean ignoreCase)
     Validates that the given value is a substring of cmp_string.
public static  booleanisUrl(String value)
     Validates that the given value is a properly formatted URL.
public static  booleanmatchRegexp(String value, String regexp)
     Validates that the given value matches the provided regular expression.
public static  booleanmaxLength(String value, int max)
     Validates that value is less than or equal to the maximum length.
public static  booleanmaxValue(double value, double max)
     Validates that value is less than or equal to the maximum.
public static  booleanmaxValue(float value, float max)
     Validates that value is less than or equal to the maximum.
public static  booleanmaxValue(int value, int max)
     Validates that value is less than or equal to the maximum.
public static  booleanmaxValue(long value, long max)
     Validates that value is less than or equal to the maximum.
public static  booleanminLength(String value, int min)
     Validates that value is greater than or equal to the minimum length.
public static  booleanminValue(double value, double min)
     Validates that value is less than or equal to the maximum.
public static  booleanminValue(float value, float min)
     Validates that value is greater than or equal to the minimum.
public static  booleanminValue(int value, int min)
     Validates that value is greater than or equal to the minimum.
public static  booleanminValue(long value, long min)
     Validates that value is greater than or equal to the minimum.
public static  booleanstartsWith(String value, String matchString, boolean ignoreCase)
     Validates that the given value starts with the match string.



Method Detail
endsWith
public static boolean endsWith(String value, String matchString, boolean ignoreCase)(Code)
Validates that the given value ends with the match string.
Parameters:
  value - to validate
Parameters:
  matchString - the string to check true if the value passes validation, false otherwise.



isByte
public static boolean isByte(String value)(Code)
Validates a byte value
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isCreditCard
public static boolean isCreditCard(String value)(Code)
Validates a credit card number. Simply checks if it is properly formatted. Does not contact any other party for card validation.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isDate
public static boolean isDate(String value, Locale locale)(Code)
Validates a date value to make sure it has a valid format.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isDate
public static boolean isDate(String value, String datePattern, boolean strict)(Code)
Validates a date value to make sure it has a valid format matching the given date pattern. Date pattern is defined in java.text.SimpleDateFormat.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isDouble
public static boolean isDouble(String value)(Code)
Validates a double value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isEmail
public static boolean isEmail(String value)(Code)
Validates as an email value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isEmptyOrNull
public static boolean isEmptyOrNull(String value)(Code)
Validates a value to make sure it is not empty or null.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isEqualTo
public static boolean isEqualTo(String value, String value2, boolean ignore)(Code)
Validate that value compares equal to “str”.
Parameters:
  value - to validate
Parameters:
  value2 - string to compare
Parameters:
  ignore - character case true if the value passes validation, false otherwise.



isFloat
public static boolean isFloat(String value)(Code)
Validates as a float value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(byte value, byte min, byte max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(double value, double min, double max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(float value, float min, float max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(int value, int min, int max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(long value, long min, long max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInRange
public static boolean isInRange(short value, short min, short max)(Code)
Validates that a value is in a given range, inclusive.
Parameters:
  value - to validate
Parameters:
  min - value is equal or greater
Parameters:
  max - value is equal or less true if the value passes validation, false otherwise.



isInt
public static boolean isInt(String value)(Code)
Validates an integer value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isIsbn
public static boolean isIsbn(String value)(Code)
Validates an International Standard Book Number.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isLong
public static boolean isLong(String value)(Code)
Validates a long value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isNotEmptyOrNull
public static boolean isNotEmptyOrNull(String value)(Code)
Validates a value to make sure it is not empty or null.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isShort
public static boolean isShort(String value)(Code)
Validates a short value.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



isSubstring
public static boolean isSubstring(String value, String compareString, boolean ignoreCase)(Code)
Validates that the given value is a substring of cmp_string.
Parameters:
  value - to validate
Parameters:
  compareString - the string to check true if the value passes validation, false otherwise.



isUrl
public static boolean isUrl(String value)(Code)
Validates that the given value is a properly formatted URL.
Parameters:
  value - to validate true if the value passes validation, false otherwise.



matchRegexp
public static boolean matchRegexp(String value, String regexp)(Code)
Validates that the given value matches the provided regular expression. this is based on Java regular expression as found in String.matchRegexp().
Parameters:
  value - to validate
Parameters:
  regexp - the regular expression string to check true if the value passes validation, false otherwise.



maxLength
public static boolean maxLength(String value, int max)(Code)
Validates that value is less than or equal to the maximum length.
Parameters:
  value - to validate
Parameters:
  max - the maximum length true if the value passes validation, false otherwise.



maxValue
public static boolean maxValue(double value, double max)(Code)
Validates that value is less than or equal to the maximum.
Parameters:
  value - to validate
Parameters:
  max - the maximum length true if the value passes validation, false otherwise.



maxValue
public static boolean maxValue(float value, float max)(Code)
Validates that value is less than or equal to the maximum.
Parameters:
  value - to validate
Parameters:
  max - the maximum length true if the value passes validation, false otherwise.



maxValue
public static boolean maxValue(int value, int max)(Code)
Validates that value is less than or equal to the maximum.
Parameters:
  value - to validate
Parameters:
  max - the maximum length true if the value passes validation, false otherwise.



maxValue
public static boolean maxValue(long value, long max)(Code)
Validates that value is less than or equal to the maximum.
Parameters:
  value - to validate
Parameters:
  max - the maximum length true if the value passes validation, false otherwise.



minLength
public static boolean minLength(String value, int min)(Code)
Validates that value is greater than or equal to the minimum length.
Parameters:
  value - to validate
Parameters:
  min - the minimum length true if the value passes validation, false otherwise.



minValue
public static boolean minValue(double value, double min)(Code)
Validates that value is less than or equal to the maximum.
Parameters:
  value - to validate
Parameters:
  min - the minimum length true if the value passes validation, false otherwise.



minValue
public static boolean minValue(float value, float min)(Code)
Validates that value is greater than or equal to the minimum.
Parameters:
  value - to validate
Parameters:
  min - the minimum length true if the value passes validation, false otherwise.



minValue
public static boolean minValue(int value, int min)(Code)
Validates that value is greater than or equal to the minimum.
Parameters:
  value - to validate
Parameters:
  min - the minimum length true if the value passes validation, false otherwise.



minValue
public static boolean minValue(long value, long min)(Code)
Validates that value is greater than or equal to the minimum.
Parameters:
  value - to validate
Parameters:
  min - the minimum length true if the value passes validation, false otherwise.



startsWith
public static boolean startsWith(String value, String matchString, boolean ignoreCase)(Code)
Validates that the given value starts with the match string.
Parameters:
  value - to validate
Parameters:
  matchString - the string to check true if the value passes validation, false otherwise.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.