Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.servlet.xml.parse
Class MarlinPageDescriptionFactory

java.lang.Object
  |
  +--oracle.cabo.servlet.xml.parse.MarlinPageDescriptionFactory
All Implemented Interfaces:
ParserFactory

public class MarlinPageDescriptionFactory
extends java.lang.Object
implements ParserFactory

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

MarlinPageDescriptionFactory

public MarlinPageDescriptionFactory(java.lang.String namespace)
Creates a MarlinPageDescriptionFactory for a custom namespace.
Method Detail

getMarlinFactory

public static MarlinPageDescriptionFactory getMarlinFactory()
Return a ParserFactory that handles bean elements in the UIX Components' namespace.

getHTMLFactory

public static MarlinPageDescriptionFactory getHTMLFactory()
Return a ParserFactory that handles bean elements in the HTML namespace.

registerSelf

public void registerSelf(ParserManager manager)
Registers the factory on a ParserManager.

getParser

public 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.
Specified by:
getParser in interface ParserFactory

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.