You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by al...@apache.org on 2007/06/28 17:19:14 UTC
svn commit: r551595 - in
/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator:
EmailAddressPatternValidator.java EmailAddressValidator.java
Author: almaw
Date: Thu Jun 28 08:19:13 2007
New Revision: 551595
URL: http://svn.apache.org/viewvc?view=rev&rev=551595
Log:
Add back in deprecated class.
Added:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java (with props)
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java
Added: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java?view=auto&rev=551595
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java (added)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java Thu Jun 28 08:19:13 2007
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.validation.validator;
+
+/**
+ * This class will be removed post 1.3.
+ *
+ * @deprecated Use {@link EmailAddressValidator} instead. Don't forget to update your resource keys!
+ */
+public class EmailAddressPatternValidator extends EmailAddressValidator
+{
+ private static final long serialVersionUID = 1L;
+ private static final EmailAddressPatternValidator INSTANCE = new EmailAddressPatternValidator();
+
+ /**
+ * @deprecated Use {@link EmailAddressValidator} instead. Don't forget to update your resource keys!
+ * @return
+ */
+ public static EmailAddressValidator getInstance() {
+ // We have to have our own instance because otherwise we break the resource keys.
+ return INSTANCE;
+ }
+
+}
Propchange: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressPatternValidator.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java?view=diff&rev=551595&r1=551594&r2=551595
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java Thu Jun 28 08:19:13 2007
@@ -24,6 +24,9 @@
* @author Chris Turner
* @author Jonathan Locke
* @author Martijn Dashorst
+ * @author Al Maw
+ *
+ * @since 1.3
*/
public class EmailAddressValidator extends PatternValidator
{