|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.wikimodel.wem.xhtml.filter.DefaultXMLFilter
org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter
org.xwiki.rendering.internal.parser.wikimodel.xhtml.XWikiXHTMLWhitespaceXMLFilter
public class XWikiXHTMLWhitespaceXMLFilter
Extension to the WikiModel XHTMLWhitespaceXMLFilter
to support both the ability to not remove spaces inside
XHTML elements containing wiki syntax (we only trim leading and trailing spaces) and to handle XWiki special XHTML
comment placeholders (for recognizing links, images, etc).
Field Summary | |
---|---|
static java.lang.String |
SAX_CONTAINS_WIKI_SYNTAX_PROPERTY
The SAX property controlling whether XHTML elements can contain wiki syntax or not. |
Fields inherited from class org.wikimodel.wem.xhtml.filter.DefaultXMLFilter |
---|
SAX_LEXICAL_HANDLER_PROPERTY |
Constructor Summary | |
---|---|
XWikiXHTMLWhitespaceXMLFilter(org.xml.sax.XMLReader reader)
|
Method Summary | |
---|---|
protected void |
cleanContentExtraWhiteSpaces()
|
void |
endCDATA()
|
protected boolean |
isSemanticComment(java.lang.String comment)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
protected boolean |
shouldRemoveWhiteSpaces()
|
Methods inherited from class org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter |
---|
appendInlineEvent, characters, comment, endDocument, endElement, endEmptyVisibleElement, endNonVisibleElement, flushContent, flushContent, getContent, sendCharacters, sendCharacters, sendInlineEvent, sendPreviousContent, startCDATA, startElement, startEmptyVisibleElement, startNonVisibleElement, trimLeadingWhiteSpaces, trimLeadingWhiteSpaces, trimTrailingWhiteSpaces, trimTrailingWhiteSpaces |
Methods inherited from class org.wikimodel.wem.xhtml.filter.DefaultXMLFilter |
---|
endDTD, endEntity, getProperty, parse, startDTD, startEntity |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SAX_CONTAINS_WIKI_SYNTAX_PROPERTY
Constructor Detail |
---|
public XWikiXHTMLWhitespaceXMLFilter(org.xml.sax.XMLReader reader)
XHTMLWhitespaceXMLFilter.XHTMLWhitespaceXMLFilter(XMLReader)
Method Detail |
---|
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setProperty
in interface org.xml.sax.XMLReader
setProperty
in class org.wikimodel.wem.xhtml.filter.DefaultXMLFilter
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
DefaultXMLFilter.setProperty(String, Object)
public void endCDATA() throws org.xml.sax.SAXException
endCDATA
in interface org.xml.sax.ext.LexicalHandler
endCDATA
in class org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter
org.xml.sax.SAXException
XHTMLWhitespaceXMLFilter.endCDATA()
protected boolean shouldRemoveWhiteSpaces()
shouldRemoveWhiteSpaces
in class org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter
XHTMLWhitespaceXMLFilter.shouldRemoveWhiteSpaces()
protected void cleanContentExtraWhiteSpaces()
cleanContentExtraWhiteSpaces
in class org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter
XHTMLWhitespaceXMLFilter.cleanContentExtraWhiteSpaces()
protected boolean isSemanticComment(java.lang.String comment)
isSemanticComment
in class org.wikimodel.wem.xhtml.filter.XHTMLWhitespaceXMLFilter
XHTMLWhitespaceXMLFilter.isSemanticComment(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |