Tabnine Logo
FidFilter.addAllFids
Code IndexAdd Tabnine to your IDE (free)

How to use
addAllFids
method
in
org.geotools.filter.FidFilter

Best Java code snippets using org.geotools.filter.FidFilter.addAllFids (Showing top 2 results out of 315)

origin: org.geotools/gt-wfs

/**
 * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element,
 *      org.geotools.xml.schema.ElementValue[],
 *      org.xml.sax.Attributes, java.util.Map)
 */
public Object getValue(Element element, ElementValue[] value,
  Attributes attrs, Map hints)
  throws SAXException, SAXNotSupportedException {
  if ((element == null) || (value == null)
      || (element.getType() == null)) {
    throw new SAXException("Invalid parameters : null found");
  }
  if (value.length < 1) {
    throw new SAXException("Invalid children: too few");
  }
  if (!getName().equals(element.getType().getName())) {
    throw new SAXException("Invalid type name for element provided");
  }
  Set fidSet = new HashSet();
  for (int i = 0; i < value.length; i++)
    fidSet.addAll(Arrays.asList(
        ((FidFilter) value[i].getValue()).getFids()));
  FidFilter r = FilterFactoryFinder.createFilterFactory().createFidFilter();
  r.addAllFids(fidSet);
  return r;
}
origin: org.geotools/gt-wfs

/**
 * @see org.geotools.xml.schema.Type#getValue(org.geotools.xml.schema.Element,
 *      org.geotools.xml.schema.ElementValue[],
 *      org.xml.sax.Attributes, java.util.Map)
 */
public Object getValue(Element element, ElementValue[] value,
  Attributes attrs, Map hints)
  throws SAXException, SAXNotSupportedException {
  if ((element == null) || (value == null)
      || (element.getType() == null)) {
    throw new SAXException("Invalid parameters : null found");
  }
  if (value.length < 1) {
    throw new SAXException("Invalid children: too few");
  }
  if (!getName().equals(element.getType().getName())) {
    throw new SAXException("Invalid type name for element provided");
  }
  Set fidSet = new HashSet();
  for (int i = 0; i < value.length; i++)
    fidSet.addAll(Arrays.asList(
        ((FidFilter) value[i].getValue()).getFids()));
  FidFilter r = FilterFactoryFinder.createFilterFactory().createFidFilter();
  r.addAllFids(fidSet);
  return r;
}
org.geotools.filterFidFilteraddAllFids

Javadoc

Adds a collection of feature IDs to the filter.

Popular methods of FidFilter

  • getFids
    Returns all the fids in this filter.
  • addFid
    Adds a feature ID to the filter.
  • getIDs

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • BoxLayout (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now