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

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<IErrorDetector>
          extended by edu.mit.jmwe.harness.result.error.CompositeErrorDetector
              extended by edu.mit.jmwe.harness.result.error.CommonErrorDetector
All Implemented Interfaces:
IHasID, IErrorDetector, Iterable<IErrorDetector>, Collection<IErrorDetector>, List<IErrorDetector>

public class CommonErrorDetector
extends CompositeErrorDetector

This error detector looks for several types of common errors made by MWE detectors.

Since:
jMWE 1.0.0
Version:
$Id: CommonErrorDetector.java 615 2011-05-07 00:02:36Z markaf $
Author:
N. Kulkarni

Field Summary
static String ID
          The ID for this error detector, "edu.mit.jmwe.error.common"
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected CommonErrorDetector()
          This constructor is marked protected so that this class may be subclassed, but not directly instantiated.
 
Method Summary
 String getID()
          Returns an ID string that uniquely identifies this object or object type.
static CommonErrorDetector getInstance()
          Returns the singleton instance of this class, instantiating if necessary.
 
Methods inherited from class edu.mit.jmwe.harness.result.error.CompositeErrorDetector
detect, get, size
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

ID

public static final String ID
The ID for this error detector, "edu.mit.jmwe.error.common"

Since:
jMWE 1.0.0
See Also:
Constant Field Values
Constructor Detail

CommonErrorDetector

protected CommonErrorDetector()
This constructor is marked protected so that this class may be subclassed, but not directly instantiated.

Since:
jMWE 1.0.0
Method Detail

getInstance

public static CommonErrorDetector getInstance()
Returns the singleton instance of this class, instantiating if necessary.

Returns:
the singleton instance of this class
Since:
jMWE 1.0.0

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
Overrides:
getID in class CompositeErrorDetector
Returns:
the non-null id String


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