edu.mit.jmwe.harness.result.error
Class AbstractErrorDetector

java.lang.Object
  extended by edu.mit.jmwe.harness.result.error.AbstractErrorDetector
All Implemented Interfaces:
IHasID, IErrorDetector
Direct Known Subclasses:
AllStopWords, DetectorDisagreement, ExtraPOS, ExtraPrep, InflectionError, InflectionPatternError, InterstitialTokens, MissingFromIndex, OutOfOrder, PNounLong, PNounShort, UntaggedPNoun, VBDVBN, WrongPOS

public abstract class AbstractErrorDetector
extends Object
implements IErrorDetector

Abstract base class implementation of the error detector interface that takes care of the ID boilerplate.

Since:
jMWE 1.0.0
Version:
$Id: AbstractErrorDetector.java 616 2011-05-07 01:00:47Z markaf $
Author:
M.A. Finlayson

Constructor Summary
AbstractErrorDetector(String id)
          Constructs a new abstract error detector with the specified id.
 
Method Summary
 String getID()
          Returns an ID string that uniquely identifies this object or object type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.mit.jmwe.harness.result.error.IErrorDetector
detect
 

Constructor Detail

AbstractErrorDetector

public AbstractErrorDetector(String id)
Constructs a new abstract error detector with the specified id.

Parameters:
id - the id
Throws:
NullPointerException - if the id is null
IllegalArgumentException - if the id is empty or all whitespace
Since:
jMWE 1.0.0
Method Detail

getID

public String getID()
Description copied from interface: IHasID
Returns an ID string that uniquely identifies this object or object type. Should never return null.

Specified by:
getID in interface IHasID
Returns:
the non-null id String


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.