org.josql.functions.regexp
Class RegExpFactory

java.lang.Object
  extended by org.josql.functions.regexp.RegExpFactory

public class RegExpFactory
extends Object


Field Summary
static String APACHE_REGEXP_INST
          The instance name to use for the Apache RegExp regular expression library.
static String GNU_INST
          The instance name to use for the GNU regular expression library.
static String JAVA_INST
          The instance name to use for the Java 1.4 (java.util.regex) regular expression library.
static String ORO_INST
          The instance name to use for the ORO Apache regular expression library.
 
Method Summary
static void addInstance(String name, RegExp re, boolean def)
           
static RegExp getDefaultInstance()
           
static String getDefaultInstanceName()
           
static RegExp getInstance(String type)
           
static String getSupportedVersion(String instName)
           
static void setDefaultInstanceName(String n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_INST

public static final String JAVA_INST
The instance name to use for the Java 1.4 (java.util.regex) regular expression library. Whilst this is the default it will not be available on version of Java < 1.4.

See Also:
Constant Field Values

ORO_INST

public static final String ORO_INST
The instance name to use for the ORO Apache regular expression library.

See Also:
Constant Field Values

GNU_INST

public static final String GNU_INST
The instance name to use for the GNU regular expression library.

See Also:
Constant Field Values

APACHE_REGEXP_INST

public static final String APACHE_REGEXP_INST
The instance name to use for the Apache RegExp regular expression library.

See Also:
Constant Field Values
Method Detail

getSupportedVersion

public static String getSupportedVersion(String instName)

getDefaultInstanceName

public static String getDefaultInstanceName()

addInstance

public static void addInstance(String name,
                               RegExp re,
                               boolean def)

setDefaultInstanceName

public static void setDefaultInstanceName(String n)

getDefaultInstance

public static RegExp getDefaultInstance()
                                 throws QueryExecutionException
Throws:
QueryExecutionException

getInstance

public static RegExp getInstance(String type)
                          throws QueryExecutionException
Throws:
QueryExecutionException


  Copyright © 2008 Gary Bentley. All Rights Reserved.