Interface ParameterizedDataResource

  • All Superinterfaces:
    Resource
    All Known Implementing Classes:
    FileLanguageResource_impl

    public interface ParameterizedDataResource
    extends Resource
    A resource that provides access to data, where the data can vary based on parameters. A common example is a dictionary, where the dictionary data is dependent upon the language being analyzed.

    The getDataResource(String[]) takes an array of string parameters and returns a DataResource object that can be used to access the data that is appropriate for those parameter values.

    • Method Detail

      • getDataResource

        DataResource getDataResource​(java.lang.String[] aParams)
                              throws ResourceInitializationException
        Gets a DataResource object that can be used to access the data that is appropriate for the given parameter values.
        Parameters:
        aParams - parameter values
        Returns:
        an object providing access to the resource data, null
        Throws:
        ResourceInitializationException - if no DataResource could be initialized from the specified parameters