Package org.ametys.runtime.model
Class ViewHelper.ViewItemGetter
- java.lang.Object
-
- org.ametys.runtime.model.ViewHelper.ViewItemGetter
-
- Enclosing class:
- ViewHelper
private static class ViewHelper.ViewItemGetter extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private ViewItemContainer
_itemContainer
private String
_wholePath
-
Constructor Summary
Constructors Constructor Description ViewItemGetter(ViewItemContainer view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> T
_getDirectViewItem(ViewItemContainer viewItemContainer, String itemName, Class<T> resultClass)
private ModelViewItemGroup
_getDirectViewItemContainer(ViewItemContainer viewItemContainer, String itemName)
private <T> T
_getModelViewItem(BiFunction<ViewItemContainer,String,T> lastPartGetter)
(package private) ViewElement
getModelViewItem(String wholePath)
(package private) ModelViewItem
getViewItem(String wholePath)
(package private) ModelViewItemGroup
getViewItemContainer(String wholePath)
-
-
-
Field Detail
-
_itemContainer
private final ViewItemContainer _itemContainer
-
_wholePath
private String _wholePath
-
-
Constructor Detail
-
ViewItemGetter
ViewItemGetter(ViewItemContainer view)
-
-
Method Detail
-
getViewItem
ModelViewItem getViewItem(String wholePath) throws UndefinedItemPathException, BadItemTypeException
-
getModelViewItem
ViewElement getModelViewItem(String wholePath) throws UndefinedItemPathException, BadItemTypeException
-
getViewItemContainer
ModelViewItemGroup getViewItemContainer(String wholePath) throws UndefinedItemPathException, BadItemTypeException
-
_getModelViewItem
private <T> T _getModelViewItem(BiFunction<ViewItemContainer,String,T> lastPartGetter) throws UndefinedItemPathException, BadItemTypeException
-
_getDirectViewItemContainer
private ModelViewItemGroup _getDirectViewItemContainer(ViewItemContainer viewItemContainer, String itemName) throws UndefinedItemPathException, BadItemTypeException
-
_getDirectViewItem
private <T> T _getDirectViewItem(ViewItemContainer viewItemContainer, String itemName, Class<T> resultClass) throws UndefinedItemPathException, BadItemTypeException
-
-