package classes.matuto.core.module
{
	
	/*
	
		Objeto responvel por quardar as informacoes de 
		um modulo
		
		autor: gustavo cosme
		data:  18/maio/2011
	
	*/
	
	public class ModuleInfo extends Object
	{
		
		private var raw			:XML;
		public  var classe		:Class;
		
		public function ModuleInfo(_raw:XML=null)
		{
			raw = _raw;
		}

		public function get getId():String
		{
			return raw.attribute('id');
		}
		
		public function get getClass():String
		{
		   return raw.attribute('classe');
		}
		
		public function get getTitle():String
		{
			return raw.attribute('title');
		}

		public function get getContext():String
		{
			return raw.attribute('context');
		}

		public function get getType():String
		{
			return raw.attribute('type');
		}

		public function getParams(name:String):XMLList
		{
			return raw.child(name);
		}
			
	
	
	
		
		
	}//end class
}