Major update: refactored the API of all classes to make attributes start with a lower case letter and rename encode=>to_ccnb() and decode()=>from_ccnb.
(according to the API notes: http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt )
diff --git a/js/Exclude.js b/js/Exclude.js
index 50f8ea7..1ee9112 100644
--- a/js/Exclude.js
+++ b/js/Exclude.js
@@ -3,16 +3,16 @@
* This class represents Exclude objects
*/
-var Exclude = function Exclude(_Values){
+var Exclude = function Exclude(_values){
this.OPTIMUM_FILTER_SIZE = 100;
- this.Values = _Values; //array of elements
+ this.values = _values; //array of elements
}
-Exclude.prototype.decode = function(/*XMLDecoder*/ decoder) {
+Exclude.prototype.from_ccnb = function(/*XMLDecoder*/ decoder) {
@@ -35,7 +35,7 @@
};
-Exclude.prototype.encode=function(/*XMLEncoder*/ encoder) {
+Exclude.prototype.to_ccnb=function(/*XMLEncoder*/ encoder) {
if (!validate()) {
throw new ContentEncodingException("Cannot encode " + this.getClass().getName() + ": field values missing.");
}