01: /*
02: * Copyright 2004, 2005, 2006 Odysseus Software GmbH
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package de.odysseus.calyxo.forms.match;
17:
18: import java.util.Locale;
19:
20: import javax.servlet.http.HttpServletRequest;
21:
22: import de.odysseus.calyxo.forms.Matcher;
23:
24: /**
25: * Simple matcher.
26: *
27: * @author Christoph Beck
28: * @author Oliver Stuhr
29: */
30: public abstract class SimpleMatcher implements Matcher {
31:
32: /**
33: * Default constructor.
34: */
35: public SimpleMatcher() {
36: super ();
37: }
38:
39: /* (non-Javadoc)
40: * @see de.odysseus.calyxo.forms.Matcher#match(javax.servlet.http.HttpServletRequest, java.lang.String)
41: */
42: public final String match(HttpServletRequest request, String value) {
43: return match(value);
44: }
45:
46: public abstract String match(String value);
47:
48: /* (non-Javadoc)
49: * @see de.odysseus.calyxo.forms.impl.ValidationEngine#localize(java.util.Locale)
50: */
51: public void localize(Locale locale) {
52: }
53:
54: /* (non-Javadoc)
55: * @see de.odysseus.calyxo.forms.impl.ValidationEngine#isSharable()
56: */
57: public boolean isSharable() {
58: return false;
59: }
60: }
|