org.codelabor.system.pattern.service
Class AbstractPatternMatcher

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

public abstract class AbstractPatternMatcher
extends Object
implements PatternMatcher, org.springframework.beans.factory.InitializingBean

패턴 매처 추상 클래스
매처에 공통적으로 필요한 패턴 리스트 처리 방법을 추상화 한다.

Author:
Shin Sang-jae

Field Summary
protected  List<String> excludesPatternList
          제외할 패턴 List (String 타입)
protected  List<String> includesPatternList
          포함할 패턴 List (String 타입)
 
Constructor Summary
AbstractPatternMatcher()
           
 
Method Summary
 void afterPropertiesSet()
           
 List<String> getExcludesPatternList()
          제외할 패턴 List를 가져온다.
 List<String> getIncludesPatternList()
          포함할 패턴 List를 가져온다.
abstract  boolean matches(List<String> includesPatternList, List<String> excludesPatternList, String inputString)
          패턴 일치 여부를 확인한다.
abstract  boolean matches(List<String> patternList, String inputString)
          패턴 일치 여부를 확인한다.
abstract  boolean matches(String inputString)
          패턴 일치 여부를 확인한다.
abstract  boolean matches(String pattern, String inputString)
          패턴 일치 여부를 확인한다.
 void setExcludesPatternList(List<String> excludesPatternList)
          제외할 패턴 List를 설정한다.
 void setIncludesPatternList(List<String> includesPatternList)
          포함할 패턴 List를 설정한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

excludesPatternList

protected List<String> excludesPatternList
제외할 패턴 List (String 타입)


includesPatternList

protected List<String> includesPatternList
포함할 패턴 List (String 타입)

Constructor Detail

AbstractPatternMatcher

public AbstractPatternMatcher()
Method Detail

matches

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

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

matches

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

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

matches

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

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

matches

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

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

afterPropertiesSet

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

getExcludesPatternList

public List<String> getExcludesPatternList()
제외할 패턴 List를 가져온다.

Returns:
패턴 List

getIncludesPatternList

public List<String> getIncludesPatternList()
포함할 패턴 List를 가져온다.

Returns:
패턴 List

setExcludesPatternList

public void setExcludesPatternList(List<String> excludesPatternList)
제외할 패턴 List를 설정한다.

Parameters:
excludesPatternList - 패턴 List

setIncludesPatternList

public void setIncludesPatternList(List<String> includesPatternList)
포함할 패턴 List를 설정한다.

Parameters:
includesPatternList - 패턴 List


Copyright © 2011 CODELABOR. All Rights Reserved.