Packageat.fhjoanneum.dmt.umj.core.content
Classpublic class AppContentBundle
InheritanceAppContentBundle Inheritance GenericAppContent Inheritance flash.events.EventDispatcher

IMPORTANT FRAMEWORK CLASS: AppContentBundle is the singleton of YOUR CHOICE WHEN WORKING WITH AppContentBundle.xml entities. It extends THE POWERFUL GenericAppContent (THE CONTENT MANAGER SUPERCLASS!) and provides a special implementation of it. It introduces the ContentBundles as powerful utility have multiple ContentElements within a ContentBundle and refernce from one ContentBundle to another via ContentElement descriptions. Basically, it's an implementation of an simple ontology concept (within actionscripts limits). IT provides MANY methods to work and search for references within appContentBundles It also allowes you to use the native methods within the contentBundleCollection getter. Nothing has to be touch, all parsing happens automatically.



Public Properties
 PropertyDefined By
  contentBundleCollection : ContentBundleCollection
[read-only]
AppContentBundle
 InheritedcontentElementCollection : ContentElementCollection
[read-only]
GenericAppContent
 InheritedcurrentSelectedLanguage : String
[read-only]
GenericAppContent
Protected Properties
 PropertyDefined By
 Inherited_contentElementCollection : ContentElementCollection
GenericAppContent
 Inherited_currentSelectedLanguage : String = DE
GenericAppContent
 InheritedmediaContentFactory : MediaComponentFactory
GenericAppContent
Public Methods
 MethodDefined By
  
AppContentBundle(enforcer:SingletonEnforcer)
AppContentBundle
  
[override]
AppContentBundle
 Inherited
changeLanguage(language:String):void
changes the language of ALL MultilingualComponents to the new language - default language is defined in AppConfig.GLOBAL_STARTUP_LANGUAGE;
GenericAppContent
  
AppContentBundle
 Inherited
GenericAppContent
  
getAllMultiLingualComponentsOfContentBundle(contentBundleElementID:String):ArrayCollection
AppContentBundle
  
getAllMultiLingualComponentsOfReferencedContentBundleInContentBundleAtRelation(contentBundleElementID:String, relationID:String):ArrayCollection
AppContentBundle
  
getAllMultiLingualComponentsReferencingThisContentBundle(contentBundleElementID:String):ArrayCollection
AppContentBundle
  
getContentBundle(contentBundleElementID:String):ContentBundle
AppContentBundle
  
AppContentBundle
 Inherited
getContentElement returns the first contentElement found that matches the overgiven id.
GenericAppContent
  
getContentElementOfContentBundle(contentBundleElementID:String, contentElementID:String):ContentElement
AppContentBundle
  
getContentElementOfRelationInContentBundle(contentBundleElementID:String, relationID:String):ContentElement
AppContentBundle
  
AppContentBundle
  
[static]
AppContentBundle
  
getLocalizedComponent(elementID:String, language:String):GenericMediaComponent
[override]
AppContentBundle
  
getLocalizedItemOfContentBundle(contentBundleElementID:String, contentElementID:String, language:String):LocalizedItem
AppContentBundle
  
getLocalizedItemOfContentElementOfRelationInContentBundle(contentBundleElementID:String, relationID:String, language:String):LocalizedItem
AppContentBundle
  
[override]
AppContentBundle
  
getMultiLingualComponentOfContentBundleContentElement(contentBundleElementID:String, contentElementID:String):MultiLingualComponent
AppContentBundle
  
getMultiLingualComponentOfRelationInContentBundle(contentBundleElementID:String, relationID:String):MultiLingualComponent
AppContentBundle
  
getMultipleContentBundles(contentBundleElementID:String):ContentBundleCollection
AppContentBundle
  
AppContentBundle
  
AppContentBundle
  
getXMLRepresentation(appendLastTimeSaved:LastTimeSavedChecker = null):String
[override]
AppContentBundle
  
parseXML(linkedXML:XML):void
[override]
AppContentBundle
Protected Methods
 MethodDefined By
 Inherited
dealloc():void
GenericAppContent
 Inherited
getGenericUniqueElementID(prefix:String = generic):String
GenericAppContent
  
init():void
[override]
AppContentBundle
  
parseAllContentBundles(util:XMLUtil, linkedXML:XML):void
AppContentBundle
 Inherited
parseAllContentElements(util:XMLUtil, linkedXML:XML):void
parseAllContentElements defines the algorithm for parsing ALL ContentElements within a loop
GenericAppContent
  
AppContentBundle
 Inherited
parseAndReturnOneContentElement defines the algorithm for parsing ONE ContentElement during the loop
GenericAppContent
  
parseAndReturnOneRelation(util:XMLUtil, linkedXML:XML, contentBundle:ContentBundle):Relation
AppContentBundle
Events
 Event Summary Defined By
  AppContentBundle
  AppContentBundle
Property Detail
contentBundleCollectionproperty
contentBundleCollection:ContentBundleCollection  [read-only]


Implementation
    public function get contentBundleCollection():ContentBundleCollection
Constructor Detail
AppContentBundle()Constructor
public function AppContentBundle(enforcer:SingletonEnforcer)



Parameters
enforcer:SingletonEnforcer
Method Detail
buildMediaComponents()method
override public function buildMediaComponents():void

checkIfContentBundlesExist()method 
public function checkIfContentBundlesExist():Boolean

