public class ErrorParserNamedWrapper extends Object implements IErrorParserNamed
IErrorParser to IErrorParserNamed.| Constructor and Description |
|---|
ErrorParserNamedWrapper(String id,
String name,
IErrorParser errorParser)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object o) |
IErrorParser |
getErrorParser() |
String |
getId() |
String |
getName() |
boolean |
processLine(String line,
ErrorParserManager epm)
Finds error or warnings on the given line
|
void |
setId(String id)
Set error parser ID.
|
void |
setName(String name)
Set error parser name.
|
public ErrorParserNamedWrapper(String id, String name, IErrorParser errorParser)
id - - assigned IDname - - assigned name.errorParser - - error parser to assign name and ID.public boolean processLine(String line, ErrorParserManager epm)
IErrorParserprocessLine in interface IErrorParserline - - line to processepm - - ErrorParserManagertrue if the parser found a problem reported in output.
More accurately, true will consume the line (prevent other parsers from seeing it)
and false won't (the line will be handed to the next parser).public String getId()
getId in interface IErrorParserNamedpublic String getName()
getName in interface IErrorParserNamedpublic IErrorParser getErrorParser()
public void setId(String id)
IErrorParserNamedsetId in interface IErrorParserNamedid - of error parserpublic void setName(String name)
IErrorParserNamedsetName in interface IErrorParserNamedname - of error parserpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.