public class GroupPattern extends java.lang.Object implements ErrorPattern
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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
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
public GroupPattern setClassCodes(java.lang.String... codes)
codes
- the codespublic java.lang.String[] getClassCodes()
null
if they are
not tested at allpublic GroupPattern setAccessCodes(java.lang.String... codes)
codes
- the codespublic java.lang.String[] getAccessCodes()
null
if they are
not tested at allpublic GroupPattern setApplicationCodes(java.lang.String... codes)
codes
- the codespublic java.lang.String[] getApplicationCodes()
null
if they are
not tested at allpublic GroupPattern setComponentCodes(java.lang.String... codes)
codes
- the codespublic java.lang.String[] getComponentCodes()
null
if they are
not tested at allpublic GroupPattern setErrorCodes(java.lang.String... codes)
codes
- the codespublic 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 visitorCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH