Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.xml
Class UINodeUtils

java.lang.Object
  |
  +--oracle.cabo.ui.xml.UINodeUtils

public class UINodeUtils
extends java.lang.Object

Utility functions for creating UINodes from UIX content.


Method Summary
static ParserManager createDefaultManager()
          Creates a ParserManager pre-registered with all the default ParserFactories needed to create a UINode.
static UINode createUINode(RenderingContext context, java.io.File file)
          Create a UINode off of a file, using the default parsing management.
static UINode createUINode(RenderingContext context, org.xml.sax.InputSource source)
          Create a UINode off of a file, using the default parsing management.
static UINode createUINode(XMLProvider provider, ErrorLog log, java.io.File file)
          Create a UINode off of a file, using the default parsing management.
static UINode createUINode(XMLProvider provider, ErrorLog log, org.xml.sax.InputSource source)
          Create a UINode off a generic SAX input source, using the default parsing management.
static UINode createUINode(XMLProvider provider, ErrorLog log, org.xml.sax.InputSource source, ParserManager manager)
          Create a UINode off a generic SAX input source, using a custom parsing manager.
static void registerInlineComplexAttributes(ParserManager manager, java.lang.String namespace)
          Registers all the ParserFactories needed for the "inline" complex attributes - that is, complex attributes that do not require envelope elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUINode

public static UINode createUINode(RenderingContext context,
                                  java.io.File file)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Create a UINode off of a file, using the default parsing management.

Parameters:
context - a RenderingContext
file - the file to load the UIX contents from

createUINode

public static UINode createUINode(RenderingContext context,
                                  org.xml.sax.InputSource source)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Create a UINode off of a file, using the default parsing management.

Parameters:
context - a RenderingContext
file - the file to load the UIX contents from

createUINode

public static UINode createUINode(XMLProvider provider,
                                  ErrorLog log,
                                  java.io.File file)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Create a UINode off of a file, using the default parsing management.

Parameters:
provider - an XMLProvider implementation
log - the error log for ouputting errors
file - the file to load the UIX contents from

createUINode

public static UINode createUINode(XMLProvider provider,
                                  ErrorLog log,
                                  org.xml.sax.InputSource source)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Create a UINode off a generic SAX input source, using the default parsing management.

Parameters:
provider - an XMLProvider implementation
log - the error log for ouputting errors
source - the SAX input source to load the UIX contents from

createUINode

public static UINode createUINode(XMLProvider provider,
                                  ErrorLog log,
                                  org.xml.sax.InputSource source,
                                  ParserManager manager)
                           throws java.io.IOException,
                                  org.xml.sax.SAXException
Create a UINode off a generic SAX input source, using a custom parsing manager.

Parameters:
provider - an XMLProvider implementation
log - the error log for ouputting errors
source - the SAX input source to load the UIX contents from
manager - the ParserManager to use for parsing

registerInlineComplexAttributes

public static void registerInlineComplexAttributes(ParserManager manager,
                                                   java.lang.String namespace)
Registers all the ParserFactories needed for the "inline" complex attributes - that is, complex attributes that do not require envelope elements. These elements are either free-form (any attributes go), or at least don't really care about the name/namespace of their root element (usually because they don't support attributes). The current list of types is: This function is called by createDefaultManager(), so very few clients will need to call this function. (The template code does require it.)

createDefaultManager

public static ParserManager createDefaultManager()
Creates a ParserManager pre-registered with all the default ParserFactories needed to create a UINode.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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