.valueOf(subElement
.getAttribute(ComponentParser.ATT_INJECTED));
if (injectPolicy != null
&& !injectPolicy
.equals(InjectedPropertyPolicy.EXTERNAL))
throw new InvalidApamMetadataException(
"Property definition error (wrong injection policy) for property "
+ name);
String type = subElement
.getAttribute(ComponentParser.ATT_TYPE);
if (type != null
&& !type.equals(mapAddedDefinitions.get(name).getType()))
throw new InvalidApamMetadataException(
"Property definition error (type mismatch) for property "
+ name);
String defaultVal = subElement.getAttribute(ComponentParser.ATT_DEFAULT);
if (defaultVal != null && mapAddedDefinitions.get(name).hasDefaultValue() && !defaultVal.equals(mapAddedDefinitions.get(name).getDefaultValue()))
throw new InvalidApamMetadataException(
"Property definition error (default value mismatch) for property "
+ name);
String field = subElement.getAttribute(ComponentParser.ATT_FIELD);
String callback = subElement.getAttribute(ComponentParser.ATT_METHOD);