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)
IErrorParser
processLine
in interface IErrorParser
line
- - line to processepm
- - ErrorParserManager
true
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 IErrorParserNamed
public String getName()
getName
in interface IErrorParserNamed
public IErrorParser getErrorParser()
public void setId(String id)
IErrorParserNamed
setId
in interface IErrorParserNamed
id
- of error parserpublic void setName(String name)
IErrorParserNamed
setName
in interface IErrorParserNamed
name
- of error parserpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.