org.exist.storage.serializers
Class XIncludeFilter
java.lang.Object
org.exist.storage.serializers.XIncludeFilter
- All Implemented Interfaces:
- Receiver
public class XIncludeFilter
- extends Object
- implements Receiver
A filter that listens for XInclude elements in the stream
of events generated by the Serializer
.
XInclude elements are expanded at the position where they were found.
Method Summary |
void |
attribute(QName qname,
String value)
|
void |
cdataSection(char[] ch,
int start,
int len)
|
void |
characters(CharSequence seq)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
documentType(String name,
String publicId,
String systemId)
|
void |
endDocument()
|
void |
endElement(QName qname)
|
void |
endPrefixMapping(String prefix)
|
Document |
getDocument()
|
Receiver |
getReceiver()
|
void |
highlightText(CharSequence seq)
|
void |
processingInstruction(String target,
String data)
|
void |
setCurrentNode(StoredNode node)
|
void |
setDocument(DocumentImpl doc)
|
void |
setReceiver(Receiver handler)
|
void |
startDocument()
|
void |
startElement(QName qname,
AttrList attribs)
|
void |
startPrefixMapping(String prefix,
String uri)
|
XINCLUDE_NS
public static final String XINCLUDE_NS
- See Also:
- Constant Field Values
XIncludeFilter
public XIncludeFilter(Serializer serializer,
Receiver receiver)
XIncludeFilter
public XIncludeFilter(Serializer serializer)
setReceiver
public void setReceiver(Receiver handler)
getReceiver
public Receiver getReceiver()
setDocument
public void setDocument(DocumentImpl doc)
characters
public void characters(CharSequence seq)
throws SAXException
- Specified by:
characters
in interface Receiver
- Throws:
SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
comment
in interface Receiver
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface Receiver
- Throws:
SAXException
- See Also:
ContentHandler.endDocument()
endElement
public void endElement(QName qname)
throws SAXException
- Specified by:
endElement
in interface Receiver
- Throws:
SAXException
- See Also:
Receiver.endElement(org.exist.dom.QName)
endPrefixMapping
public void endPrefixMapping(String prefix)
throws SAXException
- Specified by:
endPrefixMapping
in interface Receiver
- Throws:
SAXException
processingInstruction
public void processingInstruction(String target,
String data)
throws SAXException
- Specified by:
processingInstruction
in interface Receiver
- Throws:
SAXException
- See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)
cdataSection
public void cdataSection(char[] ch,
int start,
int len)
throws SAXException
- Specified by:
cdataSection
in interface Receiver
- Throws:
SAXException
- See Also:
Receiver.cdataSection(char[], int, int)
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface Receiver
- Throws:
SAXException
- See Also:
ContentHandler.startDocument()
attribute
public void attribute(QName qname,
String value)
throws SAXException
- Specified by:
attribute
in interface Receiver
- Throws:
SAXException
startElement
public void startElement(QName qname,
AttrList attribs)
throws SAXException
- Specified by:
startElement
in interface Receiver
- Throws:
SAXException
documentType
public void documentType(String name,
String publicId,
String systemId)
throws SAXException
- Specified by:
documentType
in interface Receiver
- Throws:
SAXException
highlightText
public void highlightText(CharSequence seq)
- Specified by:
highlightText
in interface Receiver
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Specified by:
startPrefixMapping
in interface Receiver
- Throws:
SAXException
- See Also:
ContentHandler.startPrefixMapping(java.lang.String, java.lang.String)
setCurrentNode
public void setCurrentNode(StoredNode node)
- Specified by:
setCurrentNode
in interface Receiver
getDocument
public Document getDocument()
- Specified by:
getDocument
in interface Receiver
Copyright (C) Wolfgang Meier. All rights reserved.