org.apache.abdera.util.filter
Class AbstractListParseFilter

java.lang.Object
  extended by org.apache.abdera.util.filter.AbstractParseFilter
      extended by org.apache.abdera.util.filter.AbstractListParseFilter
All Implemented Interfaces:
Serializable, Cloneable, ListParseFilter, ParseFilter
Direct Known Subclasses:
BlackListParseFilter, WhiteListParseFilter

public abstract class AbstractListParseFilter
extends AbstractParseFilter
implements Cloneable, ListParseFilter

ParseFilter's determine which elements and attributes are acceptable within a parsed document. They are set via the ParserOptions.setParseFilter method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.abdera.util.filter.AbstractParseFilter
flags
 
Constructor Summary
AbstractListParseFilter()
           
 
Method Summary
abstract  boolean acceptable(QName qname)
          Returns true if elements with the given QName are acceptable
abstract  boolean acceptable(QName qname, QName attribute)
          Returns true if attributes with the given qname appearing on elements with the given qname are acceptable
 ListParseFilter add(QName qname)
          Add an element QName to the parse filter
 ListParseFilter add(QName parent, QName attribute)
          Adds an attribute to the parse filter
 Object clone()
          Clone this ParseFilter
 boolean contains(QName qname)
          Returns true if the given qname has been added to the filter
 boolean contains(QName qname, QName attribute)
          Returns true if the given attribute has been added to the filter
 
Methods inherited from class org.apache.abdera.util.filter.AbstractParseFilter
getIgnoreComments, getIgnoreProcessingInstructions, getIgnoreWhitespace, setIgnoreComments, setIgnoreProcessingInstructions, setIgnoreWhitespace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.filter.ParseFilter
getIgnoreComments, getIgnoreProcessingInstructions, getIgnoreWhitespace, setIgnoreComments, setIgnoreProcessingInstructions, setIgnoreWhitespace
 

Constructor Detail

AbstractListParseFilter

public AbstractListParseFilter()
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from interface: ParseFilter
Clone this ParseFilter

Specified by:
clone in interface ParseFilter
Overrides:
clone in class AbstractParseFilter
Throws:
CloneNotSupportedException

add

public ListParseFilter add(QName qname)
Description copied from interface: ListParseFilter
Add an element QName to the parse filter

Specified by:
add in interface ListParseFilter

contains

public boolean contains(QName qname)
Description copied from interface: ListParseFilter
Returns true if the given qname has been added to the filter

Specified by:
contains in interface ListParseFilter

add

public ListParseFilter add(QName parent,
                           QName attribute)
Description copied from interface: ListParseFilter
Adds an attribute to the parse filter

Specified by:
add in interface ListParseFilter

contains

public boolean contains(QName qname,
                        QName attribute)
Description copied from interface: ListParseFilter
Returns true if the given attribute has been added to the filter

Specified by:
contains in interface ListParseFilter

acceptable

public abstract boolean acceptable(QName qname)
Description copied from interface: ParseFilter
Returns true if elements with the given QName are acceptable

Specified by:
acceptable in interface ParseFilter

acceptable

public abstract boolean acceptable(QName qname,
                                   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


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.