Main Page   Packages   Namespace List   Class Hierarchy   Compound List   Compound Members  

ElementFilter Class Reference

Inheritance diagram for ElementFilter::

Filter List of all members.

Public Methods

 ElementFilter ()
 ElementFilter (String name)
 ElementFilter (Namespace namespace)
 ElementFilter (String name, Namespace namespace)
boolean canAdd (Object obj)
boolean canRemove (Object obj)
boolean matches (Object obj)
boolean equals (Object obj)

Protected Attributes

String name

Detailed Description

The ElementFilter when applied to a FilterList will only allow Elements to be visible.

Author:
Jools Enticknap , Bradley S. Huffman
Version:
Revision:
1.4
,
Date:
2002/02/05 10:07:43


Constructor & Destructor Documentation

ElementFilter::ElementFilter   [inline]
 

Filter out the Elements.

ElementFilter::ElementFilter String    name [inline]
 

Filter out the Elements with the supplied name in any Namespace.

Parameters:
name  The name of the Element.

ElementFilter::ElementFilter Namespace    namespace [inline]
 

Filter out the Elements with the supplied Namespace.

Parameters:
namespace  The namespace the Element lives in.

ElementFilter::ElementFilter String    name,
Namespace    namespace
[inline]
 

Filter out the Elements with the supplied name and Namespace.

Parameters:
name  The name of the Element.
namespace  The namespace the Element lives in.


Member Function Documentation

boolean ElementFilter::canAdd Object    obj [inline]
 

Only allow the adding of Element objects.

Parameters:
obj  The object to verify.
Returns:
true if the object can be added.
Exceptions:
IllegalAddException  if the object can be added.

Reimplemented from Filter.

boolean ElementFilter::canRemove Object    obj [inline]
 

Check to see if the object can be removed from the list.

Parameters:
obj  The object to verify.
Returns:
true if the object can be removed.

Reimplemented from Filter.

boolean ElementFilter::equals Object    obj [inline]
 

Returns true if object is instance of ElementFilter and has the same parent Element, name, and namespace as this filter.

Returns:
true if the Filters are equal

boolean ElementFilter::matches Object    obj [inline]
 

Check to see if the object matches a predefined set of rules.

Parameters:
obj  The object to verify.
Returns:
true if the objected matched a predfined set of rules.

Reimplemented from Filter.


Member Data Documentation

String ElementFilter::name [protected]
 

The element name


The documentation for this class was generated from the following file:
Generated on Sat Mar 30 18:53:03 2002 for JDOM by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001