org.apache.cocoon.components.xpointer
Class XPointerContext

java.lang.Object
  extended by org.apache.cocoon.components.xpointer.XPointerContext
All Implemented Interfaces:
PrefixResolver

public class XPointerContext
extends Object
implements PrefixResolver

A context object used during the evaluating of XPointers.


Constructor Summary
XPointerContext(String xpointer, Source source, XMLConsumer xmlConsumer, Logger logger, ServiceManager manager)
          Constructs an XPointerContext object.
 
Method Summary
 void addPrefix(String prefix, String namespace)
           
 Document getDocument()
           
 Logger getLogger()
           
 ServiceManager getServiceManager()
           
 Source getSource()
           
 XMLConsumer getXmlConsumer()
           
 String getXPointer()
           
 String prefixToNamespace(String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPointerContext

public XPointerContext(String xpointer,
                       Source source,
                       XMLConsumer xmlConsumer,
                       Logger logger,
                       ServiceManager manager)
Constructs an XPointerContext object.

Parameters:
xpointer - the original fragment identifier string, used for debugging purposes
source - the source into which the xpointer points
xmlConsumer - the consumer to which the result of the xpointer evaluation should be send
Method Detail

getDocument

public Document getDocument()
                     throws SAXException,
                            ResourceNotFoundException
Throws:
SAXException
ResourceNotFoundException

getSource

public Source getSource()

getXmlConsumer

public XMLConsumer getXmlConsumer()

getLogger

public Logger getLogger()

getXPointer

public String getXPointer()

getServiceManager

public ServiceManager getServiceManager()

addPrefix

public void addPrefix(String prefix,
                      String namespace)
               throws SAXException
Throws:
SAXException

prefixToNamespace

public String prefixToNamespace(String prefix)
Specified by:
prefixToNamespace in interface PrefixResolver


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.