PropertyDef addAll(PropertyDef propertyDef) { property.putAll(propertyDef.property); propertyType.putAll(propertyDef.propertyType); return this; }
PropertyDef addAll(PropertyDef propertyDef) { property.putAll(propertyDef.property); propertyType.putAll(propertyDef.propertyType); return this; }
/** * Parse the properties */ private void doProperty(String[] properties) { if (properties != null && properties.length > 0) { MultiMap<String, String> props = new MultiMap<String, String>(); for (String p : properties) { Matcher m = PROPERTY_PATTERN.matcher(p); if (m.matches()) { String key = m.group(1); String type = m.group(2); if ( type == null) type = "String"; component.propertyType.put(key, type); String value = m.group(3); props.add(key, value); } else analyzer.error("Malformed property '" + p + "' on component: " + className); } component.property.putAll(props); } }
/** * Parse the properties */ private void doProperty(String[] properties) { if (properties != null && properties.length > 0) { MultiMap<String, String> props = new MultiMap<String, String>(); for (String p : properties) { Matcher m = PROPERTY_PATTERN.matcher(p); if (m.matches()) { String key = m.group(1); String type = m.group(2); if ( type == null) type = "String"; component.propertyType.put(key, type); String value = m.group(3); props.add(key, value); } else analyzer.error("Malformed property '" + p + "' on component: " + className); } component.property.putAll(props); } }
PropertyDef setTypedProperty(TypeRef className, String... props) { if (notEmpty(props)) { MultiMap<String, String> map = new MultiMap<>(); for (String p : props) { Matcher m = PROPERTY_PATTERN.matcher(p); if (m.matches()) { String key = m.group("key"); String type = m.group("type"); if (type == null) { type = "String"; } propertyType.put(key, type); String value = m.group("value"); map.add(key, value); } else { analyzer.error("Malformed property '%s' on component: %s", p, className); } } property.putAll(map); } return this; }
PropertyDef setTypedProperty(TypeRef className, String... props) { if (notEmpty(props)) { MultiMap<String, String> map = new MultiMap<>(); for (String p : props) { Matcher m = PROPERTY_PATTERN.matcher(p); if (m.matches()) { String key = m.group("key"); String type = m.group("type"); if (type == null) { type = "String"; } propertyType.put(key, type); String value = m.group("value"); map.add(key, value); } else { analyzer.error("Malformed property '%s' on component: %s", p, className); } } property.putAll(map); } return this; }
component.property.putAll(props); } else if (clazz.isInterface() && felixExtensions) {
component.property.putAll(props); } else if (clazz.isInterface() && felixExtensions) {