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
TheITreeTransformation
that makes no changes.
-
-
Field Summary
Fields Modifier and Type Field Description static ITreeTransformation
INSTANCE
Shared instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChangelessTreeTransformation()
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.IContainerViewModel
getParent(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:ITreeTransformation
Returns the transformed root view models.- Specified by:
getRoots
in interfaceITreeTransformation
- Returns:
- the root view models.
-
getChildren
public Collection<IViewModel> getChildren(IViewModel viewModel)
Description copied from interface:ITreeTransformation
Returns the child view models of the given view model.- Specified by:
getChildren
in interfaceITreeTransformation
- Parameters:
viewModel
- the view model.- Returns:
- child view models.
-
getParent
public IContainerViewModel getParent(IViewModel viewModel)
Description copied from interface:ITreeTransformation
Returns the parent view model of the given one.- Specified by:
getParent
in interfaceITreeTransformation
- Parameters:
viewModel
- the view model.- Returns:
- the parent.
-
-