//=====================================================================
// Tag object
// represent a Tag on a comment
//=====================================================================

function Tag(keyword) {
	this.keyword = keyword;
}

//=====================================================================
// public methods
//=====================================================================

// get the keyword
Tag.prototype.getKeyword = function() {
	return this.keyword;
}

// set the keyword
Tag.prototype.setKeyword = function(keyword) {
	this.keyword = keyword;
}
				
Tag.prototype.serialize = function() {
	var serializedTag = "keyword=" + this.keyword;
	return serializedTag;
	
}

Tag.prototype.clone = function() {
	var temp = new Tag();
	
	for(myvar in this) {
		temp[myvar] = this[myvar];
	}
	
	return temp;
}


