Tabnine Logo
AbstractDataStoreFactory.canProcess
Code IndexAdd Tabnine to your IDE (free)

How to use
canProcess
method
in
org.geotools.data.AbstractDataStoreFactory

Best Java code snippets using org.geotools.data.AbstractDataStoreFactory.canProcess (Showing top 7 results out of 315)

origin: org.geotools/gt-solr

  @Override
  public boolean canProcess(Map params) {
    if (!super.canProcess(params)) {
      return false; // fail basic param check
    }
    return true;
  }
}
origin: org.geotools/gt2-postgis-versioned

public boolean canProcess(Map params) {
  if (!super.canProcess(params)) {
    return false; // was not in agreement with getParametersInfo
  }
  return ((String) params.get("dbtype")).equalsIgnoreCase("postgis-versioned");
}
origin: org.geotools/gt-jdbc

public boolean canProcess(Map params) {
  if (!super.canProcess(params)) {
    return false; // was not in agreement with getParametersInfo
  }
  return checkDBType(params);
}

origin: org.geotools/gt-postgis

if( !super.canProcess( params ) ){
  return false; // was not in agreement with getParametersInfo
origin: org.geotools/gt-jdbc-core

public boolean canProcess(Map params) {
  if (!super.canProcess(params)) {
    return false; // was not in agreement with getParametersInfo
  }
  String type;
  try {
    type = (String) DBTYPE.lookUp(params);
    if (getDatabaseID().equals(type)) {
      return true;
    }
    return false;
  } catch (IOException e) {
    return false;
  }
}
origin: org.geotools/gt-shapefile

if (!super.canProcess(params)) {
  return false; // fail basic param check
origin: org.geotools/gt-shapefile-old

if (!super.canProcess(params)) {
  return false; // fail basic param check
org.geotools.dataAbstractDataStoreFactorycanProcess

Javadoc

Default implementation verifies the Map against the Param information.

It will ensure that:

  • params is not null
  • Everything is of the correct type (or upcovertable to the correct type without Error)
  • Required Parameters are present

Why would you ever want to override this method? If you want to check that a expected file exists and is a directory. Overrride:

 
public boolean canProcess( Map params ) { 
if( !super.canProcess( params ) ){ 
return false; // was not in agreement with getParametersInfo 
} 
// example check 
File file = (File) DIRECTORY.lookup( params ); // DIRECTORY is a param 
return file.exists() && file.isDirectory(); 
} 

Popular methods of AbstractDataStoreFactory

  • getDescription
  • getDisplayName
    Default Implementation abuses the naming convention. Will return Foo fororg.geotools.data.foo.FooFac
  • getParametersInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • ImageIO (javax.imageio)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
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