function RadLiteralMaskPart (ch)
{
	this.ch = ch;
};

RadLiteralMaskPart.prototype = new RadMaskPart();

RadLiteralMaskPart.prototype.GetVisValue = function ()
{
    return this.ch;
};

RadLiteralMaskPart.prototype.GetLength = function ()
{
	if (this.controller.mozilla)
	{
		return this.ch.length - (this.ch.split("\r\n").length - 1);
	}
	return this.ch.length;
	
};

RadLiteralMaskPart.prototype.GetValue = function ()
{
	return "";
};

RadLiteralMaskPart.prototype.IsCaseSensitive = function ()
{
	if (this.NextChunk != null)
	{
		return this.NextChunk.IsCaseSensitive();
	}
};

RadLiteralMaskPart.prototype.SetValue = function (value, offset)
{
	offset -= this.offset;
	// mimick that it has setup its value.
	return value == this.ch.charAt(offset) || !value;
};

RadLiteralMaskPart.prototype.CanHandle = function (value, offset)
{
	offset -= this.offset;
	// mimick that it has setup its value.
	if ( value == this.ch.charAt(offset) ) return true;
	if (!value) return true;
	

	if (this.NextChunk != null)
	{
		return this.NextChunk.CanHandle(value, offset + this.GetLength());
	}

};

//BEGIN_ATLAS_NOTIFY
if (typeof(Sys) != "undefined")
{
    if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null)
    {
        Sys.Application.notifyScriptLoaded();
    }
}
//END_ATLAS_NOTIFY
