gov.llnl.ontology.wordnet
Class BaseLemma

java.lang.Object
  extended by gov.llnl.ontology.wordnet.BaseLemma
All Implemented Interfaces:
Lemma

public class BaseLemma
extends Object
implements Lemma

A base implementation of a Lemma. This implementation allows for easy bean like access to all the requisit data members.

Author:
Keith Stevens.

Constructor Summary
BaseLemma(Synset synset, String lemmaName, String syntacticMarker)
          Creates a new Lemma.
BaseLemma(Synset synset, String lemmaName, String lexName, int lexNameIndex, int lexId, String syntacticMarker)
          Creates a new Lemma.
 
Method Summary
 void addFrameString(String frameString)
          Adds a verb frame to this Lemma.
 String getKey()
          Returns the key for this Lemma.
 String getLemmaName()
          Returns the name of this Lemma
 int getLexicalId()
          Returns the lexical id for this Lemma
 String getLexicographerName()
          Returns the lexicographer file name for this lemma.
 int getLexNameIndex()
          Returns the index corresponding to the lexicographer file name for this Lemma.
 Synset getSynset()
          Returns the Synset for this Lemma.
 void setKey(String key)
          Sets the key for this Lemma.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseLemma

public BaseLemma(Synset synset,
                 String lemmaName,
                 String syntacticMarker)
Creates a new Lemma.


BaseLemma

public BaseLemma(Synset synset,
                 String lemmaName,
                 String lexName,
                 int lexNameIndex,
                 int lexId,
                 String syntacticMarker)
Creates a new Lemma.

Method Detail

getSynset

public Synset getSynset()
Returns the Synset for this Lemma.

Specified by:
getSynset in interface Lemma

getLemmaName

public String getLemmaName()
Returns the name of this Lemma

Specified by:
getLemmaName in interface Lemma

getLexicographerName

public String getLexicographerName()
Returns the lexicographer file name for this lemma.

Specified by:
getLexicographerName in interface Lemma

getLexNameIndex

public int getLexNameIndex()
Returns the index corresponding to the lexicographer file name for this Lemma.

Specified by:
getLexNameIndex in interface Lemma

getLexicalId

public int getLexicalId()
Returns the lexical id for this Lemma

Specified by:
getLexicalId in interface Lemma

getKey

public String getKey()
Returns the key for this Lemma.

Specified by:
getKey in interface Lemma

setKey

public void setKey(String key)
Sets the key for this Lemma.


addFrameString

public void addFrameString(String frameString)
Adds a verb frame to this Lemma.



Copyright © 2010-2011. All Rights Reserved.