|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.response.GroupPattern
public class GroupPattern
class that allows to match groups of error codes
Field Summary | |
---|---|
private java.lang.String[] |
accessCodes
the accepted accesses |
private java.lang.String[] |
applicationCodes
the accepted application codes |
private java.lang.String[] |
classCodes
the accepted classes |
private java.lang.String[] |
componentCodes
the accepted components |
private java.lang.String[] |
errorCodes
the accepted error codes |
Constructor Summary | |
---|---|
GroupPattern()
empty constructor |
|
GroupPattern(java.lang.String classCode,
java.lang.String accessCode,
java.lang.String applicationCode,
java.lang.String componentCode,
java.lang.String errorCode)
constructor |
Method Summary | |
---|---|
void |
accept(ErrorPatternVisitor visitor)
accept a visitor |
java.lang.String[] |
getAccessCodes()
return the access codes |
java.lang.String[] |
getApplicationCodes()
return the application codes |
java.lang.String[] |
getClassCodes()
return the class codes |
java.lang.String[] |
getComponentCodes()
return the component codes |
java.lang.String[] |
getErrorCodes()
return the error codes to match |
boolean |
matches(ErrorCode code)
test whether the given error code matches the pattern |
GroupPattern |
setAccessCodes(java.lang.String... codes)
set the access codes to match |
GroupPattern |
setApplicationCodes(java.lang.String... codes)
set the application codes to match |
GroupPattern |
setClassCodes(java.lang.String... codes)
set the class codes to match |
GroupPattern |
setComponentCodes(java.lang.String... codes)
set the component codes to match |
GroupPattern |
setErrorCodes(java.lang.String... codes)
set the error codes to match |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String[] classCodes
private java.lang.String[] accessCodes
private java.lang.String[] applicationCodes
private java.lang.String[] componentCodes
private java.lang.String[] errorCodes
Constructor Detail |
---|
public GroupPattern()
public GroupPattern(java.lang.String classCode, java.lang.String accessCode, java.lang.String applicationCode, java.lang.String componentCode, java.lang.String errorCode)
classCode
- the class code to test for; ignored if
null
accessCode
- the access code to test for; ignored if
null
applicationCode
- the application code to test for;
ignored if null
componentCode
- the component code to test for; ignored
if null
errorCode
- the error code to test for; ignored if
null
Method Detail |
---|
public GroupPattern setClassCodes(java.lang.String... codes)
codes
- the codes
public java.lang.String[] getClassCodes()
null
if they are
not tested at allpublic GroupPattern setAccessCodes(java.lang.String... codes)
codes
- the codes
public java.lang.String[] getAccessCodes()
null
if they are
not tested at allpublic GroupPattern setApplicationCodes(java.lang.String... codes)
codes
- the codes
public java.lang.String[] getApplicationCodes()
null
if they are
not tested at allpublic GroupPattern setComponentCodes(java.lang.String... codes)
codes
- the codes
public java.lang.String[] getComponentCodes()
null
if they are
not tested at allpublic GroupPattern setErrorCodes(java.lang.String... codes)
codes
- the codes
public java.lang.String[] getErrorCodes()
null
if they are
not tested at allpublic 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 |