ruper2/src/java/core/org/krysalis/ruper2/util/regexp RegularExpressionHelper.java,NONE,1.1

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/util/regexp
In directory sc8-pr-cvs1:/tmp/cvs-serv11152/src/java/core/org/krysalis/ruper2/util/regexp

Added Files:
	RegularExpressionHelper.java 
Log Message:
Leverage selectors for performList, to make it much more powerful.

--- NEW FILE: RegularExpressionHelper.java ---
/*
 * Created on Aug 27, 2003
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package org.krysalis.ruper2.util.regexp;


/**
 * @author arb_jack
 * 
 *	Wrapper in case we move to ORO  
 */
public class RegularExpressionHelper {
	public final static String START	=	"^";
	public final static String WILD		=	".*";
	public final static String END		=	"$";
	
	public static RegularExpression getIncludes(String pattern) {
		return new RegularExpression(START + WILD + pattern + WILD + END);
	}
	public static RegularExpression endsWith(String pattern) {
		return new RegularExpression(START + WILD +  pattern + END);
	}
	public static RegularExpression startsWith(String pattern) {
		return new RegularExpression(START + pattern + WILD +END);
	}
}




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.