/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2011, Open Source Geospatial Foundation (OSGeo)
* (C) 2005 Open Geospatial Consortium Inc.
*
* All Rights Reserved. http://www.opengis.org/legal/
*/
package org.opengis.filter;
import java.util.Set;
import org.opengis.filter.identity.Identifier;
/**
* A filter that passes only the Identifiers listed.
* <p>
* This application of this filter for Features is well established:
* <ul>
* <li>FeatureId - used for GML2 Features</li>
* <li>GeometryId - used for GML3 Features and Geometry constructs</li>
* </ul>
* We also have the following identifiers:
* <ul>
* <li>RecordId - from CSW-2</li>
* <li>ObjectId - from CSW-2</li>
* </ul>
* <p>
* You can check what kind of Identifiers are supported using:<pre><code>
* idCapabilities.hasFID() == true; // for FeatureId
* idCapabilities.hasEID() == true; // no idea ...
* </code></pre>
*
* @author Chris Dillard (SYS Technologies)
* @author Justin Deoliveira (The Open Planning Project)
*
* @source $URL: http://svn.osgeo.org/geotools/branches/2.7.x/modules/library/opengis/src/main/java/org/opengis/filter/Id.java $
*/
public interface Id extends Filter {
/**
* Set of IDs representing the Identifiers used by this filter.
*/
Set<Object> getIDs();
/**
* Returns the set of identifiers used by this filter.
*/
Set<Identifier> getIdentifiers();
}