org.apache.cocoon.components.xpointer
Class ElementPathPart

java.lang.Object
  extended by org.apache.cocoon.components.xpointer.ElementPathPart
All Implemented Interfaces:
PointerPart

public class ElementPathPart
extends Object
implements PointerPart

A custom XPointer scheme that allows to include the content of a specific element without building a DOM. The element must be specified using an absolute path reference such as /html/body. Namespace prefixes within these element names are supported.

This xpointer scheme will always be succesful (thus any further xpointer parts will never be executed).

The scheme name for this XPointer scheme is 'elementpath' and its namespace is http://apache.org/cocoon/xpointer.

See the samples for a usage example.


Nested Class Summary
static class ElementPathPart.PathInclusionPipe
           
 
Constructor Summary
ElementPathPart(String expression)
           
 
Method Summary
 boolean process(XPointerContext xpointerContext)
          If this pointer part successfully identifies any subresources, it should stream them to the XMLConsumer available from the XPointerContext and return true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementPathPart

public ElementPathPart(String expression)
Method Detail

process

public boolean process(XPointerContext xpointerContext)
                throws SAXException
Description copied from interface: PointerPart
If this pointer part successfully identifies any subresources, it should stream them to the XMLConsumer available from the XPointerContext and return true. Otherwise this method should return false.

Specified by:
process in interface PointerPart
Throws:
SAXException


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