Class DITAFilteringContentHandler
java.lang.Object
ro.sync.ecss.extensions.dita.conref.DITAFilteringContentHandler
- All Implemented Interfaces:
ContentHandler
,LexicalHandler
@API(type=INTERNAL,
src=PUBLIC)
public class DITAFilteringContentHandler
extends Object
implements ContentHandler, LexicalHandler
Content and lexical handler used to filter parser events outside
the given topic IDs path.
-
Constructor Summary
ConstructorsConstructorDescriptionDITAFilteringContentHandler
(String[] topicPath, String[] endRangePath, String sourceClass, boolean isKeyReference) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
comment
(char[] ch, int start, int length) void
endCDATA()
void
void
endDTD()
void
endElement
(String uri, String localName, String name) void
void
endPrefixMapping
(String prefix) void
ignorableWhitespace
(char[] ch, int start, int length) void
processingInstruction
(String target, String data) void
setContentHandler
(ContentHandler contentHandler) Set the wrapped content handler.void
setDocumentLocator
(Locator locator) void
setLexicalHandler
(LexicalHandler lexicalHandler) Set the wrapped lexical handler.void
skippedEntity
(String name) void
void
void
void
startElement
(String uri, String localName, String name, Attributes atts) void
startEntity
(String name) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DITAFilteringContentHandler
public DITAFilteringContentHandler(String[] topicPath, String[] endRangePath, String sourceClass, boolean isKeyReference) Constructor.- Parameters:
topicPath
- The topic IDs path. If null, the first encountered topic will be used.endRangePath
- If a "conrefend" is specified, this is the end range pathsourceClass
- The class attribute value of the element which makes the conref...isKeyReference
-true
if the reference is a key reference.
-
-
Method Details
-
setContentHandler
Set the wrapped content handler.- Parameters:
contentHandler
- The contentHandler to set.
-
setLexicalHandler
Set the wrapped lexical handler.- Parameters:
lexicalHandler
- The lexicalHandler to set.
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- See Also:
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startElement
public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-