Set<String> getAllParameters() { return spec.getParams().keySet(); }
void attachSpecInfo(FeatureSpecInfo specInfo) { this.specInfo = specInfo; if (featureConfig != null) { for (Map.Entry<String, Object> p : feature.getResolvedParams().entrySet()) { if (!specInfo.getSpec().getParams().get(p.getKey()).isFeatureId()) { featureConfig.setParam(p.getKey(), p.getValue().toString()); } } } } public FeatureId getFeatureId() {
@Override protected List<DynamicOption> getDynamicOptions(State state) throws Exception { if (state == null) { return Collections.emptyList(); } List<DynamicOption> options = new ArrayList<>(); for (Entry<String, FeatureParameterSpec> entry : getSpec(state, getId()).getSpec().getParams().entrySet()) { DynamicOption dyn = new DynamicOption(entry.getKey(), !entry.getValue().isNillable() && !entry.getValue().hasDefaultValue()); String defValue = entry.getValue().getDefaultValue(); if (defValue != null) { dyn.setDefaultValue(defValue.toString()); } options.add(dyn); } return options; }
for(Map.Entry<String, FeatureParameterSpec> entry : xmlSpec.getParams().entrySet()) { final FeatureParameterSpec param = entry.getValue(); resolvedParamSpecs = CollectionUtils.put(resolvedParamSpecs, param.getName(), resolveParamSpec(param, typeProvider));
Map<String, String> params = new HashMap<>(); for (String opt : options.keySet()) { FeatureParameterSpec p = spec.getSpec().getParams().get(opt); String value = options.get(opt); if (p.isFeatureId()) {
Map<String, FeatureParameterSpec> params = f.getSpec().getParams(); if (params.isEmpty()) { session.println("NONE");
for(FeatureParameterSpec paramSpec : featureSpec.getParams().values()) { final ElementNode paramE = addElement(paramsE, Element.PARAMETER); addAttribute(paramE, Attribute.NAME, paramSpec.getName());