|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.response.SimplePattern
public class SimplePattern
a simple pattern, consisting of a single code value
Field Summary | |
---|---|
private java.lang.String |
codeNumber
the code to match |
Constructor Summary | |
---|---|
SimplePattern(java.lang.String theCode)
constructor |
Method Summary | |
---|---|
void |
accept(ErrorPatternVisitor visitor)
accept a visitor |
java.lang.String |
getCode()
returns the code that matches this pattern |
boolean |
matches(ErrorCode code)
test whether the given error code matches the pattern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String codeNumber
Constructor Detail |
---|
public SimplePattern(java.lang.String theCode)
theCode
- the code to matchMethod Detail |
---|
public 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 visitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |