org.codelabor.system.pattern.util
Class SimplePatternMatchUtils

java.lang.Object
  extended by org.codelabor.system.pattern.util.SimplePatternMatchUtils

public class SimplePatternMatchUtils
extends Object

Simple 패턴 매처 유틸리티

Author:
Shin Sang-jae

Constructor Summary
SimplePatternMatchUtils()
           
 
Method Summary
static boolean matches(List<String> includesPatternList, List<String> excludesPatternList, String inputString)
          패턴 일치 여부를 확인한다.
static boolean matches(List<String> patternList, String inputString)
          패턴 일치 여부를 확인한다.
static boolean matches(String pattern, String inputString)
          패턴 일치 여부를 확인한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePatternMatchUtils

public SimplePatternMatchUtils()
Method Detail

matches

public static boolean matches(String pattern,
                              String inputString)
패턴 일치 여부를 확인한다.

Parameters:
pattern - 패턴
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

matches

public static boolean matches(List<String> patternList,
                              String inputString)
패턴 일치 여부를 확인한다.

Parameters:
patternList - 패턴 List
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

matches

public static boolean matches(List<String> includesPatternList,
                              List<String> excludesPatternList,
                              String inputString)
패턴 일치 여부를 확인한다.

Parameters:
includesPatternList - 포함할 패턴 List
excludesPatternList - 제외할 패턴 List
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부


Copyright © 2011 CODELABOR. All Rights Reserved.