1 /* 2 * Copyright 2004-2005 Gary Bentley 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may 5 * not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 package org.josql.functions.regexp; 16 17 import org.josql.QueryExecutionException; 18 19 /** 20 * Defines a regular expression, use the {@link RegExpFactory#getDefaultInstance()} to 21 * get the "default" instance, and then just call: {@link #match(String,String)}. 22 * <p> 23 * Last Modified By: $Author: barrygently $<br /> 24 * Last Modified On: $Date: 2005/01/07 17:10:41 $<br /> 25 * Current Revision: $Revision: 1.1 $<br /> 26 */ 27 public interface RegExp 28 { 29 30 public boolean match (String pattern, 31 String val) 32 throws QueryExecutionException; 33 34 public void init () 35 throws QueryExecutionException; 36 37 } 38