Package org.apache.abdera.filter
Interface ParseFilter
-
- All Superinterfaces:
java.lang.Cloneable,java.io.Serializable
- All Known Subinterfaces:
ListParseFilter
public interface ParseFilter extends java.lang.Cloneable, java.io.SerializableParseFilter's determine which elements and attributes are acceptable within a parsed document. They are set via the ParserOptions.setParseFilter method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptable(javax.xml.namespace.QName qname)Returns true if elements with the given QName are acceptablebooleanacceptable(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 acceptablejava.lang.Objectclone()Clone this ParseFilterbooleangetIgnoreComments()Return true if the parser should ignore commentsbooleangetIgnoreProcessingInstructions()Return true if the parser should ignore processing instructionsbooleangetIgnoreWhitespace()Return true if the parser should ignore insignificant whitespaceParseFiltersetIgnoreComments(boolean ignore)True if the parser should ignore commentsParseFiltersetIgnoreProcessingInstructions(boolean ignore)True if the parser should ignore processing instructionsParseFiltersetIgnoreWhitespace(boolean ignore)True if the parser should ignore insignificant whitespace
-
-
-
Method Detail
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone this ParseFilter- Throws:
java.lang.CloneNotSupportedException
-
acceptable
boolean acceptable(javax.xml.namespace.QName qname)
Returns true if elements with the given QName are acceptable
-
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
-
getIgnoreComments
boolean getIgnoreComments()
Return true if the parser should ignore comments
-
getIgnoreWhitespace
boolean getIgnoreWhitespace()
Return true if the parser should ignore insignificant whitespace
-
getIgnoreProcessingInstructions
boolean getIgnoreProcessingInstructions()
Return true if the parser should ignore processing instructions
-
setIgnoreComments
ParseFilter setIgnoreComments(boolean ignore)
True if the parser should ignore comments
-
setIgnoreWhitespace
ParseFilter setIgnoreWhitespace(boolean ignore)
True if the parser should ignore insignificant whitespace
-
setIgnoreProcessingInstructions
ParseFilter setIgnoreProcessingInstructions(boolean ignore)
True if the parser should ignore processing instructions
-
-