org.apache.cocoon.components.xpointer
Class XPointerContext

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.components.xpointer.XPointerContext
All Implemented Interfaces:
PrefixResolver

public class XPointerContext
extends org.apache.cocoon.util.AbstractLogEnabled
implements PrefixResolver

A context object used during the evaluating of XPointers.

Version:
$Id: XPointerContext.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
XPointerContext(String xpointer, Source source, org.apache.cocoon.xml.XMLConsumer xmlConsumer, ServiceManager manager)
          Constructs an XPointerContext object.
 
Method Summary
 void addPrefix(String prefix, String namespace)
           
 Document getDocument()
           
 ServiceManager getServiceManager()
           
 Source getSource()
           
 org.apache.cocoon.xml.XMLConsumer getXmlConsumer()
           
 String getXPointer()
           
 String prefixToNamespace(String prefix)
           
 
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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,
                       org.apache.cocoon.xml.XMLConsumer xmlConsumer,
                       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,
                            org.apache.cocoon.ResourceNotFoundException
Throws:
SAXException
org.apache.cocoon.ResourceNotFoundException

getSource

public Source getSource()

getXmlConsumer

public org.apache.cocoon.xml.XMLConsumer getXmlConsumer()

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-2008 The Apache Software Foundation. All Rights Reserved.