public class CompoundParseFilter extends AbstractParseFilter implements ParseFilter
A simple compound parse filter that allows us to apply multiple parse filters to a single parse operation.
CompoundParseFilter filter =
new CompoundParseFilter(
CompoundParseFilter.Condition.ACCEPTABLE_TO_ALL,
new SafeContentWhiteListParseFilter(),
new MyWhiteListParseFilter(),
new MySomeOtherKindOfParseFilter()
);
options.setParseFilter(filter);
| Modifier and Type | Class and Description |
|---|---|
static class |
CompoundParseFilter.Condition |
| Constructor and Description |
|---|
CompoundParseFilter(CompoundParseFilter.Condition condition,
ParseFilter... filters) |
CompoundParseFilter(ParseFilter... filters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptable(javax.xml.namespace.QName qname)
Returns true if elements with the given QName are acceptable
|
boolean |
acceptable(javax.xml.namespace.QName qname,
javax.xml.namespace.QName attribute)
Returns true if attributes with the given qname appearing on elements
with the given qname are acceptable
|
java.lang.Object |
clone()
Clone this ParseFilter
|
getIgnoreComments, getIgnoreProcessingInstructions, getIgnoreWhitespace, setIgnoreComments, setIgnoreProcessingInstructions, setIgnoreWhitespaceequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIgnoreComments, getIgnoreProcessingInstructions, getIgnoreWhitespace, setIgnoreComments, setIgnoreProcessingInstructions, setIgnoreWhitespacepublic CompoundParseFilter(CompoundParseFilter.Condition condition, ParseFilter... filters)
public CompoundParseFilter(ParseFilter... filters)
public boolean acceptable(javax.xml.namespace.QName qname)
ParseFilteracceptable in interface ParseFilterpublic boolean acceptable(javax.xml.namespace.QName qname,
javax.xml.namespace.QName attribute)
ParseFilteracceptable in interface ParseFilterpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
ParseFilterclone in interface ParseFilterclone in class AbstractParseFilterjava.lang.CloneNotSupportedExceptionCopyright © 2010 - 2019 Adobe. All Rights Reserved