|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.DefaultResponseFactory.ListRule
protected abstract static class DefaultResponseFactory.ListRule
small class that describes a rule for choosing a specific subclass
Field Summary | |
---|---|
private java.lang.Class<? extends Response> |
cls
the class that shall be instantiated |
private int |
priority
the priority |
Constructor Summary | |
---|---|
DefaultResponseFactory.ListRule(int thePriority,
java.lang.Class<? extends Response> theClass)
constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int priority
private java.lang.Class<? extends Response> cls
Constructor Detail |
---|
public DefaultResponseFactory.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 instantiatedMethod Detail |
---|
public 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 object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |