 
 package weavejs.data.key
 {
+	import weavejs.api.data.ICSVParser;
 	import weavejs.api.data.IQualifiedKey;
+	import weavejs.data.CSVParser;
 
 	/**
 	 * This class is internal to QKeyManager because instances

	 */
	internal class QKey implements IQualifiedKey
	{
		public function QKey(keyType:String, localName:*)
		{
			kt = keyType;
			ln = localName;
		}
		
		private var kt:String;
		private var ln:*;
		
		/**
		 * This is the namespace of the QKey.

			return ln;
		}
		
		public function toNumber():Number
		{
			return _toNumber;
		}
		
		// This is a String containing both the namespace and the local name of the QKey
		public function toString():String
		{
			// The # sign is used in anticipation that a key type will be a URI.
			if (!_toString)
			{
				if (!csvParser)
					csvParser = new CSVParser(false, DELIMITER);
				_toString = csvParser.createCSVRow([kt, ln]);
				if (!(ln is String))
					_toString += DELIMITER + typeof ln;
			}
			return _toString;
		}
	}
}
