org.apache.cocoon.components.xpointer
Class XPointerContext
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.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 $
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 |
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 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,
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.