|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IVerbIndex
A verb index, usually Verbnet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.mit.jverbnet.util.IHasLifecycle |
|---|
IHasLifecycle.ObjectClosedException |
| Method Summary | |
|---|---|
java.util.Set<IMember> |
getMembers(IWordnetKey key)
Returns all members in the index with the specified wordnet key. |
java.util.Set<IMember> |
getMembers(java.lang.String grouping)
Returns all members in the index with the specified grouping. |
IVerbClass |
getRootVerb(java.lang.String id)
Returns the root verb class with the specified id, or null if no
such verb class can be found in the index. |
IVerbClass |
getVerb(java.lang.String id)
Returns the verb class with the specified id, or null if no
such verb class can be found in the index. |
IVersion |
getVersion()
The version of the index. |
java.util.Iterator<IVerbClass> |
iterator()
Returns an iterator over all verb classes in the index, in the order they are encountered in the data files. |
java.util.Iterator<java.lang.String> |
iteratorGroups()
Returns an iterator over all groupings in the index, in their natural order. |
java.util.Iterator<IVerbClass> |
iteratorRoots()
Returns an iterator over all root verb classes in the index, in the order they are encountered in the data files. |
java.util.Iterator<IWordnetKey> |
iteratorWordnetKeys()
Returns an iterator over all wordnet keys in the index, in their natural order. |
void |
setVersion(IVersion v)
Sets the version for this index. |
| Methods inherited from interface edu.mit.jverbnet.util.IHasLifecycle |
|---|
close, isOpen, open |
| Method Detail |
|---|
IVersion getVersion()
IVersion.UNKNOWN. If the version has not yet been
determined, and the implementation does not determine the version
automatically when called (e.g., the implementation requires a call to
setVersion(IVersion)) the method will throw an exception.
IVersion.UNKNOWN
java.lang.IllegalStateException - if the version needs to be setvoid setVersion(IVersion v)
v - the version to use for this index; may not be
null
java.lang.NullPointerException - if the specified version is null
java.lang.IllegalStateException - if the method is called twiceIVerbClass getVerb(java.lang.String id)
null if no
such verb class can be found in the index. Ids are usually of the form
'verb-##.#', e.g., 'accompany-51.7'.
id - the id of the class
null if none
java.lang.NullPointerException - if the specified id is null
java.lang.IllegalArgumentException - if the specified id is empty or all whitespaceIVerbClass getRootVerb(java.lang.String id)
null if no
such verb class can be found in the index. Ids are usually of the form
'verb-##.#', e.g., 'accompany-51.7'.
id - the id of the class
null if none
java.lang.NullPointerException - if the specified id is null
java.lang.IllegalArgumentException - if the specified id is empty or all whitespacejava.util.Set<IMember> getMembers(IWordnetKey key)
null key indicates all members that have no key specified.
key - the key for which members should be retrieved; may be
null
nulljava.util.Set<IMember> getMembers(java.lang.String grouping)
null, empty, or all whitespace grouping indicates all
members that have no grouping specified.
grouping - the grouping for which members should be retrieved; may be
null, empty, or all whitespace.
nulljava.util.Iterator<IVerbClass> iterator()
iterator in interface java.lang.Iterable<IVerbClass>java.util.Iterator<IVerbClass> iteratorRoots()
java.util.Iterator<IWordnetKey> iteratorWordnetKeys()
java.util.Iterator<java.lang.String> iteratorGroups()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||