public class SimplePattern extends java.lang.Object implements ErrorPattern
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
codeNumber
the code to match
|
Constructor and Description |
---|
SimplePattern(java.lang.String theCode)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ErrorPatternVisitor visitor)
accept a visitor
|
java.lang.String |
getCode()
return the code that matches this pattern
|
boolean |
matches(ErrorCode code)
test whether the given error code matches the pattern
|
public SimplePattern(java.lang.String theCode)
theCode
- the code to matchpublic java.lang.String getCode()
public boolean matches(ErrorCode code)
matches
in interface ErrorPattern
code
- the code to test, may be null
true
if it matchespublic void accept(ErrorPatternVisitor visitor)
accept
in interface ErrorPattern
visitor
- the visitorCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH