org.codelabor.system.pattern.service
Class RegexPatternMatcherImpl

java.lang.Object
  extended by org.codelabor.system.pattern.service.AbstractPatternMatcher
      extended by org.codelabor.system.pattern.service.RegexPatternMatcherImpl
All Implemented Interfaces:
PatternMatcher, org.springframework.beans.factory.InitializingBean

public class RegexPatternMatcherImpl
extends AbstractPatternMatcher

Regex 패턴 매처 구현 클래스
정규 표현식으로 표현된 패턴에 대해 일치 여부를 확인할 수 있는 패턴 매처

Author:
Shin Sang-jae

Field Summary
 
Fields inherited from class org.codelabor.system.pattern.service.AbstractPatternMatcher
excludesPatternList, includesPatternList
 
Constructor Summary
RegexPatternMatcherImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 boolean matches(List<String> includesPatternList, List<String> excludesPatternList, String inputString)
          패턴 일치 여부를 확인한다.
 boolean matches(List<String> patternList, String inputString)
          패턴 일치 여부를 확인한다.
 boolean matches(String inputString)
          패턴 일치 여부를 확인한다.
 boolean matches(String pattern, String inputString)
          패턴 일치 여부를 확인한다.
 
Methods inherited from class org.codelabor.system.pattern.service.AbstractPatternMatcher
getExcludesPatternList, getIncludesPatternList, setExcludesPatternList, setIncludesPatternList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexPatternMatcherImpl

public RegexPatternMatcherImpl()
Method Detail

matches

public boolean matches(String inputString)
Description copied from interface: PatternMatcher
패턴 일치 여부를 확인한다.
내장된 규칙에 따라 패턴 일치 여부를 확인한다.

Specified by:
matches in interface PatternMatcher
Specified by:
matches in class AbstractPatternMatcher
Parameters:
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

matches

public boolean matches(String pattern,
                       String inputString)
Description copied from interface: PatternMatcher
패턴 일치 여부를 확인한다.

Specified by:
matches in interface PatternMatcher
Specified by:
matches in class AbstractPatternMatcher
Parameters:
pattern - 패턴
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

matches

public boolean matches(List<String> patternList,
                       String inputString)
Description copied from interface: PatternMatcher
패턴 일치 여부를 확인한다.

Specified by:
matches in interface PatternMatcher
Specified by:
matches in class AbstractPatternMatcher
Parameters:
patternList - 패턴 List
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

matches

public boolean matches(List<String> includesPatternList,
                       List<String> excludesPatternList,
                       String inputString)
Description copied from interface: PatternMatcher
패턴 일치 여부를 확인한다.

Specified by:
matches in interface PatternMatcher
Specified by:
matches in class AbstractPatternMatcher
Parameters:
includesPatternList - 포함할 패턴 List
excludesPatternList - 제외할 패턴 List
inputString - 확인 대상 문자열
Returns:
패턴 일치 여부

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class AbstractPatternMatcher
Throws:
Exception


Copyright © 2011 CODELABOR. All Rights Reserved.