Examples of accepts()


Examples of org.geotools.gce.geotiff.GeoTiffFormat.accepts()

       
        try {
            ID id = new ID(url);
            File file = id.toFile();
       
            format.accepts(file);
           
        } catch (RuntimeException ex) {
            ex.printStackTrace();
        }
       
View Full Code Here

Examples of org.geotools.gce.imagemosaic.ImageMosaicFormat.accepts()

       
        // scan each subdirectory and try to build a mosaic in it, accumulate the resulting mosaics
        List<MosaicInfo> mosaics = new ArrayList<MosaicInfo>();
        ImageMosaicFormat mosaicFactory = new ImageMosaicFormat();
        for (File subdir : directories) {
            if(mosaicFactory.accepts(subdir, hints)) {
                if(LOGGER.isLoggable(Level.FINE)){
                    LOGGER.fine("Trying to build mosaic for the directory:"+subdir.getAbsolutePath());
                }               
                mosaics.add(new MosaicInfo(subdir, mosaicFactory.getReader(subdir, hints)));
            } else {
View Full Code Here

Examples of org.jboss.deployers.structure.spi.DeploymentUnitFilter.accepts()

public class DeploymentProvidedDeploymentUnitFilter extends VFS2BaseBridgeDeploymentUnitFilter
{
   protected boolean doAccepts(DeploymentUnit unit)
   {
      DeploymentUnitFilter filter = unit.getAttachment(DeploymentUnitFilter.class);
      return filter == null || filter.accepts(unit);
   }
}
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.filter.MavenResolutionFilter.accepts()

        for (final MavenResolvedArtifact artifact : artifactResults) {
            final MavenDependency dependency = MavenDependencies.createDependency(artifact.getCoordinate(),
                    ScopeType.COMPILE, false);
            // Empty lists OK here because we know the RestrictPOM Filter doesn't consult them
            if (postResolutionFilter.accepts(dependency, emptyList, emptyList)) {
                filteredArtifacts.add(artifact);
            }
        }
        return Collections.unmodifiableCollection(filteredArtifacts);
    }
View Full Code Here

Examples of org.jboss.shrinkwrap.resolver.api.maven.filter.ScopeFilter.accepts()

        final MavenResolutionFilter preResolutionFilter = new ScopeFilter(scopes);

        // For all declared dependencies which pass the filter, add 'em to the Set of dependencies to be resolved for
        // this request
        for (final MavenDependency candidate : dependencies) {
            if (preResolutionFilter.accepts(candidate, EMPTY_LIST, EMPTY_LIST)) {
                session.getDependenciesForResolution().add(candidate);
            }
        }
        return session;
View Full Code Here

Examples of org.jboss.varia.deployment.convertor.Convertor.accepts()

      // delegate accepts to convertors
      Iterator i = converterList.iterator();
      while(i.hasNext())
      {
         Convertor converter = (Convertor)i.next();
         if(converter.accepts(di.url))
         {
            return true;
         }
      }
      return false;
View Full Code Here

Examples of org.jboss.vfs.VirtualFileFilter.accepts()

    }

    @Test
    public void testBlackListFilter() {
        VirtualFileFilter blf = Filters.regexBlackList();
        assertFalse(blf.accepts(VFS.getChild("/foo/bar/baz/mgmt-users.properties")));
        assertFalse(blf.accepts(VFS.getChild("/foo/bar/baz/application-users.properties")));
    }

    @Test
    public void testXMLSanitizer() throws Exception {
View Full Code Here

Examples of org.jfree.data.statistics.SimpleHistogramBin.accepts()

    /**
     * Some checks for the accepts() method.
     */
    public void testAccepts() {
        SimpleHistogramBin bin1 = new SimpleHistogramBin(1.0, 2.0);
        assertFalse(bin1.accepts(0.0));
        assertTrue(bin1.accepts(1.0));
        assertTrue(bin1.accepts(1.5));
        assertTrue(bin1.accepts(2.0));
        assertFalse(bin1.accepts(2.1));
        assertFalse(bin1.accepts(Double.NaN));
View Full Code Here

Examples of org.jitterbit.integration.activity.client.filter.ActivityEntryFilter.accepts()

            return all;
        }
        List<T> ret = new ArrayList<T>();
        for (T t : all) {
            ActivityEntryFilter f = getFilter();
            if (f == null || f.accepts(t)) {
                ret.add(t);
            }
        }
        return ret;
    }
View Full Code Here

Examples of org.mokai.Acceptor.accepts()

    return connectorService;
  }

  public Acceptor buildAcceptor(boolean accepts) {
    Acceptor acceptor = mock(Acceptor.class);
    when(acceptor.accepts(any(Message.class))).thenReturn(accepts);

    return acceptor;
  }

  private class TestRouter extends AbstractRouter {
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.