lengthText.setText( getNonNullString( lsdLength > 0 ? Integer.toString( lsdLength ) : null ) );
syntaxSection.layout();
// set matching rules content
String emrOid = null;
MatchingRuleDescription emr = null;
if ( atd != null )
{
emrOid = SchemaUtils.getEqualityMatchingRuleNameOrNumericOidTransitive( atd, getSchema() );
if ( emrOid != null && getSchema().hasMatchingRuleDescription( emrOid ) )
{
emr = getSchema().getMatchingRuleDescription( emrOid );
}
}
equalityLink.setText( getNonNullString( emr != null ? SchemaUtils.toString( emr ) : emrOid ) );
equalityLink.setHref( emr );
equalityLink.setUnderlined( emr != null );
equalityLink.setEnabled( emr != null );
String smrOid = null;
MatchingRuleDescription smr = null;
if ( atd != null )
{
smrOid = SchemaUtils.getSubstringMatchingRuleNameOrNumericOidTransitive( atd, getSchema() );
if ( smrOid != null && getSchema().hasMatchingRuleDescription( smrOid ) )
{
smr = getSchema().getMatchingRuleDescription( smrOid );
}
}
substringLink.setText( getNonNullString( smr != null ? SchemaUtils.toString( smr ) : smrOid ) );
substringLink.setHref( smr );
substringLink.setUnderlined( smr != null );
substringLink.setEnabled( smr != null );
String omrOid = null;
MatchingRuleDescription omr = null;
if ( atd != null )
{
omrOid = SchemaUtils.getOrderingMatchingRuleNameOrNumericOidTransitive( atd, getSchema() );
if ( omrOid != null && getSchema().hasMatchingRuleDescription( omrOid ) )
{