| * This class represents Exclude objects |
| var Exclude = function Exclude(_Values){ |
| this.OPTIMUM_FILTER_SIZE = 100; |
| this.Values = _Values; //array of elements |
| Exclude.prototype.decode = function(/*XMLDecoder*/ decoder) { |
| decoder.readStartElement(this.getElementLabel()); |
| //TODO APPLY FILTERS/EXCLUDE |
| while ((component = decoder.peekStartElement(CCNProtocolDTags.Component)) || |
| (any = decoder.peekStartElement(CCNProtocolDTags.Any)) || |
| decoder.peekStartElement(CCNProtocolDTags.Bloom)) { |
| var ee = component?new ExcludeComponent(): any ? new ExcludeAny() : new BloomFilter(); |
| decoder.readEndElement(); |
| Exclude.prototype.encode=function(/*XMLEncoder*/ encoder) { |
| throw new ContentEncodingException("Cannot encode " + this.getClass().getName() + ": field values missing."); |
| encoder.writeStartElement(getElementLabel()); |
| encoder.writeEndElement(); |
| Exclude.prototype.getElementLabel = function() { return CCNProtocolDTags.Exclude; }; |