edu.mit.jmwe.harness.result.error
Class CommonErrorDetector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<IErrorDetector>
edu.mit.jmwe.harness.result.error.CompositeErrorDetector
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" |
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 java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
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
CommonErrorDetector
protected CommonErrorDetector()
- This constructor is marked protected so that this class may be
subclassed, but not directly instantiated.
- Since:
- jMWE 1.0.0
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.