net.sf.jabb.util.text
Class MatchingDefinition

java.lang.Object
  extended by net.sf.jabb.util.text.MatchingDefinition

public class MatchingDefinition
extends Object

Definition of how the matching will should be done.
匹配方式定义。

It consists of three parts:

Only one of exactMatchExamples and exactMatchExample need to be not null.

它由三项数据组成:

exactMatchExamplesexactMatchExample只需要有一个为非null。

Author:
Zhengmao HU (James)

Constructor Summary
MatchingDefinition()
           
 
Method Summary
 Object getAttachment()
           
 String getExactMatchExample()
           
 List<String> getExactMatchExamples()
           
 String getRegularExpression()
           
 void setAttachment(Object attachment)
           
 void setExactMatchExample(String exactMatchExample)
           
 void setExactMatchExamples(List<String> exactExample)
           
 void setRegularExpression(String regularExpression)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchingDefinition

public MatchingDefinition()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getRegularExpression

public String getRegularExpression()

setRegularExpression

public void setRegularExpression(String regularExpression)

getExactMatchExamples

public List<String> getExactMatchExamples()

setExactMatchExamples

public void setExactMatchExamples(List<String> exactExample)

getExactMatchExample

public String getExactMatchExample()

setExactMatchExample

public void setExactMatchExample(String exactMatchExample)

getAttachment

public Object getAttachment()

setAttachment

public void setAttachment(Object attachment)


Copyright © 2012. All Rights Reserved.