Class wobzilla_viewFactory

Object
   |
   +--wobzilla_viewFactory

class wobzilla_viewFactory

This services is responsilbe for the creation of new views that are selected with the help of template-rules. The view-configuration can be found with the findRule method. For a detailed description of the selection algorithm see the XSLT-specification.


 
Method Summary
 function createView(contextNode,mode,logger,context,serviceManager,importedRulesOnly,templateName, args)
           finds a rule for the contextNode and creates the appropiate view with the help of the componentFactory.
 function findRule(contextNode,mode,importedRulesOnly,templateName)
           selects a template rule from the given contextNode or templateName (if set).

Method Detail

createView

function createView(contextNode,mode,logger,context,serviceManager,importedRulesOnly,templateName, args)
finds a rule for the contextNode and creates the appropiate view with the help of the componentFactory. The contents of the Rule will be used as a configuration node for the componentFactory. If there is more than one content-node (or an element with a namespace different from "http://wobzilla.sf.net/views" a configuration for a wrapping WbzContainer will be created.

Parameters:
templateName - will be passed to findRule

contextNode - will be passed to findRule

mode - will be passed to findRule

context - will be passed to the createComponent method

importedRulesOnly - will be passed to findRule

serviceManager - will be passed to the createComponent method

logger - will be passed to the createComponent method



findRule

function findRule(contextNode,mode,importedRulesOnly,templateName)
selects a template rule from the given contextNode or templateName (if set). First checks all template-rules of the current WbzMapper-Object. If no rule is found, the imported stylesheets will be searched.

Parameters:
templateName - selects a rule by name without matching the contextNode.

contextNode - the contextNode used for matching

mode - the mode of the template rule

importedRulesOnly - only search rules of imported stylesheets