use of org.eclipse.winery.model.tosca.extensions.kvproperties.PropertyDefinitionKV in project winery by eclipse.
the class ModelUtilities method allRequiredFieldsNonNull.
public static boolean allRequiredFieldsNonNull(WinerysPropertiesDefinition wpd) {
boolean valid = wpd.getNamespace() != null;
valid = valid && (wpd.getElementName() != null);
if (valid) {
List<PropertyDefinitionKV> propertyDefinitions = wpd.getPropertyDefinitions();
valid = (propertyDefinitions != null);
if (valid) {
for (PropertyDefinitionKV def : propertyDefinitions) {
valid = valid && (def.getKey() != null);
valid = valid && (def.getType() != null);
}
}
}
return valid;
}
Aggregations