com.wcohen.ss.expt
Class MatchData.Instance

java.lang.Object
  extended by com.wcohen.ss.BasicStringWrapper
      extended by com.wcohen.ss.expt.MatchData.Instance
All Implemented Interfaces:
StringWrapper
Enclosing class:
MatchData

public static class MatchData.Instance
extends BasicStringWrapper

A single item (aka record, string, etc) to match against others. An item has an id (for evaluating correctness of a match), a source (which relation its from), and a text field. Text is stored as a StringWrapper so that it can be preprocessed, if necessary.


Constructor Summary
MatchData.Instance(java.lang.String source, java.lang.String id, java.lang.String text)
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getSource()
           
 boolean sameId(MatchData.Instance b)
           
 java.lang.String toString()
           
 
Methods inherited from class com.wcohen.ss.BasicStringWrapper
charAt, hashCode, length, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchData.Instance

public MatchData.Instance(java.lang.String source,
                          java.lang.String id,
                          java.lang.String text)
Method Detail

getSource

public java.lang.String getSource()

getId

public java.lang.String getId()

sameId

public boolean sameId(MatchData.Instance b)

toString

public java.lang.String toString()
Overrides:
toString in class BasicStringWrapper