public class XMLAppNavBuilder extends DefaultHandler
IAppNavPage
hierarchy
from a sequence of SAX events.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHARACTER_ENCODING
Default character encoding used by the parser.
|
protected StringBuilder |
m_buf
Buffer to keep values while parsing.
|
protected FacesContext |
m_ctx
The context.
|
protected Class |
m_pageClass
Class name of the page, this must be a sub-class of
XMLAppNavPage . |
protected String |
m_resourceBundle
Resource bundle location.
|
protected XMLAppNavPage |
m_root
Root page of the navigation hierarchy.
|
protected Stack |
m_stack
Stack of XMLAppNavPage s used while building the hierarchy. |
Constructor and Description |
---|
XMLAppNavBuilder(FacesContext ctx)
Constructor.
|
XMLAppNavBuilder(FacesContext ctx,
String pageClass)
Constructor with page Class.
|
Modifier and Type | Method and Description |
---|---|
IAppNavPage |
getRoot()
Gets the current
IAppNavPage hierarchy root. |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
public static final String DEFAULT_CHARACTER_ENCODING
protected StringBuilder m_buf
protected FacesContext m_ctx
protected Class m_pageClass
XMLAppNavPage
.protected String m_resourceBundle
protected XMLAppNavPage m_root
protected Stack m_stack
Stack
of XMLAppNavPage
s used while building the hierarchy.public XMLAppNavBuilder(FacesContext ctx)
ctx
- FacesContext
public XMLAppNavBuilder(FacesContext ctx, String pageClass)
ctx
- FacesContext
pageClass
- Class name of the page, this must be a sub-class of XMLAppNavPage
.public IAppNavPage getRoot()
IAppNavPage
hierarchy root.