/**
* This class forms the core of the client side representation of our trees.
*/
function Node( value, text, ArrayOfChildren ) {
	this.value = value;
	this.text = text;
	this.children = ArrayOfChildren;
}

// rtti for javascript...
Node.prototype.isNode = true;

Node.prototype.getText = function () {
	return this.text;
}

Node.prototype.getValue = function () {
	return this.value;
}

Node.prototype.getChildren = function () {
	return this.children;
}
