org.jdom.filter
Interface Filter
- ContentFilter, ElementFilter
Classes which wish to modify the behaviour of the FilterList
can implement the list filter interface in order to reduce
the visibility of certain items in the list, or to restrict
the mutability of the list.
$Revision: 1.1 $, $Date: 2002/03/12 06:53:57 $- Jools Enticknap
- Bradley S. Huffman
boolean | canAdd(Object obj) -
Check to see if the object can be added to the list.
|
boolean | canRemove(Object obj) -
Check to see if the object can be removed from the list.
|
boolean | matches(Object obj) -
Check to see if the object matches a predefined set of rules.
|
canAdd
public boolean canAdd(Object obj)
Check to see if the object can be added to the list.
obj
- The object to verify.
true
if the object can be added.
canRemove
public boolean canRemove(Object obj)
Check to see if the object can be removed from the list.
obj
- The object to verify.
true
if the object can be removed.
matches
public boolean matches(Object obj)
Check to see if the object matches a predefined set of rules.
obj
- The object to verify.
true
if the object matches a predfined
set of rules.
Copyright B) 2002 Jason Hunter, Brett McLaughlin. All Rights Reserved.