Package com._1c.g5.aef2.renderers
Class ChangelessTreeTransformation
- java.lang.Object
-
- com._1c.g5.aef2.renderers.ChangelessTreeTransformation
-
- All Implemented Interfaces:
ITreeTransformation
- Direct Known Subclasses:
AlphabeticalTreeTransformation,CategoreisTreeTransformation,SkipEmptySectionTreeTransformation
public class ChangelessTreeTransformation extends Object implements ITreeTransformation
TheITreeTransformationthat makes no changes.
-
-
Field Summary
Fields Modifier and Type Field Description static ITreeTransformationINSTANCEShared instance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedChangelessTreeTransformation()Creates a new instace.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<IViewModel>getChildren(IViewModel viewModel)Returns the child view models of the given view model.IContainerViewModelgetParent(IViewModel viewModel)Returns the parent view model of the given one.Collection<IViewModel>getRoots(Iterable<IViewModel> viewModels)Returns the transformed root view models.
-
-
-
Field Detail
-
INSTANCE
public static final ITreeTransformation INSTANCE
Shared instance.
-
-
Method Detail
-
getRoots
public Collection<IViewModel> getRoots(Iterable<IViewModel> viewModels)
Description copied from interface:ITreeTransformationReturns the transformed root view models.- Specified by:
getRootsin interfaceITreeTransformation- Returns:
- the root view models.
-
getChildren
public Collection<IViewModel> getChildren(IViewModel viewModel)
Description copied from interface:ITreeTransformationReturns the child view models of the given view model.- Specified by:
getChildrenin interfaceITreeTransformation- Parameters:
viewModel- the view model.- Returns:
- child view models.
-
getParent
public IContainerViewModel getParent(IViewModel viewModel)
Description copied from interface:ITreeTransformationReturns the parent view model of the given one.- Specified by:
getParentin interfaceITreeTransformation- Parameters:
viewModel- the view model.- Returns:
- the parent.
-
-