Here you can find the source of getIsB37PropertyValue(final Properties dataSourceProperties)
Parameter | Description |
---|---|
dataSourceProperties | Properties object from which to read the setting. |
private static boolean getIsB37PropertyValue(final Properties dataSourceProperties)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static final String CONFIG_FILE_FIELD_NAME_IS_B37_DATA_SOURCE = "isB37DataSource"; /**//from ww w. j a v a 2 s . co m * Get if the properties has specified the `isB37` field {@link #CONFIG_FILE_FIELD_NAME_IS_B37_DATA_SOURCE} as true. * If it is absent, it will default to {@code false}. * @param dataSourceProperties {@link Properties} object from which to read the setting. * @return The value of the {@link #CONFIG_FILE_FIELD_NAME_IS_B37_DATA_SOURCE} property. If absent, {@code false}. */ private static boolean getIsB37PropertyValue(final Properties dataSourceProperties) { if (dataSourceProperties.containsKey(CONFIG_FILE_FIELD_NAME_IS_B37_DATA_SOURCE)) { return Boolean.valueOf( dataSourceProperties.getProperty(CONFIG_FILE_FIELD_NAME_IS_B37_DATA_SOURCE).replace(" ", "")); } return false; } }