<core:FragmentDefinition
	xmlns="sap.fe.experimental"
	xmlns:core="sap.ui.core"
	xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
	template:require="{
		CORE: 'sap/fe/core/AnnotationHelper'
	}">

	<ViewSwitchContainer height="100%">
		<template:if test="{= ${annotationPath>@sapui.name}.indexOf('com.sap.vocabularies.UI.v1.PresentationVariant') > -1}">
			<template:then>
				<template:with path="annotationPath>Visualizations" var="visualization" helper="CORE.getTableVisualizationPath">
					<template:with path="visualization>$AnnotationPath" var="visualizationPath">
						<core:Fragment fragmentName="sap.fe.controls.ViewSwitchContainer.ViewSwitchContainerItem" type="XML"/>
					</template:with>
				</template:with>
			</template:then>
			<template:elseif test="{= ${annotationPath>@sapui.name}.indexOf('com.sap.vocabularies.UI.v1.LineItem') > -1}">
				<template:with path="annotationPath>" var="visualizationPath">
					<core:Fragment fragmentName="sap.fe.controls.ViewSwitchContainer.ViewSwitchContainerItem" type="XML"/>
				</template:with>
			</template:elseif>
		</template:if>
	</ViewSwitchContainer>

</core:FragmentDefinition>