}
@Override
protected PossibleTypesServiceData compute()
{
final ListPropertyCustomGallery gallery = context( ListPropertyCustomGallery.class );
final List<ElementType> types = new ArrayList<ElementType>();
types.add( IChildElement.TYPE );
if( gallery.getAllowChildElementWithInteger().content() )
{
types.add( IChildElementWithInteger.TYPE );
}
if( gallery.getAllowChildElementWithEnum().content() )
{
types.add( IChildElementWithEnum.TYPE );
}
return new PossibleTypesServiceData( types );