/** * Assign the underlying node filter's subordinate filters. * @param filters The filters to insert into the underlying node filter. */ public void setSubNodeFilters (NodeFilter[] filters) { mFilter.setPredicates (filters); }
/** * Set the search pattern. * @param pattern The pattern to set. */ public void setPattern (String pattern) { mPattern = pattern; setUpperPattern (); }
/** * Creates a new instance of HasSiblingFilter that accepts nodes * with sibling acceptable to the filter. * @param filter The filter to apply to the sibling. */ public HasSiblingFilter (NodeFilter filter) { setSiblingFilter (filter); }
/** * Get the underlying node filter object. * @return The node filter object suitable for serialization. */ public NodeFilter getNodeFilter () { HasAttributeFilter ret; ret = new HasAttributeFilter (); ret.setAttributeName (mFilter.getAttributeName ()); ret.setAttributeValue (mFilter.getAttributeValue ()); return (ret); }
/** * Get the underlying node filter object. * @return The node filter object suitable for serialization. */ public NodeFilter getNodeFilter () { NodeClassFilter ret; ret = new NodeClassFilter (); ret.setMatchClass (mFilter.getMatchClass ()); return (ret); }
/** * 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); }
/** * Assign the underlying node filter's subordinate filters. * @param filters The filters to insert into the underlying node filter. */ public void setSubNodeFilters (NodeFilter[] filters) { mFilter.setPredicates (filters); }
/** * 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.setChildFilter (filters[0]); else mFilter.setChildFilter (null); }
/** * Get the underlying node filter's subordinate filters. * @return The node filter object's contained filters. */ public NodeFilter[] getSubNodeFilters () { return (mFilter.getPredicates ()); }
/** * Get the underlying node filter's subordinate filters. * @return The node filter object's contained filters. */ public NodeFilter[] getSubNodeFilters () { return (mFilter.getPredicates ()); }
/** * Creates a new instance of an AndFilter. * With no predicates, this would always answer <code>true</code> * to {@link #accept}. * @see #setPredicates */ public AndFilter () { setPredicates (null); }
/** * Set the locale for uppercase conversion. * @param locale The locale to set. */ public void setLocale (Locale locale) { mLocale = locale; setUpperPattern (); }
/** * Creates a new instance of HasSiblingFilter that accepts nodes * with sibling acceptable to the filter. * @param filter The filter to apply to the sibling. */ public HasSiblingFilter (NodeFilter filter) { setSiblingFilter (filter); }
/** * 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 an OrFilter. * With no predicates, this would always answer <code>false</code> * to {@link #accept}. * @see #setPredicates */ public OrFilter () { setPredicates (null); }
/** * Creates an AndFilter that accepts nodes acceptable to all given filters. * @param predicates The list of filters. */ public AndFilter (NodeFilter[] predicates) { setPredicates (predicates); }
/** * Set case sensitivity on or off. * @param sensitive If <code>false</code> searches for the * string are case insensitive. */ public void setCaseSensitive (boolean sensitive) { mCaseSensitive = sensitive; setUpperPattern (); }
/** * 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.setSiblingFilter (filters[0]); else mFilter.setSiblingFilter (null); }
/** * Creates a new instance of an AndFilter. * With no predicates, this would always answer <code>true</code> * to {@link #accept}. * @see #setPredicates */ public AndFilter () { setPredicates (null); }
/** * Set the locale for uppercase conversion. * @param locale The locale to set. */ public void setLocale (Locale locale) { mLocale = locale; setUpperPattern (); }