Examples of accepts()


Examples of org.eclipse.debug.internal.ui.launchConfigurations.LaunchHistory.accepts()

      ILaunchConfiguration configuration = (ILaunchConfiguration) inputElement;
      for (int i = 0; i < groups.length; i++) {
        ILaunchGroup extension = groups[i];
        LaunchHistory history = getLaunchConfigurationManager().getLaunchHistory(
                extension.getIdentifier());
        if (history != null && history.accepts(configuration)) {
          possibleGroups.add(extension);
        }
      }
      return possibleGroups.toArray();
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.photographs.PhotographFilterBean.accepts()

        PhotographFilterBean filter = getRenderedObject("historyFilter");
        Set<Photograph> photos = rootDomainObject.getPhotographsSet();
        SortedMap<Person, UserHistory> history = new TreeMap<Person, UserHistory>();

        for (Photograph photograph : photos) {
            if (filter.accepts(photograph)) {
                Person person = photograph.getPerson();
                if (history.containsKey(person)) {
                    history.get(person).addPhotograph(photograph);
                } else {
                    UserHistory user = new UserHistory(person);
View Full Code Here

Examples of org.gatein.management.api.PathAddress.accepts()

                    filter = PathTemplateFilter.parse(operationContext.getAttributes().getValues("filter"));
                } catch (ParseException e) {
                    throw new OperationException(operationContext.getOperationName(), "Could not parse filter attributes.", e);
                }

                if (pageAddress.accepts(filter)) {
                    pageExportTask.addPageName(page.getName());
                }
            } else if (pageName.equals(page.getName())) {
                pageExportTask.addPageName(page.getName());
            }
View Full Code Here

Examples of org.geotools.coverage.grid.io.AbstractGridFormat.accepts()

  private static GridFormatFactorySpi getFactoryForObject(URL id, File file) {
    for(GridFormatFactorySpi spi: GDALFormatProvider.factories.values())
    { 
      //we know that the factory is avaiable
      final AbstractGridFormat format = (AbstractGridFormat) spi.createFormat();
      if (file!=null&&format.accepts(file))
        return spi;
      if(id!=null&&format.accepts(id))
        return spi;
    }
    return null;
View Full Code Here

Examples of org.geotools.coverage.io.grib.GRIBFormat.accepts()

        Assert.assertTrue(NetCDFUtilities.isGribAvailable());
        // Selection of the input file
        File file = TestData.file(this, "sampleGrib.grb2");
        // Check if the grib file is accepted by the NetCDF driver
        AbstractGridFormat format = new GRIBFormat();
        Assert.assertTrue(format.accepts(file));
        // Check if the netcdf reader spi object can read the input file
        ImageReaderSpi spi = new NetCDFImageReaderSpi();
        Assert.assertTrue(spi.canDecodeInput(file));
    }
   
View Full Code Here

Examples of org.geotools.coverageio.gdal.BaseGDALGridFormat.accepts()

        final File file = TestData.file(this, fileName);
       
        final MrSIDFormatFactory factory = new MrSIDFormatFactory();
        final BaseGDALGridFormat format = (BaseGDALGridFormat) factory.createFormat();
       
        Assert.assertTrue(format.accepts(file));
        MrSIDReader reader = (MrSIDReader) format.getReader(file);
       
        final int numImages = reader.getGridCoverageCount();
        final boolean hasMoreGridCoverages = reader.hasMoreGridCoverages();
        Assert.assertEquals(1, numImages);
View Full Code Here

Examples of org.geotools.coverageio.jp2k.JP2KFormat.accepts()

            LOGGER.warning("test-data not found: sample.jp2 \nTests are skipped");
            return;
        }

        final JP2KFormat format= factorySpi.createFormat();
        assertTrue(format.accepts(file));
       
       
        // //
        //
        // Setting several parameters
View Full Code Here

Examples of org.geotools.data.simple.SimpleFeatureCollection.accepts()

           
            store.setTransaction( transaction );
           
            ProgressListener progessListener = GeoToolsAdapters.progress( SubMonitor.convert(monitor,"processing "+source.getName(), 90));         //$NON-NLS-1$

            output.accepts(new FeatureVisitor(){
                boolean warning = true;
                public void visit( Feature rawFeature ) {
                    SimpleFeature feature = (SimpleFeature) rawFeature;
                    String fid = feature.getID();
                   
View Full Code Here

Examples of org.geotools.feature.FeatureCollection.accepts()

        // load shapefile end (docs marker)

        final SpatialIndex index = new STRtree();
        FeatureCollection features = source.getFeatures();
        System.out.println("Slurping in features ...");
        features.accepts(new FeatureVisitor() {

            @Override
            public void visit(Feature feature) {
                SimpleFeature simpleFeature = (SimpleFeature) feature;
                Geometry geom = (MultiLineString) simpleFeature.getDefaultGeometry();
View Full Code Here

Examples of org.geotools.feature.collection.FilteringSimpleFeatureCollection.accepts()

    }
   
    public void testVisitor() throws IOException {
        Filter filter = ff.equal(ff.property("someAtt"), ff.literal("1"), false);
        SimpleFeatureCollection collection = new FilteringSimpleFeatureCollection(delegate, filter);
        collection.accepts(new FeatureVisitor() {
           
            public void visit(Feature feature) {
                assertEquals(1, feature.getProperty("someAtt").getValue());
               
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.