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.
 
Constructor Summary
RegExpFactory(Query q)
           
 
Method Summary
 void addInstance(String name, RegExp re, boolean def)
           
 RegExp getDefaultInstance(Query q)
           
 String getDefaultInstanceName()
           
 RegExp getInstance(String type, Query q)
           
 String getSupportedVersion(String instName)
           
 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
Constructor Detail

RegExpFactory

public RegExpFactory(Query q)
Method Detail

getSupportedVersion

public String getSupportedVersion(String instName)

getDefaultInstanceName

public String getDefaultInstanceName()

addInstance

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

setDefaultInstanceName

public void setDefaultInstanceName(String n)

getDefaultInstance

public RegExp getDefaultInstance(Query q)
                          throws QueryExecutionException
Throws:
QueryExecutionException

getInstance

public RegExp getInstance(String type,
                          Query q)
                   throws QueryExecutionException
Throws:
QueryExecutionException


  Copyright © 2010 Gary Bentley. All Rights Reserved.