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.
-
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.CreateExceptionCreates 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 configurationloader- 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.CreateExceptionCreates 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 configurationsloader- 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
-