org.apache.cocoon.pipeline.component.xpointer
Class ShorthandPart
java.lang.Object
org.apache.cocoon.pipeline.component.xpointer.ShorthandPart
- All Implemented Interfaces:
- PointerPart
public final class ShorthandPart
- extends java.lang.Object
- implements PointerPart
Implements support for shorthand XPointers (= id-based lookup). We treat them here as if they
were a pointerpart too.
Note that although this is implemented here, this feature depends on the presence of a DTD,
and a validating parser. Currently, this means its unuseable within Cocoon.
|
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 |
ShorthandPart
public ShorthandPart(java.lang.String shorthand)
process
public boolean process(XPointerContext xpointerContext)
throws org.xml.sax.SAXException,
java.io.IOException
- 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:
org.xml.sax.SAXException
java.io.IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.