com.flexive.shared.structure.export
Class GenericStructureExporter.DependencyAnalyser

java.lang.Object
  extended by com.flexive.shared.structure.export.GenericStructureExporter.DependencyAnalyser
Enclosing class:
GenericStructureExporter

static class GenericStructureExporter.DependencyAnalyser
extends java.lang.Object

A class to analyse (circular / mutual) dependencies and derived assignments of types i.e. mutual property / group reuse


Constructor Summary
GenericStructureExporter.DependencyAnalyser(FxType type, java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> dependencies, java.util.Map<java.lang.Long,java.lang.Long> dependentOnMapping)
          Constructor, takes an FxType to e analysed and a Map, List> as arguments.
 
Method Summary
(package private)  void analyse()
          Analyse the mutual dependencies and generate the respective Map contents
(package private)  java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> getDependencies()
          Returns the Map of typeIds --> derived assignments for which mutual dependencies exist.
(package private)  java.util.Map<java.lang.Long,java.lang.Long> getDependentOnMapping()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericStructureExporter.DependencyAnalyser

GenericStructureExporter.DependencyAnalyser(FxType type,
                                            java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> dependencies,
                                            java.util.Map<java.lang.Long,java.lang.Long> dependentOnMapping)
Constructor, takes an FxType to e analysed and a Map, List> as arguments. Results of the analysis will be appended to the dependencyMap, if the dependencyMap is null, a new one will be instantiated.

Parameters:
type - an FxType which will be analysed
dependencies - the Map> of mutual dependencies, where the keys represent the base FxType ids for which the List of (derived) assignment ids.
dependentOnMapping - the Map if assignment ids (keys) and the assignments' ids they depend on (values)
Method Detail

getDependencies

java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> getDependencies()
Returns the Map of typeIds --> derived assignments for which mutual dependencies exist.

Returns:
dependencyMap, a Map Long, List Long, where the keys are type ids and the Lists are ids of assignments

getDependentOnMapping

java.util.Map<java.lang.Long,java.lang.Long> getDependentOnMapping()
Returns:
returns the Map of dependent mappings

analyse

void analyse()
Analyse the mutual dependencies and generate the respective Map contents