configuration_file_parser.segment.ImportPaser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brunner-core-parser Show documentation
Show all versions of brunner-core-parser Show documentation
Parser module for the BRunner project
The newest version!
package configuration_file_parser.segment;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.configuration2.Configuration;
import constants.BRunnerKeywords;
/**
* Parses import declarations.
*/
public class ImportPaser {
/**
* @param config file
* @return the list of files to import
*/
public static List parse(Configuration config) {
String[] res = config.getStringArray(BRunnerKeywords.OuterLevel.IMPORT.kw);
return Arrays.asList(res);
}
}