/** * Creates a new instance of a NotFilter. * With no predicates, this would always return <code>false</code> * from {@link #accept}. * @see #setPredicate */ public NotFilter () { setPredicate (null); }
/** * Creates a new instance of a NotFilter. * With no predicates, this would always return <code>false</code> * from {@link #accept}. * @see #setPredicate */ public NotFilter () { setPredicate (null); }
/** * Creates a NotFilter that accepts nodes not acceptable to the predicate. * @param predicate The filter to consult. */ public NotFilter (NodeFilter predicate) { setPredicate (predicate); }
/** * Creates a NotFilter that accepts nodes not acceptable to the predicate. * @param predicate The filter to consult. */ public NotFilter (NodeFilter predicate) { setPredicate (predicate); }
/** * Assign the underlying node filter's subordinate filters. * @param filters The filters to insert into the underlying node filter. */ public void setSubNodeFilters (NodeFilter[] filters) { if (0 != filters.length) mFilter.setPredicate (filters[0]); else mFilter.setPredicate (null); }
/** * Get the underlying node filter object. * @return The node filter object suitable for serialization. */ public NodeFilter getNodeFilter () { NodeFilter predicate; NotFilter ret; ret = new NotFilter (); predicate = mFilter.getPredicate (); if (null != predicate) ret.setPredicate (((Filter)predicate).getNodeFilter ()); return (ret); }