}
@Override
protected PossibleTypesServiceData compute()
{
final ElementPropertyCustomGallery gallery = context( ElementPropertyCustomGallery.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 );