edu.mit.jwi.item
Class ExceptionEntry

java.lang.Object
  extended by edu.mit.jwi.item.ExceptionEntryProxy
      extended by edu.mit.jwi.item.ExceptionEntry
All Implemented Interfaces:
IExceptionEntry, IExceptionEntryProxy, IHasPOS, IItem<IExceptionEntryID>, java.io.Serializable

public class ExceptionEntry
extends ExceptionEntryProxy
implements IExceptionEntry

Default implementation of IExceptionEntry

Since:
JWI 1.0
Version:
2.4.0
Author:
Mark A. Finlayson
See Also:
Serialized Form

Constructor Summary
ExceptionEntry(IExceptionEntryProxy proxy, POS pos)
          Creates a new exception entry for the specified part of speech using the information in the specified exception proxy object.
ExceptionEntry(java.lang.String surfaceForm, POS pos, java.lang.String... rootForms)
          Creates a new exception entry for the specified part of speech using the specified surface and root forms.
 
Method Summary
 IExceptionEntryID getID()
          Returns the ID object for this item.
 POS getPOS()
          Returns the associated part of speech for this object.
 java.lang.String toString()
           
 
Methods inherited from class edu.mit.jwi.item.ExceptionEntryProxy
getRootForms, getSurfaceForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.mit.jwi.item.IExceptionEntryProxy
getRootForms, getSurfaceForm
 

Constructor Detail

ExceptionEntry

public ExceptionEntry(IExceptionEntryProxy proxy,
                      POS pos)
Creates a new exception entry for the specified part of speech using the information in the specified exception proxy object.

Parameters:
proxy - the proxy containing the information for the entry
pos - the part of speech for the entry
Throws:
java.lang.NullPointerException - if either argument is null
Since:
JWI 1.0

ExceptionEntry

public ExceptionEntry(java.lang.String surfaceForm,
                      POS pos,
                      java.lang.String... rootForms)
Creates a new exception entry for the specified part of speech using the specified surface and root forms.

Parameters:
surfaceForm - the surface form for the entry
pos - the part of speech for the entry
rootForms - the root forms for the entry
Throws:
java.lang.NullPointerException - if either argument is null
Since:
JWI 1.0
Method Detail

getPOS

public POS getPOS()
Description copied from interface: IHasPOS
Returns the associated part of speech for this object. If this object is not associated with any particular part of speech, this method may return null.

Specified by:
getPOS in interface IHasPOS
Returns:
The associated part of speech, or null if none.

getID

public IExceptionEntryID getID()
Description copied from interface: IItem
Returns the ID object for this item. Will not return null.

Specified by:
getID in interface IItem<IExceptionEntryID>
Returns:
the non-null ID for this item

toString

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


Copyright © 2007-2013 Massachusetts Institute of Technology. All Rights Reserved.