protected abstract static class DefaultResponseFactory.ListRule extends java.lang.Object implements java.lang.Comparable<DefaultResponseFactory.ListRule>
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends Response> |
cls
the class that shall be instantiated
|
private int |
priority
the priority
|
Constructor and Description |
---|
ListRule(int thePriority,
java.lang.Class<? extends Response> theClass)
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DefaultResponseFactory.ListRule other)
compare this instance to another
|
java.lang.Class<? extends Response> |
getResponseClass()
return the class
|
abstract boolean |
matches(org.w3c.dom.Document doc,
Request request)
test whether the rule matches
|
abstract boolean |
matches(KVMultiList list,
Request request)
test whether the rule matches
|
private int priority
private java.lang.Class<? extends Response> cls
public ListRule(int thePriority, java.lang.Class<? extends Response> theClass)
thePriority
- the priority. The smaller the number, the
earlier the rule is used.theClass
- the class that shall be instantiatedpublic abstract boolean matches(KVMultiList list, Request request)
list
- the listrequest
- the request, may be null
true
if the rule matchespublic abstract boolean matches(org.w3c.dom.Document doc, Request request)
doc
- the documentrequest
- the request, may be null
true
if the rule matchespublic java.lang.Class<? extends Response> getResponseClass()
public int compareTo(DefaultResponseFactory.ListRule other)
compareTo
in interface java.lang.Comparable<DefaultResponseFactory.ListRule>
other
- the other objectCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH