use of org.eclipse.jgit.annotations.Nullable in project winery by eclipse.
the class ConsistencyChecker method checkReferencedQNames.
public static void checkReferencedQNames(ConsistencyErrorLogger errorLogger, ConsistencyCheckerConfiguration configuration, DefinitionsChildId id) {
if (id instanceof EntityTypeId) {
final TEntityType entityType = (TEntityType) configuration.getRepository().getDefinitions(id).getElement();
final TEntityType.PropertiesDefinition propertiesDefinition = entityType.getPropertiesDefinition();
if (propertiesDefinition != null) {
@Nullable final QName element = propertiesDefinition.getElement();
if (element != null && StringUtils.isEmpty(element.getNamespaceURI())) {
printAndAddError(errorLogger, configuration.getVerbosity(), id, "Referenced element is not a full QName");
}
}
}
}