Package cc.mallet.extract
Class Field
- java.lang.Object
-
- 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
Constructors Constructor Description Field(LabeledSpan span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
-
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 classjava.lang.Object
-
-