|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.xml.pipeline.EventFilter
gnu.xml.pipeline.XIncludeFilter
Filter to process an XPointer-free subset of
XInclude, supporting its
use as a kind of replacement for parsed general entities.
XInclude works much like the #include of C/C++ but
works for XML documents as well as unparsed text files.
Restrictions from the 16-May-2001 draft of XInclude are as follows:
XML documents that are included will normally be processed using
the default SAX namespace rules, meaning that prefix information may
be discarded. This may be changed with setSavingPrefixes().
TBD: "IURI" handling.
| Field Summary |
| Fields inherited from class gnu.xml.pipeline.EventFilter |
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI |
| Constructor Summary | |
XIncludeFilter(EventConsumer next)
|
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
SAX2: passes this callback to the next consumer, if any |
void |
comment(char[] ch,
int start,
int length)
SAX2: passes this callback to the next consumer, if any |
void |
endCDATA()
SAX2: passes this callback to the next consumer, if any |
void |
endDocument()
SAX2: passes this callback to the next consumer, if any |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
SAX2: passes this callback to the next consumer, if any |
void |
endEntity(java.lang.String name)
SAX2: passes this callback to the next consumer, if any. |
void |
endPrefixMapping(java.lang.String prefix)
SAX2: passes this callback to the next consumer, if any |
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
SAX2: passes this callback to the next consumer, if any |
int |
getColumnNumber()
Used for proxy locator; do not call directly. |
int |
getLineNumber()
Used for proxy locator; do not call directly. |
java.lang.String |
getPublicId()
Used for proxy locator; do not call directly. |
java.lang.String |
getSystemId()
Used for proxy locator; do not call directly. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
SAX2: passes this callback to the next consumer, if any |
boolean |
isSavingPrefixes()
Returns the flag controlling the setting of the SAX2 namespace-prefixes flag when parsing included documents. |
void |
processingInstruction(java.lang.String target,
java.lang.String value)
SAX2: passes this callback to the next consumer, if any |
void |
setDocumentLocator(Locator locator)
Passes "this" down the filter chain as a proxy locator. |
void |
setSavingPrefixes(boolean flag)
Assigns the flag controlling the setting of the SAX2 namespace-prefixes flag. |
void |
skippedEntity(java.lang.String name)
SAX2: passes this callback to the next consumer, if any |
void |
startCDATA()
SAX2: passes this callback to the next consumer, if any |
void |
startDocument()
SAX2: passes this callback to the next consumer, if any |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
SAX2: passes this callback to the next consumer, if any |
void |
startEntity(java.lang.String name)
SAX2: passes this callback to the next consumer, if any. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
SAX2: passes this callback to the next consumer, if any |
| Methods inherited from class gnu.xml.pipeline.EventFilter |
attributeDecl, bind, chainTo, elementDecl, endDTD, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, internalEntityDecl, notationDecl, setContentHandler, setDTDHandler, setErrorHandler, setProperty, startDTD, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XIncludeFilter(EventConsumer next)
throws SAXException
| Method Detail |
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class EventFilterpublic java.lang.String getSystemId()
getSystemId in interface LocatorLocator.getPublicId()public java.lang.String getPublicId()
getPublicId in interface LocatorLocator.getSystemId()public int getLineNumber()
getLineNumber in interface LocatorLocator.getColumnNumber()public int getColumnNumber()
getColumnNumber in interface LocatorLocator.getLineNumber()public void setSavingPrefixes(boolean flag)
public boolean isSavingPrefixes()
public void startDocument()
throws SAXException
EventFilter
startDocument in interface ContentHandlerstartDocument in class EventFilterSAXException
public void endDocument()
throws SAXException
EventFilter
endDocument in interface ContentHandlerendDocument in class EventFilterSAXException
public void externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws SAXException
EventFilter
externalEntityDecl in interface DeclHandlerexternalEntityDecl in class EventFilterSAXException
public void startEntity(java.lang.String name)
throws SAXException
EventFilter
startEntity in interface LexicalHandlerstartEntity in class EventFilterSAXException
public void endEntity(java.lang.String name)
throws SAXException
EventFilter
endEntity in interface LexicalHandlerendEntity in class EventFilterSAXException
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
Attributes atts)
throws SAXException
EventFilter
startElement in interface ContentHandlerstartElement in class EventFilterSAXException
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws SAXException
EventFilter
endElement in interface ContentHandlerendElement in class EventFilterSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
EventFilter
characters in interface ContentHandlercharacters in class EventFilterSAXException
public void processingInstruction(java.lang.String target,
java.lang.String value)
throws SAXException
EventFilter
processingInstruction in interface ContentHandlerprocessingInstruction in class EventFilterSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
EventFilter
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class EventFilterSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
EventFilter
comment in interface LexicalHandlercomment in class EventFilterSAXException
public void startCDATA()
throws SAXException
EventFilter
startCDATA in interface LexicalHandlerstartCDATA in class EventFilterSAXException
public void endCDATA()
throws SAXException
EventFilter
endCDATA in interface LexicalHandlerendCDATA in class EventFilterSAXException
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws SAXException
EventFilter
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class EventFilterSAXException
public void endPrefixMapping(java.lang.String prefix)
throws SAXException
EventFilter
endPrefixMapping in interface ContentHandlerendPrefixMapping in class EventFilterSAXException
public void skippedEntity(java.lang.String name)
throws SAXException
EventFilter
skippedEntity in interface ContentHandlerskippedEntity in class EventFilterSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2008-04-13.