This commit is contained in:
Hannes Janetzek 2013-10-06 21:44:40 +02:00
parent bd0b45d0b4
commit d0dd09a5a4

View File

@ -22,13 +22,16 @@ class NegativeMatcher implements AttributeMatcher {
private final String[] mKeyList; private final String[] mKeyList;
private final String[] mValueList; private final String[] mValueList;
// - exclusive negation matches when either KEY is not present // (-) 'exclusive negation' matches when either KEY is not present
// or KEY is present and any VALUE is NOT present // or KEY is present and any VALUE is NOT present
// //
// - non-exclusive negation matches when either KEY is not present // (\) 'except negation' matches when KEY is present
// none items of VALUE is present (TODO).
// (can be emulated by <m k="a"><m k=a v="-|b|c">...</m></m>)
//
// (~) 'non-exclusive negation' matches when either KEY is not present
// or KEY is present and any VALUE is present // or KEY is present and any VALUE is present
// //
// - TODO 'MUST NOT contain key'
private final boolean mExclusive; private final boolean mExclusive;
NegativeMatcher(List<String> keyList, List<String> valueList, boolean exclusive) { NegativeMatcher(List<String> keyList, List<String> valueList, boolean exclusive) {