Returns
Boolean
getAllMultiLingualComponentsOfContentBundle()method 
public function getAllMultiLingualComponentsOfContentBundle(contentBundleElementID:String):ArrayCollection

Parameters

contentBundleElementID:String

Returns
ArrayCollection
getAllMultiLingualComponentsOfReferencedContentBundleInContentBundleAtRelation()method 
public function getAllMultiLingualComponentsOfReferencedContentBundleInContentBundleAtRelation(contentBundleElementID:String, relationID:String):ArrayCollection

Parameters

contentBundleElementID:String
 
relationID:String

Returns
ArrayCollection
getAllMultiLingualComponentsReferencingThisContentBundle()method 
public function getAllMultiLingualComponentsReferencingThisContentBundle(contentBundleElementID:String):ArrayCollection

Parameters

contentBundleElementID:String

Returns
ArrayCollection
getContentBundle()method 
public function getContentBundle(contentBundleElementID:String):ContentBundle

Parameters

contentBundleElementID:String

Returns
ContentBundle
getContentBundlesReferencingThisContentBundle()method 
public function getContentBundlesReferencingThisContentBundle(contentBundleElementID:String):ContentBundleCollection

Parameters

contentBundleElementID:String

Returns
ContentBundleCollection
getContentElementOfContentBundle()method 
public function getContentElementOfContentBundle(contentBundleElementID:String, contentElementID:String):ContentElement

Parameters

contentBundleElementID:String
 
contentElementID:String

Returns
ContentElement
getContentElementOfRelationInContentBundle()method 
public function getContentElementOfRelationInContentBundle(contentBundleElementID:String, relationID:String):ContentElement

Parameters

contentBundleElementID:String
 
relationID:String

Returns
ContentElement
getContentElementsReferencingThisContentBundle()method 
public function getContentElementsReferencingThisContentBundle(contentBundleElementID:String):ContentElementCollection

Parameters

contentBundleElementID:String

Returns
ContentElementCollection
getInstance()method 
public static function getInstance():AppContentBundle

Returns
AppContentBundle
getLocalizedComponent()method 
override public function getLocalizedComponent(elementID:String, language:String):GenericMediaComponent

Parameters

elementID:String
 
language:String

Returns
GenericMediaComponent
getLocalizedItemOfContentBundle()method 
public function getLocalizedItemOfContentBundle(contentBundleElementID:String, contentElementID:String, language:String):LocalizedItem

Parameters

contentBundleElementID:String
 
contentElementID:String
 
language:String

Returns
LocalizedItem
getLocalizedItemOfContentElementOfRelationInContentBundle()method 
public function getLocalizedItemOfContentElementOfRelationInContentBundle(contentBundleElementID:String, relationID:String, language:String):LocalizedItem

Parameters

contentBundleElementID:String
 
relationID:String
 
language:String

Returns
LocalizedItem
getMultiLingualComponent()method 
override public function getMultiLingualComponent(elementID:String):MultiLingualComponent

Parameters

elementID:String

Returns
MultiLingualComponent
getMultiLingualComponentOfContentBundleContentElement()method 
public function getMultiLingualComponentOfContentBundleContentElement(contentBundleElementID:String, contentElementID:String):MultiLingualComponent

Parameters

contentBundleElementID:String
 
contentElementID:String

Returns
MultiLingualComponent
getMultiLingualComponentOfRelationInContentBundle()method 
public function getMultiLingualComponentOfRelationInContentBundle(contentBundleElementID:String, relationID:String):MultiLingualComponent

Parameters

contentBundleElementID:String
 
relationID:String

Returns
MultiLingualComponent
getMultipleContentBundles()method 
public function getMultipleContentBundles(contentBundleElementID:String):ContentBundleCollection

Parameters

contentBundleElementID:String

Returns
ContentBundleCollection
getRelationsOfThisContentBundle()method 
public function getRelationsOfThisContentBundle(contentBundleElementID:String):RelationCollection

Parameters

contentBundleElementID:String

Returns
RelationCollection
getRelationsReferencingThisContentBundle()method 
public function getRelationsReferencingThisContentBundle(contentBundleElementID:String):RelationCollection

Parameters

contentBundleElementID:String

Returns
RelationCollection
getXMLRepresentation()method 
override public function getXMLRepresentation(appendLastTimeSaved:LastTimeSavedChecker = null):String

Parameters

appendLastTimeSaved:LastTimeSavedChecker (default = null)

Returns
String
init()method 
override protected function init():void

parseAllContentBundles()method 
protected function parseAllContentBundles(util:XMLUtil, linkedXML:XML):void

Parameters

util:XMLUtil
 
linkedXML:XML

parseAndReturnOneContentBundle()method 
protected function parseAndReturnOneContentBundle(util:XMLUtil, linkedXML:XML):ContentBundle

Parameters

util:XMLUtil
 
linkedXML:XML

Returns
ContentBundle
parseAndReturnOneRelation()method 
protected function parseAndReturnOneRelation(util:XMLUtil, linkedXML:XML, contentBundle:ContentBundle):Relation

Parameters

util:XMLUtil
 
linkedXML:XML
 
contentBundle:ContentBundle

Returns
Relation
parseXML()method 
override public function parseXML(linkedXML:XML):void

Parameters

linkedXML:XML

Event Detail
COMPLETE Event
Event Object Type: at.fhjoanneum.dmt.umj.core.events.AppContentEvent

PARSE_ERROR Event  
Event Object Type: at.fhjoanneum.dmt.umj.core.events.AppContentEvent