xmlBlaster 2.1.0 API

org.xmlBlaster.util.lexical
Class LikeOpWrapper

java.lang.Object
  extended by org.xmlBlaster.util.lexical.LikeOpWrapper

public final class LikeOpWrapper
extends java.lang.Object

LikeOpWrapper

Author:
Michele Laghi

Field Summary
private  gnu.regexp.RE expression
           
private  Global global
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
private  java.lang.String regexPattern
           
 
Constructor Summary
LikeOpWrapper(Global global, java.lang.String pattern)
           
LikeOpWrapper(Global global, java.lang.String pattern, char escape)
           
LikeOpWrapper(Global global, java.lang.String pattern, char escape, boolean doReducedSyntax)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean match(java.lang.String inputString)
           
static java.lang.String replace(java.lang.String pattern, char escape, java.lang.String token, java.lang.String replacement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

private static final java.lang.String ME
See Also:
Constant Field Values

regexPattern

private java.lang.String regexPattern

expression

private gnu.regexp.RE expression

global

private Global global

log

private static java.util.logging.Logger log
Constructor Detail

LikeOpWrapper

public LikeOpWrapper(Global global,
                     java.lang.String pattern)
              throws XmlBlasterException
Throws:
XmlBlasterException

LikeOpWrapper

public LikeOpWrapper(Global global,
                     java.lang.String pattern,
                     char escape)
              throws XmlBlasterException
Throws:
XmlBlasterException

LikeOpWrapper

public LikeOpWrapper(Global global,
                     java.lang.String pattern,
                     char escape,
                     boolean doReducedSyntax)
              throws XmlBlasterException
Throws:
XmlBlasterException
Method Detail

match

public boolean match(java.lang.String inputString)

replace

public static java.lang.String replace(java.lang.String pattern,
                                       char escape,
                                       java.lang.String token,
                                       java.lang.String replacement)
Parameters:
pattern - The input String to modify (the initial pattern used)
escape - The character to use as the escape char. If 0 then it works as no escape was defined
token - the token to be replaced
replacement - the string to use to replace the given token.
Returns:

main

public static void main(java.lang.String[] args)

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.