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() {
if (!params.isEmpty()) { for (Map.Entry<String, String> param : params.entrySet()) { if(xmlSpec.getParam(param.getKey()).isFeatureId()) { continue; if (refSpec.hasMappedParams()) { for (Map.Entry<String, String> mapping : refSpec.getMappedParams().entrySet()) { if (xmlSpec.getParam(mapping.getKey()).isFeatureId()) { continue; if (xmlSpec.getParam(parentEntry.getKey()).isFeatureId()) { continue;
if(!child && (resolvedParam.spec.isFeatureId() && targetSpec.getSpec().getParam(refParamName).isFeatureId())) { child = true; if(!child && resolvedParam.spec.isFeatureId()) { child = true;
ResolvedFeatureParam(FeatureParameterSpec spec, FeatureParameterType type) throws ProvisioningException { this.spec = spec; this.type = type; if(spec.hasDefaultValue()) { defaultValue = type.fromString(spec.getDefaultValue()); } else { defaultValue = type.getDefaultValue(); } if(spec.isFeatureId() && type.isCollection()) { throw new ProvisioningException("Feature ID parameter cannot be of a collection type"); } } }
FeatureParameterSpec p = spec.getSpec().getParams().get(opt); String value = options.get(opt); if (p.isFeatureId()) { if (!Constants.GLN_UNDEFINED.equals(value)) { ids.put(opt, value);
for (Map.Entry<String, String> mapping : refSpec.getMappedParams().entrySet()) { final FeatureParameterSpec param = xmlSpec.getParam(mapping.getKey()); if(!param.isFeatureId()) { continue;
public static Builder builder(FeatureParameterSpec param) { Builder builder = new Builder(param.getName()); builder.setDefaultValue(param.getDefaultValue()); if (param.isFeatureId()) { builder.setFeatureId(); } if(param.isNillable()) { builder.setNillable(); } builder.setType(param.getType()); return builder; }
for (Entry<String, FeatureParameterSpec> entry : params.entrySet()) { FeatureParameterSpec param = entry.getValue(); if (!param.isFeatureId()) { StringBuilder builder = new StringBuilder(); builder.append(tab + param.getName()).append(Config.getLineSeparator());
final String originalValue = original.getConfigParam(paramName); if(actualValue != null) { if(!pSpec.isFeatureId() && !actualValue.equals(originalValue) && !actualValue.equals(pSpec.getDefaultValue())) { config.setParam(paramName, actualValue);
final ElementNode paramE = addElement(paramsE, Element.PARAMETER); addAttribute(paramE, Attribute.NAME, paramSpec.getName()); if(paramSpec.isFeatureId()) { addAttribute(paramE, Attribute.FEATURE_ID, TRUE); } else if(paramSpec.isNillable()) {