org.exolab.castor.util
Class XercesRegExpEvaluator

java.lang.Object
  extended by org.exolab.castor.util.XercesRegExpEvaluator
All Implemented Interfaces:
RegExpEvaluator

public class XercesRegExpEvaluator
extends java.lang.Object
implements RegExpEvaluator

An implementation of the XercesRegExpEvaluator that uses the Regular Expression library in Xerces. For more information about the Xerces Regular Expression library please visit: http://xml.apache.org/xerces-j/apiDocs/org.apache.xerces.impl.xpath.regex/RegularExpression.html

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:07 $
Author:
Keith Visco, Takashi Okamoto

Field Summary
(package private)  org.apache.xerces.impl.xpath.regex.RegularExpression _regexp
          The Regular expression
 
Constructor Summary
XercesRegExpEvaluator()
          Creates a new XercesRegExpEvaluator
 
Method Summary
 boolean matches(java.lang.String value)
          Returns true if the given String is matched by the regular expression of this RegExpEvaluator
 void setExpression(java.lang.String rexpr)
          Sets the regular expression to match against during a call to #matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_regexp

org.apache.xerces.impl.xpath.regex.RegularExpression _regexp
The Regular expression

Constructor Detail

XercesRegExpEvaluator

public XercesRegExpEvaluator()
Creates a new XercesRegExpEvaluator

Method Detail

setExpression

public void setExpression(java.lang.String rexpr)
Sets the regular expression to match against during a call to #matches

Specified by:
setExpression in interface RegExpEvaluator
Parameters:
rexpr - the regular expression

matches

public boolean matches(java.lang.String value)
Returns true if the given String is matched by the regular expression of this RegExpEvaluator

Specified by:
matches in interface RegExpEvaluator
Parameters:
value - the String to check the production of
Returns:
true if the given string matches the regular expression of this RegExpEvaluator
See Also:
setExpression(java.lang.String)


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com