edu.mit.jwi.item
Class ExceptionEntryProxy

java.lang.Object
  extended by edu.mit.jwi.item.ExceptionEntryProxy
All Implemented Interfaces:
IExceptionEntryProxy, java.io.Serializable
Direct Known Subclasses:
ExceptionEntry

public class ExceptionEntryProxy
extends java.lang.Object
implements IExceptionEntryProxy

Default implementation IExceptionEntryProxyl

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

Constructor Summary
ExceptionEntryProxy(IExceptionEntryProxy proxy)
          Constructs a new proxy that is a copy of the specified proxy
ExceptionEntryProxy(java.lang.String surfaceForm, java.lang.String... rootForms)
          Constructs a new proxy with the specified field values.
 
Method Summary
 java.util.List<java.lang.String> getRootForms()
          Returns an unmodifiable list of cceptable root forms for the surface form.
 java.lang.String getSurfaceForm()
          Returns the surface form (i.e., not the root form) of the word for this exception entry.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionEntryProxy

public ExceptionEntryProxy(IExceptionEntryProxy proxy)
Constructs a new proxy that is a copy of the specified proxy

Parameters:
proxy - the proxy to be copied
Throws:
java.lang.NullPointerException - if the specified proxy is null
Since:
JWI 1.0

ExceptionEntryProxy

public ExceptionEntryProxy(java.lang.String surfaceForm,
                           java.lang.String... rootForms)
Constructs a new proxy with the specified field values.

Parameters:
surfaceForm - the surface form for the entry; may not be null, empty, or all whitespace
rootForms - the root forms for the entry; may not contain null, empty, or all whitespace strings
Since:
JWI 1.0
Method Detail

getSurfaceForm

public java.lang.String getSurfaceForm()
Description copied from interface: IExceptionEntryProxy
Returns the surface form (i.e., not the root form) of the word for this exception entry. Because all surface forms in the exception files are lower case, the string returned by this call is also lower case.

Specified by:
getSurfaceForm in interface IExceptionEntryProxy
Returns:
the lowercase surface form of the exception entry

getRootForms

public java.util.List<java.lang.String> getRootForms()
Description copied from interface: IExceptionEntryProxy
Returns an unmodifiable list of cceptable root forms for the surface form.

Specified by:
getRootForms in interface IExceptionEntryProxy
Returns:
A non-null, non-empty, unmodifiable list of root forms

toString

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


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