protected static void validate( IndexDefinition defn, Problems problems ) {
        if (!defn.hasSingleColumn()) {
            problems.addError(JcrI18n.localIndexProviderDoesNotSupportMultiColumnIndexes, defn.getName(), defn.getProviderName());    
        }
        switch (defn.getKind()) {
            case TEXT:
                // This is not valid ...
                problems.addError(JcrI18n.localIndexProviderDoesNotSupportTextIndexes, defn.getName(),defn.getProviderName());        
        }
    }
protected static void validate ( IndexDefinition defn , Problems problems ) { if ( ! defn . hasSingleColumn ( ) ) { problems . addError ( JcrI18n . localIndexProviderDoesNotSupportMultiColumnIndexes , defn . getName ( ) , defn . getProviderName ( ) ) ; } switch ( defn . getKind ( ) ) { case TEXT : problems . addError ( JcrI18n . localIndexProviderDoesNotSupportTextIndexes , defn . getName ( ) , defn . getProviderName ( ) ) ; } }
Validate whether the index definition is acceptable for this provider.

@param defn the definition to validate; may not be {@code null}
@param problems the component to record any problems, errors, or warnings; may not be null