DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.test
Class PatternTester

java.lang.Object
  extended by org.dlese.dpc.schemedit.test.PatternTester

public class PatternTester
extends Object

Class for testing pattern matching and regular expressinos

Author:
ostwald

Field Summary
static Pattern FINAL_STATUS_PATTERN
           
static String FINAL_STATUS_TEMPLATE
           
 
Constructor Summary
PatternTester()
           
 
Method Summary
static String getCollection(String statusValue)
           
static String getElementText(Element e)
           
static boolean isFinalStatusValue(String s)
           
static boolean isValidEmail(String s)
          validate emails for the suggestor app.
static boolean isValidUrl(String s)
           
static void main(String[] args)
           
static String makeFinalStatusValue(String collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FINAL_STATUS_TEMPLATE

public static String FINAL_STATUS_TEMPLATE

FINAL_STATUS_PATTERN

public static Pattern FINAL_STATUS_PATTERN
Constructor Detail

PatternTester

public PatternTester()
Method Detail

getElementText

public static String getElementText(Element e)

isValidUrl

public static boolean isValidUrl(String s)

makeFinalStatusValue

public static String makeFinalStatusValue(String collection)

getCollection

public static String getCollection(String statusValue)

isFinalStatusValue

public static boolean isFinalStatusValue(String s)

isValidEmail

public static boolean isValidEmail(String s)
validate emails for the suggestor app. MUST have on and only one "@" must not end in Period


main

public static void main(String[] args)

DLESE Tools
v1.6.0