|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.ui.xml.parse.UIXParseFactory
Factory for creating UIX objects during parsing. UINodeParser will use the registered UIXParseFactory to create all UINodes, AttributeMaps, NodeLists, and ContextMaps during parsing. Note, however, that if a particular UINode does not contain any attributes, or any indexed children, or any named children, then the corresponding collection object will not be created.
When using the UIX Servlet, the UIXParseFactory can be overridden
by subclassing either the BajaContext or the PageBroker and overriding
the getService() method to handle UIXParseFactory.class
.
Constructor Summary | |
UIXParseFactory()
|
Method Summary | |
AttributeMap |
createAttributeMap(ParseContext context,
BaseMutableUINode node,
int sizeHint)
Creates an AttributeMap. |
ContextMap |
createContextMap(ParseContext context,
BaseMutableUINode node,
int sizeHint)
Creates a ContextMap. |
BaseMutableUINode |
createUINode(ParseContext context,
UINodeType nodeType,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Creates a UINode. |
UINodeList |
createUINodeList(ParseContext context,
BaseMutableUINode node,
int lengthHint)
Creates a UINodeList. |
static UIXParseFactory |
getUIXParseFactory(ParseContext context)
Gets the UIXParseFactory from a ParseContext. |
void |
parseEnded(ParseContext context)
Called as notification that a parse is ending. |
void |
parseStarted(ParseContext context)
Called as notification that a parse is starting. |
static void |
setUIXParseFactory(ParseContext context,
UIXParseFactory factory)
Sets the UIXParseFactory on a ParseContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UIXParseFactory()
Method Detail |
public static UIXParseFactory getUIXParseFactory(ParseContext context)
public static void setUIXParseFactory(ParseContext context, UIXParseFactory factory)
public void parseStarted(ParseContext context)
public void parseEnded(ParseContext context)
public BaseMutableUINode createUINode(ParseContext context, UINodeType nodeType, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs) throws java.lang.InstantiationException, java.lang.IllegalAccessException
context
- the ParseContextnodeType
- a UINodeType identifying the object.namespace
- the namespace of the UINodelocalName
- the local name of the UINodeattrs
- the SAX attributes for the UINode.public AttributeMap createAttributeMap(ParseContext context, BaseMutableUINode node, int sizeHint)
context
- the ParseContextnode
- the BaseMutableUINode created by createUINode()sizeHint
- a hint about how big the attribute map might be;
if zero or negative, a default size should be assumed.public UINodeList createUINodeList(ParseContext context, BaseMutableUINode node, int lengthHint)
context
- the ParseContextnode
- the BaseMutableUINode created by createUINode()sizeHint
- a hint about how big the node list might be;
if zero or negative, a default size should be assumed.public ContextMap createContextMap(ParseContext context, BaseMutableUINode node, int sizeHint)
context
- the ParseContextnode
- the BaseMutableUINode created by createUINode()sizeHint
- a hint about how big the context map might be;
if zero or negative, a default size should be assumed.
|
UIX 2.2.16 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |