list.addAll( ( (SlotDefn) defn).getRealContentElements( ) );
list.addAll( ( (SlotDefn) defn).getContentElements( ) );
	public String getContents( )	{		ArrayList list = new ArrayList( );				// The following is a workaround because the meaning of getContentElements		// was changed in an unfortunate way. See SCR 78805.				list.addAll( ( (SlotDefn) defn).getRealContentElements( ) );		Collections.sort( list, new ElementComparator( ) );		Iterator iter = list.iterator( );		StringBuffer contents = new StringBuffer( );		while ( iter.hasNext( ) )		{			ElementDefn element = (ElementDefn) iter.next( );			if ( contents.length( ) > 0 )				contents.append( ", " );			contents.append( "<a href=\"" );			contents.append( element.getName( ) );			contents.append( ".html\">" );			contents.append( element.getName( ) );			contents.append( "</a>" );		}		if ( defn.isMultipleCardinality( ) )			contents.insert( 0, "List of " );		return contents.toString( );	}