org.apache.cocoon.components.xpointer
Class XPointerContext
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 purposessource
- the source into which the xpointer pointsxmlConsumer
- the consumer to which the result of the xpointer evaluation should be send
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.