protected class CreateNewsletterFunction.NewsletterFilter extends XMLFilterImpl
Modifier and Type | Field and Description |
---|---|
private String |
_contentId |
private Map<String,AutomaticNewsletterFilterResult> |
_filterResults |
private boolean |
_ignore |
private int |
_ignoreDepth |
private boolean |
_ignoreNextLevel |
private boolean |
_processAutoSections |
private SourceResolver |
_srcResolver |
Constructor and Description |
---|
NewsletterFilter(XMLReader xmlReader,
SourceResolver sourceResolver,
boolean processAutoSections,
Map<String,AutomaticNewsletterFilterResult> filterResults,
String contentId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
_copyStartElementAttributes(Attributes atts,
AttributesImpl newAtts) |
private SaxBuffer |
_getFilterContent(List<String> contentIds,
String level,
String metadataSetName) |
private void |
_handleIgnoreIfEmpty(String ignoreIfEmpty) |
private SaxBuffer |
_handleInsertFilter(String insertFilter,
String insertFilterLevel,
SaxBuffer saxBuffer) |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts) |
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
private SourceResolver _srcResolver
private String _contentId
private boolean _processAutoSections
private Map<String,AutomaticNewsletterFilterResult> _filterResults
private boolean _ignore
private boolean _ignoreNextLevel
private int _ignoreDepth
public NewsletterFilter(XMLReader xmlReader, SourceResolver sourceResolver, boolean processAutoSections, Map<String,AutomaticNewsletterFilterResult> filterResults, String contentId)
xmlReader
- the parent XML reader.sourceResolver
- the source resolver.filterResults
- the filter results.processAutoSections
- true to process auto sections, false to ignore them.contentId
- the newsletter content ID.public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class XMLFilterImpl
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
private void _handleIgnoreIfEmpty(String ignoreIfEmpty)
private SaxBuffer _handleInsertFilter(String insertFilter, String insertFilterLevel, SaxBuffer saxBuffer) throws SAXException
SAXException
private void _copyStartElementAttributes(Attributes atts, AttributesImpl newAtts)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class XMLFilterImpl
SAXException
private SaxBuffer _getFilterContent(List<String> contentIds, String level, String metadataSetName) throws SAXException
SAXException