{
String title = null;
final StringBuilder content = new StringBuilder();
final List<DocumentationService.Topic> topics = new ArrayList<DocumentationService.Topic>();
DocumentationService propDocService = null;
if(property != null)
{
propDocService = element.property( property ).service( DocumentationService.class );
}
final DocumentationService elDocService = element.service( DocumentationService.class );
content.append( "[br/]" );
if( propDocService == null )
{
if( elDocService != null )
{
title = element.type().getLabel( true, CapitalizationType.TITLE_STYLE, false );
content.append( elDocService.content() );
topics.addAll( elDocService.topics() );
}
}
else
{
title = property.getLabel( true, CapitalizationType.TITLE_STYLE, false );
content.append( propDocService.content() );
topics.addAll( propDocService.topics() );
if( elDocService != null )
{
content.append( "[pbr/][b]" );
content.append( element.type().getLabel( true, CapitalizationType.TITLE_STYLE, false ) );
content.append( "[/b][pbr/]" );
content.append( elDocService.content() );
topics.addAll( elDocService.topics() );
}
}
content.append( "[pbr/]" );