cc.mallet.extract
Class Field

java.lang.Object
  extended by cc.mallet.extract.Field

public class Field
extends java.lang.Object

Created: Oct 12, 2004

Version:
$Id: Field.java,v 1.1 2007/10/22 21:37:44 mccallum Exp $
Author:
Constructor Summary
Field(LabeledSpan span)
           
 
Method Summary
 void addFiller(LabeledSpan span)
           
 Label getName()
           
 boolean isValue(java.lang.String filler)
          Returns true if filler is an exact match to one of the values of this field.
 boolean isValue(java.lang.String filler, FieldComparator comper)
           
 int numValues()
           
 LabeledSpan span(int i)
           
 java.lang.String toString()
           
 java.lang.String value(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(LabeledSpan span)
Method Detail

getName

public Label getName()

numValues

public int numValues()

value

public java.lang.String value(int i)

span

public LabeledSpan span(int i)

addFiller

public void addFiller(LabeledSpan span)

isValue

public boolean isValue(java.lang.String filler)
Returns true if filler is an exact match to one of the values of this field.


isValue

public boolean isValue(java.lang.String filler,
                       FieldComparator comper)

toString

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