edu.mit.jmwe.harness.result
Class ErrorResult.ErrorResultBuilder<T extends IToken>
java.lang.Object
edu.mit.jmwe.harness.result.ErrorResult.ErrorResultBuilder<T>
- Type Parameters:
T
- the token type
- Enclosing class:
- ErrorResult<T extends IToken>
public static class ErrorResult.ErrorResultBuilder<T extends IToken>
- extends Object
An object that builds an error result.
- Since:
- jMWE 1.0.0
- Version:
- $Id: ErrorResult.java 613 2011-05-06 21:31:24Z markaf $
- Author:
- M.A. Finlayson
Method Summary |
void |
addDetail(IErrorResult<T> result)
Adds the specified error detail to this builder |
IErrorResult<T> |
create()
Creates a new error result, or throws an exception if it cannot
create a valid result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorResult.ErrorResultBuilder
public ErrorResult.ErrorResultBuilder()
addDetail
public void addDetail(IErrorResult<T> result)
- Adds the specified error detail to this builder
- Parameters:
result
- the detail to be added to the error result builder
- Throws:
NullPointerException
- if the specified result is null
- Since:
- jMWE 1.0.0
create
public IErrorResult<T> create()
- Creates a new error result, or throws an exception if it cannot
create a valid result.
- Returns:
- a new error result capturing the information in the builder
- Since:
- jMWE 1.0.0
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.