Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.share.xml
Interface ParseContext

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ParseContextImpl

public interface ParseContext
extends java.lang.Cloneable

An interface providing contextual information for the current parse state.


Method Summary
 java.lang.Object clone()
          Clones the ParseContext so that it can be used for a new set of parsing.
 ErrorLog getErrorLog()
          Get an interface that can be used to log errors.
 ParserExtension getExtension(java.lang.String namespaceURI)
          Returns a parser extension.
 org.xml.sax.Locator getLocator()
          Return a SAX Locator object for identifying the document location.
 java.lang.String getNamespaceURI(java.lang.String prefix)
          Convert a string prefix to a full namespace URI.
 NodeParser getParser(java.lang.Class expectedType, java.lang.String namespaceURI, java.lang.String localName)
          Returns the default node parser that should be used for a specific element name, given the type of expected object.
 ParserManager getParserManager()
          Returns the parser manager.
 java.lang.Object getProperty(java.lang.String namespace, java.lang.Object key)
          Gets a property stored on the context.
 XMLProvider getXMLProvider()
          Get an XMLProvider.
 void setProperty(java.lang.String namespace, java.lang.Object key, java.lang.Object value)
          Stores a property on the context.
 

Method Detail

getParser

public NodeParser getParser(java.lang.Class expectedType,
                            java.lang.String namespaceURI,
                            java.lang.String localName)
Returns the default node parser that should be used for a specific element name, given the type of expected object.

Parameters:
expectedType - the Class of the Java object expected for this element
namespaceURI - the namespace of the XML element
localName - the local name of the XML element

getExtension

public ParserExtension getExtension(java.lang.String namespaceURI)
Returns a parser extension.

Parameters:
namespaceURI - the namespace of the XML element or attribute

getParserManager

public ParserManager getParserManager()
Returns the parser manager.

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
Convert a string prefix to a full namespace URI.
Parameters:
prefix - the string prefix of the namspace, or the empty string for the default namespace
Returns:
the URI of that namespace, or null if the prefix hasn't been mapped

getLocator

public org.xml.sax.Locator getLocator()
Return a SAX Locator object for identifying the document location.
Returns:
a locator, or null if none is available

getErrorLog

public ErrorLog getErrorLog()
Get an interface that can be used to log errors.

getXMLProvider

public XMLProvider getXMLProvider()
Get an XMLProvider.

getProperty

public java.lang.Object getProperty(java.lang.String namespace,
                                    java.lang.Object key)
Gets a property stored on the context.

setProperty

public void setProperty(java.lang.String namespace,
                        java.lang.Object key,
                        java.lang.Object value)
Stores a property on the context.

clone

public java.lang.Object clone()
Clones the ParseContext so that it can be used for a new set of parsing.
Overrides:
clone in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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