Class FeaturesFromXMLFixture

Object
org.anchoranalysis.test.feature.plugins.FeaturesFromXMLFixture

public class FeaturesFromXMLFixture
extends Object
A fixture for creating feature lists and feature list providers from XML files.

This class provides utility methods to load and create feature-related objects from XML configurations for testing purposes.

  • Method Summary

    Modifier and Type Method Description
    static <T extends org.anchoranalysis.feature.input.FeatureInput>
    org.anchoranalysis.feature.bean.list.FeatureList<T>
    createFeatureList​(String xmlPath, org.anchoranalysis.test.TestLoader loader)
    Creates a feature list from an XML file.
    static <T extends org.anchoranalysis.feature.input.FeatureInput>
    List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<T>>>
    createNamedFeatureProviders​(String xmlPath, org.anchoranalysis.test.TestLoader loader)
    Creates a list of named feature list providers from an XML file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createFeatureList

      public static <T extends org.anchoranalysis.feature.input.FeatureInput> org.anchoranalysis.feature.bean.list.FeatureList<T> createFeatureList​(String xmlPath, org.anchoranalysis.test.TestLoader loader) throws org.anchoranalysis.core.exception.CreateException
      Creates a feature list from an XML file.
      Type Parameters:
      T - the type of feature input
      Parameters:
      xmlPath - the path to the XML file containing the feature list configuration
      loader - the test loader to resolve the XML file path
      Returns:
      a feature list created from the XML configuration
      Throws:
      org.anchoranalysis.core.exception.CreateException - if there's an error creating the feature list
    • createNamedFeatureProviders

      public static <T extends org.anchoranalysis.feature.input.FeatureInput> List<org.anchoranalysis.bean.NamedBean<org.anchoranalysis.feature.bean.list.FeatureListProvider<T>>> createNamedFeatureProviders​(String xmlPath, org.anchoranalysis.test.TestLoader loader) throws org.anchoranalysis.core.exception.CreateException
      Creates a list of named feature list providers from an XML file.
      Type Parameters:
      T - the type of feature input
      Parameters:
      xmlPath - the path to the XML file containing the named feature list provider configurations
      loader - the test loader to resolve the XML file path
      Returns:
      a list of named feature list providers created from the XML configuration
      Throws:
      org.anchoranalysis.core.exception.CreateException - if there's an error creating the feature list providers