Java 类weka.core.converters.AbstractLoader 实例源码

项目:repo.kmeanspp.silhouette_score    文件:ConverterFileChooser.java   
/**
 * filters out all non-core loaders if only those should be displayed.
 * 
 * @param list the list of filters to check
 * @return the filtered list of filters
 * @see #m_CoreConvertersOnly
 */
protected Vector<ExtensionFileFilter> filterNonCoreLoaderFileFilters(
  Vector<ExtensionFileFilter> list) {
  Vector<ExtensionFileFilter> result;
  int i;
  ExtensionFileFilter filter;
  AbstractLoader loader;

  if (!getCoreConvertersOnly()) {
    result = list;
  } else {
    result = new Vector<ExtensionFileFilter>();
    for (i = 0; i < list.size(); i++) {
      filter = list.get(i);
      loader = ConverterUtils
        .getLoaderForExtension(filter.getExtensions()[0]);
      if (ConverterUtils.isCoreFileLoader(loader.getClass().getName())) {
        result.add(filter);
      }
    }
  }

  return result;
}
项目:autoweka    文件:ConverterFileChooser.java   
/**
  * filters out all non-core loaders if only those should be displayed.
  * 
  * @param list the list of filters to check
  * @return     the filtered list of filters
  * @see        #m_CoreConvertersOnly
  */
 protected Vector<ExtensionFileFilter> filterNonCoreLoaderFileFilters(Vector<ExtensionFileFilter> list) {
   Vector<ExtensionFileFilter> result;
   int              i;
   ExtensionFileFilter      filter;
   AbstractLoader       loader;

   if (!getCoreConvertersOnly()) {
     result = list;
   }
   else {
     result = new Vector<ExtensionFileFilter>();
     for (i = 0; i < list.size(); i++) {
filter = list.get(i);
loader = ConverterUtils.getLoaderForExtension(filter.getExtensions()[0]);
if (ConverterUtils.isCoreFileLoader(loader.getClass().getName()))
  result.add(filter);
     }
   }

   return result;
 }
项目:umple    文件:ConverterFileChooser.java   
/**
 * filters out all non-core loaders if only those should be displayed.
 * 
 * @param list the list of filters to check
 * @return the filtered list of filters
 * @see #m_CoreConvertersOnly
 */
protected Vector<ExtensionFileFilter> filterNonCoreLoaderFileFilters(
  Vector<ExtensionFileFilter> list) {
  Vector<ExtensionFileFilter> result;
  int i;
  ExtensionFileFilter filter;
  AbstractLoader loader;

  if (!getCoreConvertersOnly()) {
    result = list;
  } else {
    result = new Vector<ExtensionFileFilter>();
    for (i = 0; i < list.size(); i++) {
      filter = list.get(i);
      loader = ConverterUtils
        .getLoaderForExtension(filter.getExtensions()[0]);
      if (ConverterUtils.isCoreFileLoader(loader.getClass().getName())) {
        result.add(filter);
      }
    }
  }

  return result;
}
项目:jbossBA    文件:ConverterFileChooser.java   
/**
  * filters out all non-core loaders if only those should be displayed
  * 
  * @param list the list of filters to check
  * @return     the filtered list of filters
  * @see        #m_CoreConvertersOnly
  */
 protected Vector<ExtensionFileFilter> filterNonCoreLoaderFileFilters(Vector<ExtensionFileFilter> list) {
   Vector<ExtensionFileFilter> result;
   int              i;
   ExtensionFileFilter      filter;
   AbstractLoader       loader;

   if (!getCoreConvertersOnly()) {
     result = list;
   }
   else {
     result = new Vector<ExtensionFileFilter>();
     for (i = 0; i < list.size(); i++) {
filter = list.get(i);
loader = ConverterUtils.getLoaderForExtension(filter.getExtensions()[0]);
if (ConverterUtils.isCoreFileLoader(loader.getClass().getName()))
  result.add(filter);
     }
   }

   return result;
 }