Class XMLAppNavBean

java.lang.Object
com.webmethods.caf.faces.bean.nav.BaseAppNavBean
com.webmethods.caf.faces.bean.nav.xml.XMLAppNavBean

public class XMLAppNavBean extends BaseAppNavBean
Web application navigation bean where the page hierarchy is loaded from an XML config file.
  • Field Details

    • m_parserFactory

      protected SAXParserFactory m_parserFactory
      SAXParserFactory to create parser instances.
    • m_configFile

      protected String m_configFile
      XML config file which contains the configuration for this bean.
    • m_pageClass

      protected String m_pageClass
      Name of XMLAppNavPage class to use to build nav hierarchy.
  • Constructor Details

    • XMLAppNavBean

      public XMLAppNavBean()
      New, uninitialized bean; must be initialized via setConfigFile(String).
    • XMLAppNavBean

      public XMLAppNavBean(String configFile)
      Creates a new bean, loading the navigation hierarchy from the specified xml config file.
  • Method Details

    • getRoot

      public IAppNavPage getRoot()
      Root page of the navigation hierarchy. Loads hierarchy from the specified config file if necessary.
      Overrides:
      getRoot in class BaseAppNavBean
    • getParser

      Creates new parser instance.
      Throws:
      ParserConfigurationException
      SAXException
    • getConfigFile

      public String getConfigFile()
      Returns the XML config file which contains the configuration for this bean.
    • setConfigFile

      public void setConfigFile(String configFile)
      Set the XML config file which contains the configuration for this bean.
    • getPageClass

      public String getPageClass()
      Name of XMLAppNavPage class to use to build nav hierarchy. This class must have a public zero-argument constructor.
    • setPageClass

      public void setPageClass(String pageClass)
      Name of XMLAppNavPage class to use to build nav hierarchy. This class must have a public zero-argument constructor.