01: /**
02: * Copyright 2006 Webmedia Group Ltd.
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: **/package org.araneaframework.uilib.list.util.like;
16:
17: import java.io.Serializable;
18:
19: /**
20: * Base implementation of {@link WildcardHandler}.
21: *
22: * @author <a href="mailto:rein@araneaframework.org">Rein Raudjärv</a>
23: *
24: * @see WildcardHandler
25: */
26: public abstract class BaseWildcardHandler implements WildcardHandler,
27: Serializable {
28:
29: protected int startsWith;
30: protected int endsWith;
31:
32: public void setStartsWith(int startsWith) {
33: this .startsWith = startsWith;
34: }
35:
36: public void setEndsWith(int endsWith) {
37: this .endsWith = endsWith;
38: }
39:
40: public int getEndsWith() {
41: return endsWith;
42: }
43:
44: public int getStartsWith() {
45: return startsWith;
46: }
47:
48: }
|