Meki Cherkaoui | f441d3a | 2012-04-22 15:17:52 -0700 | [diff] [blame] | 1 | /* |
| 2 | * @author: ucla-cs |
| 3 | * This class represents ExcludeAny objects |
| 4 | */ |
| 5 | |
| 6 | var ExcludeAny = function ExcludeAny() { |
| 7 | |
| 8 | }; |
| 9 | |
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame^] | 10 | ExcludeAny.prototype.from_ccnb = function(decoder) { |
Meki Cherkaoui | f441d3a | 2012-04-22 15:17:52 -0700 | [diff] [blame] | 11 | decoder.readStartElement(this.getElementLabel()); |
| 12 | decoder.readEndElement(); |
| 13 | }; |
| 14 | |
| 15 | |
Jeff Thompson | e85ff1d | 2012-09-29 21:21:57 -0700 | [diff] [blame^] | 16 | ExcludeAny.prototype.to_ccnb = function( encoder) { |
Meki Cherkaoui | f441d3a | 2012-04-22 15:17:52 -0700 | [diff] [blame] | 17 | encoder.writeStartElement(this.getElementLabel()); |
| 18 | encoder.writeEndElement(); |
| 19 | }; |
| 20 | |
| 21 | ExcludeAny.prototype.getElementLabel=function() { return CCNProtocolDTags.Any; }; |