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 ( ) ) ; } }
Validate whether the index definition is acceptable for this provider .