opennlp.grok.util
Class CatList

java.lang.Object
  |
  +--opennlp.grok.util.CatList

public class CatList
extends java.lang.Object

A list that contains categories.

Version:
$Revision: 1.7 $, $Date: 2002/03/01 15:46:56 $
Author:
Jason Baldridge

Constructor Summary
CatList()
           
CatList(opennlp.common.synsem.Category c)
           
CatList(opennlp.common.synsem.Category[] list)
           
CatList(java.util.List cats)
           
 
Method Summary
 void add(opennlp.common.synsem.Category c)
           
 void add(CatList cl)
           
 void addFront(opennlp.common.synsem.Category c)
           
 CatList copy()
           
 CatList copyWithout(int indexToRemove)
           
 void deepMap(opennlp.common.unify.ModFcn mf)
           
 CatList fill(opennlp.common.unify.Substitution s)
           
 opennlp.common.synsem.Category get(int i)
           
 opennlp.common.synsem.Category getLast()
           
 boolean occurs(opennlp.common.unify.Variable v)
           
 void set(int i, opennlp.common.synsem.Category c)
           
 int size()
           
 CatList subList(int from)
           
 CatList subList(int from, int upto)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CatList

public CatList()

CatList

public CatList(opennlp.common.synsem.Category c)

CatList

public CatList(opennlp.common.synsem.Category[] list)

CatList

public CatList(java.util.List cats)
Method Detail

get

public opennlp.common.synsem.Category get(int i)

set

public void set(int i,
                opennlp.common.synsem.Category c)

getLast

public opennlp.common.synsem.Category getLast()

add

public void add(opennlp.common.synsem.Category c)

add

public void add(CatList cl)

addFront

public void addFront(opennlp.common.synsem.Category c)

size

public int size()

copy

public CatList copy()

copyWithout

public CatList copyWithout(int indexToRemove)

subList

public CatList subList(int from)

subList

public CatList subList(int from,
                       int upto)

occurs

public boolean occurs(opennlp.common.unify.Variable v)

fill

public CatList fill(opennlp.common.unify.Substitution s)
             throws opennlp.common.unify.UnifyFailure
opennlp.common.unify.UnifyFailure

deepMap

public void deepMap(opennlp.common.unify.ModFcn mf)

toString

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


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.