commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/validator/src/share/org/apache/commons/validator EmailValidator.java
Date Sat, 03 May 2003 21:25:02 GMT
dgraham     2003/05/03 14:25:02

  Modified:    validator/src/share/org/apache/commons/validator
                        EmailValidator.java
  Log:
  Made helper methods protected for subclass use.
  
  Revision  Changes    Path
  1.7       +8 -8      jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java
  
  Index: EmailValidator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/validator/src/share/org/apache/commons/validator/EmailValidator.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EmailValidator.java	3 May 2003 21:21:04 -0000	1.6
  +++ EmailValidator.java	3 May 2003 21:25:02 -0000	1.7
  @@ -156,7 +156,7 @@
       /**
        * Returns true if the domain component of an email address is valid.
        */
  -	private boolean isValidDomain(String domain) {
  +	protected boolean isValidDomain(String domain) {
           boolean symbolic = false;
   		Perl5Util ipAddressMatcher = new Perl5Util();
   		
  @@ -184,7 +184,7 @@
       /**
        * Returns true if the user component of an email address is valid.
        */
  -	private boolean isValidUser(String user) {
  +	protected boolean isValidUser(String user) {
   		Perl5Util userMatcher = new Perl5Util();
   		return userMatcher.match(USER_PATTERN, user);
   	}
  @@ -192,7 +192,7 @@
       /**
        * Validates an IP address. Returns true if valid.
        */
  -	private boolean isValidIpAddress(Perl5Util ipAddressMatcher) {
  +	protected boolean isValidIpAddress(Perl5Util ipAddressMatcher) {
   		for (int i = 1; i <= 4; i++) {
   			String ipSegment = ipAddressMatcher.group(i);
   			if (ipSegment == null || ipSegment.length() <= 0) {
  @@ -218,7 +218,7 @@
       /**
        * Validates a symbolic domain name.  Returns true if it's valid.
        */
  -	private boolean isValidSymbolicDomain(String domain) {
  +	protected boolean isValidSymbolicDomain(String domain) {
       	String[] domainSegment = new String[10];
       	boolean match = true;
       	int i = 0;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message