/** * Accessor method for fid set as Strings. * * @return the internally stored fids. */ public Set<String> getFidsSet() { return fids(); }
/** * Returns all the fids in this filter. * * @return An array of all the fids in this filter. * @deprecated use {@link #getIDs()} */ public final String[] getFids() { return (String[]) fids().toArray(new String[0]); }
/** * Accessor method for fid set as Strings. * * @return the internally stored fids. */ public Set getFidsSet() { return fids(); }
/** * Accessor method for fid set as Strings. * * @return the internally stored fids. */ public Set getFidsSet() { return fids(); }
/** * Returns all the fids in this filter. * * @return An array of all the fids in this filter. * * @deprecated use {@link #getIDs()} */ public final String[] getFids() { return (String[]) fids().toArray(new String[0]); }
/** * Returns all the fids in this filter. * * @return An array of all the fids in this filter. * * @deprecated use {@link #getIDs()} */ public final String[] getFids() { return (String[]) fids().toArray(new String[0]); }
/** * Determines whether or not the given feature's ID matches this filter. * <p> * In order to get the object's ID, the {@link PropertyAccessor} capable of * dealing with <code>feature</code> has to support the request of the * expression <code>"@id"</code> * </p> * * @param feature * Specified feature to examine. * * @return <tt>true</tt> if the feature's ID matches an fid held by this * filter, <tt>false</tt> otherwise. * @see SimpleFeaturePropertyAccessorFactory */ public boolean evaluate(Object feature) { if (feature == null) { return false; } final Set fids = fids(); final String attPath = "@id"; PropertyAccessor accessor = PropertyAccessors.findPropertyAccessor(feature, attPath, null, null); if (accessor == null) { return false; } Object id = accessor.get(feature, attPath, null); return fids.contains(id); }