Search in sources :

Example 1 with EnrichedLookupOption

use of com.tyndalehouse.step.core.models.EnrichedLookupOption in project step by STEPBible.

the class BibleInformationServiceImpl method getAllFeatures.

/**
 * Gets the all features.
 *
 * @return the all features
 */
@Override
public List<EnrichedLookupOption> getAllFeatures() {
    final LookupOption[] lo = LookupOption.values();
    final List<EnrichedLookupOption> elo = new ArrayList<EnrichedLookupOption>(lo.length + 1);
    for (final LookupOption lookupOption : lo) {
        final String displayName = lookupOption.name();
        if (isNotBlank(displayName)) {
            elo.add(new EnrichedLookupOption(displayName, lookupOption.toString(), lookupOption.isEnabledByDefault()));
        }
    }
    return elo;
}
Also used : LookupOption(com.tyndalehouse.step.core.models.LookupOption) TrimmedLookupOption(com.tyndalehouse.step.core.models.TrimmedLookupOption) EnrichedLookupOption(com.tyndalehouse.step.core.models.EnrichedLookupOption) ArrayList(java.util.ArrayList) EnrichedLookupOption(com.tyndalehouse.step.core.models.EnrichedLookupOption)

Aggregations

EnrichedLookupOption (com.tyndalehouse.step.core.models.EnrichedLookupOption)1 LookupOption (com.tyndalehouse.step.core.models.LookupOption)1 TrimmedLookupOption (com.tyndalehouse.step.core.models.TrimmedLookupOption)1 ArrayList (java.util.ArrayList)1