org.apache.abdera.util.filter
Class BlackListParseFilter
java.lang.Object
org.apache.abdera.util.filter.AbstractParseFilter
org.apache.abdera.util.filter.AbstractListParseFilter
org.apache.abdera.util.filter.BlackListParseFilter
- All Implemented Interfaces:
- java.lang.Cloneable, ListParseFilter, ParseFilter
public class BlackListParseFilter
- extends AbstractListParseFilter
BlackList Implementation of ParseFilter. The QNames listed will be
considered unacceptable. In general, black list based filtering is
problematic, at best, due largely to the fact that it's easier to
define safe subsets of elements than it is to define unsafe subsets.
Method Summary |
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 |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlackListParseFilter
public BlackListParseFilter()
acceptable
public boolean acceptable(javax.xml.namespace.QName qname)
- Description copied from interface:
ParseFilter
- Returns true if elements with the given QName are acceptable
- Specified by:
acceptable
in interface ParseFilter
- Specified by:
acceptable
in class AbstractListParseFilter
acceptable
public boolean acceptable(javax.xml.namespace.QName qname,
javax.xml.namespace.QName attribute)
- Description copied from interface:
ParseFilter
- Returns true if attributes with the given qname appearing on elements
with the given qname are acceptable
- Specified by:
acceptable
in interface ParseFilter
- Specified by:
acceptable
in class AbstractListParseFilter