Class DynamicFormsCycleFinder
- java.lang.Object
-
- com.hybris.cockpitng.core.config.util.DynamicFormsCycleFinder
-
public class DynamicFormsCycleFinder extends java.lang.ObjectUtility class which let's check if dynamicForms has dynamicAttributes which have cyclic dependencies.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DynamicFormsCycleFinderfindCycles(DynamicForms dynamicForms)Creates an instance ofDynamicFormsCycleFinderand runs the search.java.util.List<DynamicAttribute>getCycle()booleanhasCycle()Tells whether dynamicForms configuration has at least one cycle.
-
-
-
Method Detail
-
findCycles
public static DynamicFormsCycleFinder findCycles(DynamicForms dynamicForms)
Creates an instance ofDynamicFormsCycleFinderand runs the search. It stops when when the first cycle is found or all attributes have been checked.- Parameters:
dynamicForms- dynamicForms configuration.- Returns:
- Creates an instance of
DynamicFormsCycleFinderwhich has has results of cycle search.
-
hasCycle
public boolean hasCycle()
Tells whether dynamicForms configuration has at least one cycle.
-
getCycle
public java.util.List<DynamicAttribute> getCycle()
- Returns:
- list of dynamicAttributes in found cycle.
-
-