/***********************************************************
 * @author Maria A. Zamora
 * @company Digitec Interactive Inc.
 * @version 0.1
 * @date 1/14/2011
 * 
 *LessonItem class for conceptsFrame3 movie of the CEE application
 * CS5 version of com.digitec.cee.LessonItem  
**********************************************************/
package com.digitec.cee
{	
	public class LessonItem 
	{								
		//LESSONS		
		private var _id:String = "";
		private var _type:String = "";
		private var _publication:String= "";
		private var _lang:String = "";
		private var _display:String = "";
		private var _title:String = "";		
		private var _description:String = "";				
		private var _concepts:String = "";		
		private var _gradedisplay:String = "";		
		private var _gradelevel:String = "";	
		private var _source:String = "";
		private var _version:String = "";					
		private var _altversions:String = "";					
		private var _url:String = "";					
		
			
		 public function LessonItem( _xml:XML )
		 {					
			if( _xml.@id ){ _id =_xml.@id.toString();}
			if( _xml.@_type ){ _type =  _xml.@type.toString();}
			if( _xml.@publication ){ _publication =  _xml.@publication.toString();}
			if(_xml.@_lang  ){ _lang = _xml.@lang.toString();}
			if(_xml.@display != null  ){ _display =  _xml.@display.toString();}
			if( _xml.title != null ){ _title =  _xml.title.toString();}									
			if( _xml.desc ){ _description  =  _xml.desc.toString();}
			if( _xml.concepts ){ _concepts =_xml.concepts.toString();	 }
			if( _xml.gradedisplay ){ _gradedisplay =  _xml.gradedisplay.toString();}
			if( _xml.gradelevel ){ _gradelevel  =  _xml.gradelevel.toString();	}
			if( _xml.source ){ _source  =  _xml.source.toString();	}
			if( _xml.version != null ){ _version = _xml.version.toString();	}
			if( _xml.altversions != null ){ _altversions = _xml.altversions.toString();	}
			if( _xml.url != null ){ _url = _xml.url.toString();	}
			
		}													
		/*
		<lesson type="print" id="62242" publication="21" lang="en" display="true">
			<title>Microeconomics Unit 5: Lesson 2 - When Markets Fail</title>
			<desc>Some government intervention in the economy is designed to remedy problems arising from third-party costs and benefits of private activities or transactions. Students who understand third-party effects, often called externalities,...</desc>
			<concepts>third-party costs,negative externalities,third party benefits,positive externalities,market failures,roles of government,ap economics,economics,advanced placement economics,microeconomics,macroeconomics,1-56183-566-8,</concepts>
			<gradedisplay>9-12</gradedisplay>
			<gradelevel>9-12</gradelevel>
			<version>Teacher - Lesson 2</version>
			<altversions>Student - Activity 54,66079|Student - Activity 55,66080|Student - Activity 56,66081|Student - Activity 57,66082</altversions>
			<url>1-56183-566-8_50.pdf</url>
		</lesson>
		
		*/
	
		/*******************************************************************
	 	* GET FUNCTIONS
		*******************************************************************/						
		public function get id():String{ return _id; }
		
		public function get type():String	{ return _type; }						
		
		public function get publication():String	{ return _publication; }						
		
		public function get lang():String{ return _lang; }
		
		public function get  display():String	{ return _display; }						
		
		public function get  title():String	{ return _title; }						
		
		public function get  desc():String	{ return _description; }						
		
		public function get  concepts():String	{ return _concepts; }								
		
		public function get  gradedisplay():String{ return _gradedisplay; }
		
		public function get  gradelevel():String{ return _gradelevel; }
		
		public function get  source():String{ return _source; }
		
		public function get  version():String	{ return _version; }						
		
		public function get altversions():String	{ return _altversions; }						
		
		public function get pdf_url():String	{ return _url; }											
			
 
	} // Main class
 
} //end package



/************************************************************************************************************************** XML STRUCTURE
<?xml version="1.0" encoding="utf-8"?>
<library>
	<publications>
		<pub id="21" pubtype="teacher" lang="en" isbn="1-56183-566-8">
			<title>Advanced Placement Economics: Teacher Resource Manual</title>
			<parentof>24,23</parentof>
			<gradedisplay>9-12</gradedisplay>
			<gradelevel>9-12</gradelevel>
			<description><![CDATA[The teacher guide accompanies the student activities books in macro- and microeconomics for teaching college-level economics in AP Economics courses. The publication contains course outlines, unit plans, teaching instructions, and answers to the student activities and sample tests.]]></description>
			<img>1-56183-566-8.jpg</img>
			<storeurl>http://ve.ncee.net/store/link.php?isbn=1-56183-566-8</storeurl>
		</pub>
		<pub id="24" pubtype="student" lang="en" isbn="1-56183-567-6">
			<title>Advanced Placement Economics: Macroeconomics - Student Activities</title>
			<childof>21</childof>
			<gradedisplay>9-12</gradedisplay>
			<gradelevel>9-12</gradelevel>
			<description><![CDATA[This publication contains 55 activities that teach college-level macroeconomics to students in AP Economics classes.]]></description>
			<img>1-56183-567-6.jpg</img>
			<storeurl>http://ve.ncee.net/store/link.php?isbn=1-56183-567-6</storeurl>
		</pub>		
	</publications>
	<lessons>
		<lesson type="print" id="66623" publication="95" lang="en" display="false">
			<title><![CDATA[Front Material]]></title>
			<url><![CDATA[1-56183-574-9_front.pdf]]></url>
		</lesson>
		<lesson type="print" id="62130" publication="47" lang="en" display="true">
			<title><![CDATA[Unit 5 - Economic Systems: How Nations Organize Their Economies]]></title>
			<description><![CDATA[In this lesson, students will explain the difference between traditional, command, market, and mixed economies; explain why every country must have an economic system; explain the behavior of buyers and sellers in the market; expl...]]></description>
			<concepts><![CDATA[economic systems,market structures,price floors and ceilings,trade-offs among goals,scarcity,productive resources,economic systems,competition and market structures,price ceilings and floors,decision making/cost-benefit analysis,productive resources,international,1-56183-054-2,]]></concepts>
			<gradedisplay>6-8</gradedisplay>
			<gradelevel>6-8</gradelevel>
			<url><![CDATA[1-56183-054-2_05.pdf]]></url>
		</lesson>		
	</lessons>
</library>
		*****************************************/







