|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.servlet.xml.parse.MarlinPageDescriptionFactory
UIX Component PageDescriptionFactory allows pages containing nothing but UIX Component content to be treated as PageDescriptions by the UIX Controller (Baja). This is mostly useful for performing includes where the included document contains nothing requiring Baja. It's also useful for quick-and-dirty tests.
The difficulty is that one instance of this factory must be registered for each top-level namespace. In other words, if you create a custom UIX element in your own namespace and want to use it as the root element in a document, you have to explicitly register that element as a PageDescription factory like so:
(new MarlinPageDescriptionFactory(_YOUR_NAMESPACE)). registerSelf(_yourParserManager);
Also, this class doesn't even return PageDescriptions. It really returns UINodes. PageDescriptionUtils will catch this case and wrap up the UINode appropriately, but clients using this class directly will need to be careful.
Constructor Summary | |
MarlinPageDescriptionFactory(java.lang.String namespace)
Creates a MarlinPageDescriptionFactory for a custom namespace. |
Method Summary | |
static MarlinPageDescriptionFactory |
getHTMLFactory()
Return a ParserFactory that handles bean elements in the HTML namespace. |
static MarlinPageDescriptionFactory |
getMarlinFactory()
Return a ParserFactory that handles bean elements in the UIX Components' namespace. |
NodeParser |
getParser(ParseContext context,
java.lang.String namespaceURI,
java.lang.String localName)
Returns the parser used for DataObjects with the given namespace and local name. |
void |
registerSelf(ParserManager manager)
Registers the factory on a ParserManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MarlinPageDescriptionFactory(java.lang.String namespace)
Method Detail |
public static MarlinPageDescriptionFactory getMarlinFactory()
public static MarlinPageDescriptionFactory getHTMLFactory()
public void registerSelf(ParserManager manager)
public NodeParser getParser(ParseContext context, java.lang.String namespaceURI, java.lang.String localName)
getParser
in interface ParserFactory
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |