Search in sources :

Example 1 with Nullable

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");
            }
        }
    }
}
Also used : QName(javax.xml.namespace.QName) Nullable(org.eclipse.jgit.annotations.Nullable)

Aggregations

QName (javax.xml.namespace.QName)1 Nullable (org.eclipse.jgit.annotations.Nullable)1