No subject


Wed Sep 1 02:40:34 PDT 2004


 * <p>
 * <code>ContentFilter</code> is a general purpose <code>Filter</code>
 * representing all legal JDOM objects and allows the ability to set
 * and unset the visiblity of these objects.  Filtering is accomplished by
 * way of a filtering mask in which each bit represents whether a JDOM
 * object is visible or not.
 * </p>
 *
 * <p>
 * For example to view all Text and CDATA nodes in the content of element x.
 * <pre><code>
 *      Filter filter = new ContentFilter(ContentFilter.TEXT |
 *                                        ContentFilter.CDATA);
 *      List content = x.getContent(filter);
 * </code></pre>
 * </p>
 *
 * <p>
 * For those who don't like bit-masking, set methods are provided as an
 * alternative.  For example to allow everything except Comment nodes.
 * <pre><code>
 *      Filter filter =  new ContentFilter();
 *      filter.setCommentVisible(false);
 *      List content = x.getContent(filter);
 * </code></pre>
 * </p>
 *
 * <p>
 * The default is to allow all valid JDOM objects.
 * </p>

-jh-

===================================================================
File: no file ContentFilter.java		Status: Needs Checkout

   Working revision:	1.1	Tue Mar 12 07:00:50 2002
   Repository revision:	1.1	/home/cvspublic/jdom/src/java/org/jdom/filter/ContentFilter.java,v

   Existing Tags:
	No Tags Exist




More information about the jdom-commits mailing list