package com.parc.ccn.data.query;

import javax.xml.stream.XMLStreamException;

import com.parc.ccn.data.util.XMLDecoder;
import com.parc.ccn.data.util.XMLEncoder;

/**
 * This element in an #ExcludeFilter matches all components.
 */
public class ExcludeAny extends ExcludeFilter.Filler {
	public static final String ANY = "Any";
	
	public boolean match(byte [] component) {
		return true;
	}

	@Override
	public void decode(XMLDecoder decoder) throws XMLStreamException {
		decoder.readStartElement(ANY);
		decoder.readEndElement();
	}

	@Override
	public void encode(XMLEncoder encoder) throws XMLStreamException {
		encoder.writeStartElement(ANY);
		encoder.writeEndElement();
	}

	@Override
	public boolean validate() {
		return true;
	}
}

@@ -734,10 +734,136 @@
 rue;%0A%09%7D%0A
+%09%0A%09public int compareTo(ExcludeAny o) %7B%0A%09%09return 0;%09// always equal%0A%09%7D%0A%09%0A%09public boolean equals(Object o) %7B%0A%09%09return true;%0A%09%7D%0A
 %7D%0A

Add needed compare routines to ExcludeAny refs #603