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 ViewItemAccessor
_viewItemAccessor
private String
_wholePath
-
Constructor Summary
Constructors Constructor Description ViewItemGetter(ViewItemAccessor viewItemAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ModelViewItemGroup
_getDirectModelViewItemGroup(ViewItemAccessor viewItemAccessor, String itemName)
private <T> T
_getDirectViewItem(ViewItemAccessor viewItemAccessor, String itemName, Class<T> resultClass)
private <T> T
_getModelViewItem(BiFunction<ViewItemAccessor,String,T> lastPartGetter)
(package private) ViewElement
getModelViewItem(String wholePath)
(package private) ModelViewItem
getViewItem(String wholePath)
(package private) ModelViewItemGroup
getViewItemContainer(String wholePath)
-
-
-
Field Detail
-
_viewItemAccessor
private final ViewItemAccessor _viewItemAccessor
-
_wholePath
private String _wholePath
-
-
Constructor Detail
-
ViewItemGetter
ViewItemGetter(ViewItemAccessor viewItemAccessor)
-
-
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<ViewItemAccessor,String,T> lastPartGetter) throws UndefinedItemPathException, BadItemTypeException
-
_getDirectModelViewItemGroup
private ModelViewItemGroup _getDirectModelViewItemGroup(ViewItemAccessor viewItemAccessor, String itemName) throws UndefinedItemPathException, BadItemTypeException
-
_getDirectViewItem
private <T> T _getDirectViewItem(ViewItemAccessor viewItemAccessor, String itemName, Class<T> resultClass) throws UndefinedItemPathException, BadItemTypeException
-
-