org.apache.myfaces.trinidadinternal.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.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/share/xml/ParseContext.java#0 $) $Date: 10-nov-2005.18:59:11 $
Author:
The Oracle ADF Faces Team

Method Summary
 java.lang.Object clone()
          Clones the ParseContext so that it can be used for a new set of parsing.
 ExpressionContext getExpressionContext()
          gets the bindingContext
 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)
          Deprecated. since 2.2.0 use getExpressionContext() and ExpressionContext.getPrefixMapper()
 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

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

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

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

getParserManager

ParserManager getParserManager()
Returns the parser manager.


getExpressionContext

ExpressionContext getExpressionContext()
gets the bindingContext


getNamespaceURI

@Deprecated
java.lang.String getNamespaceURI(java.lang.String prefix)
Deprecated. since 2.2.0 use getExpressionContext() and ExpressionContext.getPrefixMapper()

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

org.xml.sax.Locator getLocator()
Return a SAX Locator object for identifying the document location.

Returns:
a locator, or null if none is available

getXMLProvider

XMLProvider getXMLProvider()
Get an XMLProvider.


getProperty

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


setProperty

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


clone

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



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.