// Equality matching rule
String equality = at.getEqualityName();
if ( ( equality != null ) && ( !"".equals( equality ) ) )
{
MatchingRuleImpl equalityMR = Activator.getDefault().getSchemaHandler().getMatchingRule( equality );
if ( equalityMR == null )
{
SchemaError error = new NonExistingMatchingRuleError( at, equality,
NonExistingMatchingRuleErrorEnum.EQUALITY );
errorsList.add( error );
errorsMap.put( at, error );
dependenciesMap.put( equality, at );
dependsOnMap.put( at, equality );
}
else
{
dependenciesMap.put( equalityMR, at );
dependsOnMap.put( at, equalityMR );
}
}
// Ordering matching rule
String ordering = at.getOrderingName();
if ( ( ordering != null ) && ( !"".equals( ordering ) ) )
{
MatchingRuleImpl orderingMR = Activator.getDefault().getSchemaHandler().getMatchingRule( ordering );
if ( orderingMR == null )
{
SchemaError error = new NonExistingMatchingRuleError( at, ordering,
NonExistingMatchingRuleErrorEnum.ORDERING );
errorsList.add( error );
errorsMap.put( at, error );
dependenciesMap.put( ordering, at );
dependsOnMap.put( at, ordering );
}
else
{
dependenciesMap.put( orderingMR, at );
dependsOnMap.put( at, orderingMR );
}
}
// Substring matching rule
String substring = at.getSubstrName();
if ( ( substring != null ) && ( !"".equals( substring ) ) )
{
MatchingRuleImpl substringMR = Activator.getDefault().getSchemaHandler().getMatchingRule( substring );
if ( substringMR == null )
{
SchemaError error = new NonExistingMatchingRuleError( at, substring,
NonExistingMatchingRuleErrorEnum.SUBSTRING );
errorsList.add( error );