KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > util > query > BasicMatch


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 /*
15  * BasicMatch.java
16  *
17  * Created on den 20 juli 2002, 23:20
18  */

19 package org.ejbca.util.query;
20
21 /**
22  * A base class used by Query class to build a query. Inherited by UserMatch, TimeMatch and
23  * LogMatch. Main function is getQueryString which is abstract and must be overloaded.
24  *
25  * @author tomselleck
26  * @version $Id: BasicMatch.java,v 1.2 2006/07/30 18:19:02 herrvendil Exp $
27  *
28  * @see org.ejbca.util.query.UserMatch
29  * @see org.ejbca.util.query.TimeMatch
30  * @see org.ejbca.util.query.LogMatch
31  */

32 public abstract class BasicMatch implements java.io.Serializable JavaDoc {
33     
34     private static final long serialVersionUID = -1L;
35     // Public Constants
36
public static final int MATCH_TYPE_EQUALS = 0;
37     public static final int MATCH_TYPE_BEGINSWITH = 1;
38     public static final int MATCH_TYPE_CONTAINS = 2;
39
40     /**
41      * Creates a new instance of BasicMatch
42      */

43     public BasicMatch() {
44     }
45
46     /**
47      * DOCUMENT ME!
48      *
49      * @return DOCUMENT ME!
50      */

51     public abstract String JavaDoc getQueryString();
52
53     /**
54      * DOCUMENT ME!
55      *
56      * @return DOCUMENT ME!
57      */

58     public abstract boolean isLegalQuery();
59 }
60
Popular Tags