de.knipp.rritoolkit
Class DefaultResponseFactory.KeyRule
java.lang.Object
de.knipp.rritoolkit.DefaultResponseFactory.ListRule
de.knipp.rritoolkit.DefaultResponseFactory.KeyRule
- All Implemented Interfaces:
- java.lang.Comparable<DefaultResponseFactory.ListRule>
- Enclosing class:
- DefaultResponseFactory
protected static class DefaultResponseFactory.KeyRule
- extends DefaultResponseFactory.ListRule
rule that tests for the existance of certain keys
- Version:
- $Revision: 14936 $
- Author:
- Klaus Malorny
Field Summary |
private java.lang.String[] |
requiredKeys
the keys that must appear in the list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
requiredKeys
private java.lang.String[] requiredKeys
- the keys that must appear in the list
DefaultResponseFactory.KeyRule
public DefaultResponseFactory.KeyRule(int thePriority,
java.lang.Class<? extends Response> theClass,
java.lang.String... keys)
- constructor
- Parameters:
thePriority
- the priority. The smaller the number, the
earlier the rule is used.theClass
- the class that shall be instantiatedkeys
- the keys
matches
public boolean matches(KVMultiList list,
Request request)
- test whether the rule matches
- Specified by:
matches
in class DefaultResponseFactory.ListRule
- Parameters:
list
- the listrequest
- the request, may be null
- Returns:
true
if the rule matches
matches
public boolean matches(org.w3c.dom.Document doc,
Request request)
- test whether the rule matches
- Specified by:
matches
in class DefaultResponseFactory.ListRule
- Parameters:
doc
- the documentrequest
- the request, may be null
- Returns:
true
if the rule matches
Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH