/**
* {@inheritDoc}
*/
public String getText()
{
SchemaPart schemaElement = getSchemElement();
if ( schemaElement != null )
{
if(schemaElement instanceof ObjectClassDescription)
{
return "Object Class " + schemaElement.toString();
}
else if(schemaElement instanceof AttributeTypeDescription )
{
return "Attribute Type " + schemaElement.toString();
}
else if(schemaElement instanceof LdapSyntaxDescription )
{
return "Syntax " + schemaElement.toString();
}
else if(schemaElement instanceof MatchingRuleDescription)
{
return "Matching Rule " + schemaElement.toString();
}
else if(schemaElement instanceof MatchingRuleUseDescription )
{
return "Matching Rule Use " + schemaElement.toString();
}
else
{
return schemaElement.getNumericOID();
}
}
else
{
return super.getText();